ARM: OMAP: rx51: use new display drivers
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 17 May 2013 09:37:27 +0000 (12:37 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 28 Aug 2013 07:23:19 +0000 (10:23 +0300)
Use the new display drivers for RX51 board.

The new OMAP display drivers were merged for 3.11, and we can now change
the board files to use the new ones and phase out the old ones.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-rx51-peripherals.c
arch/arm/mach-omap2/board-rx51-video.c

index 9c2dd10..c3270c0 100644 (file)
@@ -45,6 +45,8 @@
 #include <linux/platform_data/tsl2563.h>
 #include <linux/lis3lv02d.h>
 
+#include <video/omap-panel-data.h>
+
 #if defined(CONFIG_IR_RX51) || defined(CONFIG_IR_RX51_MODULE)
 #include <media/ir-rx51.h>
 #endif
@@ -226,6 +228,15 @@ static struct lp55xx_platform_data rx51_lp5523_platform_data = {
 };
 #endif
 
+#define RX51_LCD_RESET_GPIO    90
+
+static struct panel_acx565akm_platform_data acx_pdata = {
+       .name           = "lcd",
+       .source         = "sdi.0",
+       .reset_gpio     = RX51_LCD_RESET_GPIO,
+       .datapairs      = 2,
+};
+
 static struct omap2_mcspi_device_config wl1251_mcspi_config = {
        .turbo_mode     = 0,
 };
@@ -254,6 +265,7 @@ static struct spi_board_info rx51_peripherals_spi_board_info[] __initdata = {
                .chip_select            = 2,
                .max_speed_hz           = 6000000,
                .controller_data        = &mipid_mcspi_config,
+               .platform_data          = &acx_pdata,
        },
        [RX51_SPI_TSC2005] = {
                .modalias               = "tsc2005",
index bdd1e3a..43a90c8 100644 (file)
 
 #if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
 
-static struct panel_acx565akm_data lcd_data = {
-       .reset_gpio     = RX51_LCD_RESET_GPIO,
+static struct connector_atv_platform_data rx51_tv_pdata = {
+       .name = "tv",
+       .source = "venc.0",
+       .connector_type = OMAP_DSS_VENC_TYPE_COMPOSITE,
+       .invert_polarity = false,
 };
 
-static struct omap_dss_device rx51_lcd_device = {
-       .name                   = "lcd",
-       .driver_name            = "panel-acx565akm",
-       .type                   = OMAP_DISPLAY_TYPE_SDI,
-       .phy.sdi.datapairs      = 2,
-       .data                   = &lcd_data,
-};
-
-static struct omap_dss_device  rx51_tv_device = {
-       .name                   = "tv",
-       .type                   = OMAP_DISPLAY_TYPE_VENC,
-       .driver_name            = "venc",
-       .phy.venc.type          = OMAP_DSS_VENC_TYPE_COMPOSITE,
-};
-
-static struct omap_dss_device *rx51_dss_devices[] = {
-       &rx51_lcd_device,
-       &rx51_tv_device,
+static struct platform_device rx51_tv_connector_device = {
+       .name                   = "connector-analog-tv",
+       .id                     = 0,
+       .dev.platform_data      = &rx51_tv_pdata,
 };
 
 static struct omap_dss_board_info rx51_dss_board_info = {
-       .num_devices    = ARRAY_SIZE(rx51_dss_devices),
-       .devices        = rx51_dss_devices,
-       .default_device = &rx51_lcd_device,
+       .default_display_name = "lcd",
 };
 
 static int __init rx51_video_init(void)
@@ -71,6 +58,8 @@ static int __init rx51_video_init(void)
 
        omap_display_init(&rx51_dss_board_info);
 
+       platform_device_register(&rx51_tv_connector_device);
+
        return 0;
 }