From: Wayne Zou Date: Thu, 1 Dec 2011 11:54:06 +0000 (+0800) Subject: ENGR00163669-2 mx6q mipi_dsi: Add support for mipi dsi display X-Git-Tag: v3.0.35-fsl~1813 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=688562af7cc33aa702920541f63fbf461e3e8e69;p=karo-tx-linux.git ENGR00163669-2 mx6q mipi_dsi: Add support for mipi dsi display mx6q mipi_dsi: support for mipi dsi display Signed-off-by: Wayne Zou --- diff --git a/arch/arm/mach-mx6/board-mx6q_arm2.c b/arch/arm/mach-mx6/board-mx6q_arm2.c index f61719caddcc..6dbaee50603a 100644 --- a/arch/arm/mach-mx6/board-mx6q_arm2.c +++ b/arch/arm/mach-mx6/board-mx6q_arm2.c @@ -932,8 +932,8 @@ static void mx6q_sabreauto_reset_mipi_dsi(void) } static struct mipi_dsi_platform_data mipi_dsi_pdata = { - .ipu_id = 0, - .disp_id = 0, + .ipu_id = 1, + .disp_id = 1, .lcd_panel = "TRULY-WVGA", .reset = mx6q_sabreauto_reset_mipi_dsi, }; @@ -946,10 +946,10 @@ static struct ipuv3_fb_platform_data sabr_fb_data[] = { .default_bpp = 16, .int_clk = false, }, { - .disp_dev = "lcd", - .interface_pix_fmt = IPU_PIX_FMT_RGB565, - .mode_str = "CLAA-WVGA", - .default_bpp = 16, + .disp_dev = "mipi_dsi", + .interface_pix_fmt = IPU_PIX_FMT_RGB24, + .mode_str = "TRULY-WVGA", + .default_bpp = 24, .int_clk = false, }, { .disp_dev = "ldb", @@ -957,7 +957,13 @@ static struct ipuv3_fb_platform_data sabr_fb_data[] = { .mode_str = "LDB-XGA", .default_bpp = 16, .int_clk = false, - }, + }, { + .disp_dev = "lcd", + .interface_pix_fmt = IPU_PIX_FMT_RGB565, + .mode_str = "CLAA-WVGA", + .default_bpp = 16, + .int_clk = false, + } }; static void hdmi_init(int ipu_id, int disp_id) @@ -1004,7 +1010,7 @@ static struct fsl_mxc_ldb_platform_data ldb_data = { .ext_ref = 1, .mode = LDB_SEP0, .sec_ipu_id = 1, - .sec_disp_id = 1, + .sec_disp_id = 0, }; static struct imx_ipuv3_platform_data ipu_data[] = { diff --git a/arch/arm/plat-mxc/devices/platform-imx-mipi_dsi.c b/arch/arm/plat-mxc/devices/platform-imx-mipi_dsi.c index 1c583eec7e0f..136a8fcc73db 100644 --- a/arch/arm/plat-mxc/devices/platform-imx-mipi_dsi.c +++ b/arch/arm/plat-mxc/devices/platform-imx-mipi_dsi.c @@ -33,6 +33,7 @@ [_id] = imx_mipi_dsi_data_entry_single(soc, _id, _hwid, _size) #ifdef CONFIG_SOC_IMX6Q +#define SOC_IOMUXC_BASE_ADDR MX6Q_IOMUXC_BASE_ADDR const struct imx_mipi_dsi_data imx6q_mipi_dsi_data __initconst = imx_mipi_dsi_data_entry_single(MX6Q, 0, , SZ_4K); #endif @@ -46,6 +47,10 @@ struct platform_device *__init imx_add_mipi_dsi( .start = data->iobase, .end = data->iobase + data->iosize - 1, .flags = IORESOURCE_MEM, + }, { + .start = SOC_IOMUXC_BASE_ADDR, + .end = SOC_IOMUXC_BASE_ADDR + SZ_4K - 1, + .flags = IORESOURCE_MEM, }, { .start = data->irq, .end = data->irq,