Commit fca13cf2 authored by Ye Li's avatar Ye Li

MLK-18945-5 mx7ulp_evk: Update board codes for mipi display

Setup the mipi_dsi_northwest driver and register a the HX8363 panel
device to mipi dsi bridge in board codes.
Signed-off-by: 's avatarYe Li <ye.li@nxp.com>
parent 0b8dc73e
......@@ -14,6 +14,9 @@
#include <usb.h>
#include <dm.h>
#include <asm/imx-common/video.h>
#include <mipi_dsi_northwest.h>
#include <imx_mipi_dsi_bridge.h>
#include <mipi_dsi_panel.h>
#ifdef CONFIG_FSL_FASTBOOT
#include <fastboot.h>
......@@ -134,6 +137,14 @@ static iomux_cfg_t const led_pwm_en_pad[] = {
MX7ULP_PAD_PTF2__PTF2 | MUX_PAD_CTRL(MIPI_GPIO_PAD_CTRL),
};
struct mipi_dsi_client_dev hx8363_dev = {
.channel = 0,
.lanes = 2,
.format = MIPI_DSI_FMT_RGB888,
.mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
MIPI_DSI_MODE_EOT_PACKET | MIPI_DSI_MODE_VIDEO_HSE,
};
int board_mipi_panel_reset(void)
{
gpio_direction_output(MIPI_RESET_GPIO, 0);
......@@ -163,6 +174,15 @@ void do_enable_mipi_dsi(struct display_info_t const *dev)
mx7ulp_iomux_setup_multiple_pads(led_pwm_en_pad, ARRAY_SIZE(mipi_reset_pad));
gpio_request(LED_PWM_EN_GPIO, "led_pwm_en");
gpio_direction_output(LED_PWM_EN_GPIO, 1);
/* Setup DSI host driver */
mipi_dsi_northwest_setup(DSI_RBASE, SIM0_RBASE);
/* Init hx8363 driver, must after dsi host driver setup */
hx8363_init();
hx8363_dev.name = displays[0].mode.name;
imx_mipi_dsi_bridge_attach(&hx8363_dev); /* attach hx8363 device */
}
struct display_info_t const displays[] = {{
......
......@@ -41,3 +41,4 @@ CONFIG_USB_EHCI_HCD=y
CONFIG_MXC_USB_OTG_HACTIVE=y
CONFIG_USB_STORAGE=y
CONFIG_VIDEO=y
CONFIG_IMX_NORTHWEST_MIPI_DSI=y
......@@ -257,7 +257,6 @@
#define CONFIG_VIDEO_BMP_LOGO
#define CONFIG_IMX_VIDEO_SKIP
#define CONFIG_MXC_MIPI_DSI_NORTHWEST
#define CONFIG_HX8363
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment