Commit 5302556c authored by Tomi Valkeinen's avatar Tomi Valkeinen

ARM: OMAP: beagle: use new display drivers

Use the new display drivers for Beagleboard.

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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
parent 2320dc6f
...@@ -225,35 +225,46 @@ static struct mtd_partition omap3beagle_nand_partitions[] = { ...@@ -225,35 +225,46 @@ static struct mtd_partition omap3beagle_nand_partitions[] = {
/* DSS */ /* DSS */
static struct tfp410_platform_data dvi_panel = { static struct connector_dvi_platform_data beagle_dvi_connector_pdata = {
.i2c_bus_num = 3, .name = "dvi",
.power_down_gpio = -1, .source = "tfp410.0",
.i2c_bus_num = 3,
}; };
static struct omap_dss_device beagle_dvi_device = { static struct platform_device beagle_dvi_connector_device = {
.type = OMAP_DISPLAY_TYPE_DPI, .name = "connector-dvi",
.name = "dvi", .id = 0,
.driver_name = "tfp410", .dev.platform_data = &beagle_dvi_connector_pdata,
.data = &dvi_panel,
.phy.dpi.data_lines = 24,
}; };
static struct omap_dss_device beagle_tv_device = { static struct encoder_tfp410_platform_data beagle_tfp410_pdata = {
.name = "tfp410.0",
.source = "dpi.0",
.data_lines = 24,
.power_down_gpio = -1,
};
static struct platform_device beagle_tfp410_device = {
.name = "tfp410",
.id = 0,
.dev.platform_data = &beagle_tfp410_pdata,
};
static struct connector_atv_platform_data beagle_tv_pdata = {
.name = "tv", .name = "tv",
.driver_name = "venc", .source = "venc.0",
.type = OMAP_DISPLAY_TYPE_VENC, .connector_type = OMAP_DSS_VENC_TYPE_SVIDEO,
.phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO, .invert_polarity = false,
}; };
static struct omap_dss_device *beagle_dss_devices[] = { static struct platform_device beagle_tv_connector_device = {
&beagle_dvi_device, .name = "connector-analog-tv",
&beagle_tv_device, .id = 0,
.dev.platform_data = &beagle_tv_pdata,
}; };
static struct omap_dss_board_info beagle_dss_data = { static struct omap_dss_board_info beagle_dss_data = {
.num_devices = ARRAY_SIZE(beagle_dss_devices), .default_display_name = "dvi",
.devices = beagle_dss_devices,
.default_device = &beagle_dvi_device,
}; };
#include "sdram-micron-mt46h32m32lf-6.h" #include "sdram-micron-mt46h32m32lf-6.h"
...@@ -332,7 +343,11 @@ static int beagle_twl_gpio_setup(struct device *dev, ...@@ -332,7 +343,11 @@ static int beagle_twl_gpio_setup(struct device *dev,
if (gpio_request_one(gpio + 1, GPIOF_IN, "EHCI_nOC")) if (gpio_request_one(gpio + 1, GPIOF_IN, "EHCI_nOC"))
pr_err("%s: unable to configure EHCI_nOC\n", __func__); pr_err("%s: unable to configure EHCI_nOC\n", __func__);
} }
dvi_panel.power_down_gpio = beagle_config.dvi_pd_gpio; beagle_tfp410_pdata.power_down_gpio = beagle_config.dvi_pd_gpio;
platform_device_register(&beagle_tfp410_device);
platform_device_register(&beagle_dvi_connector_device);
platform_device_register(&beagle_tv_connector_device);
/* TWL4030_GPIO_MAX i.e. LED_GPO controls HS USB Port 2 power */ /* TWL4030_GPIO_MAX i.e. LED_GPO controls HS USB Port 2 power */
phy_data[0].vcc_gpio = gpio + TWL4030_GPIO_MAX; phy_data[0].vcc_gpio = gpio + TWL4030_GPIO_MAX;
...@@ -547,6 +562,7 @@ static void __init omap3_beagle_init(void) ...@@ -547,6 +562,7 @@ static void __init omap3_beagle_init(void)
if (gpio_is_valid(beagle_config.dvi_pd_gpio)) if (gpio_is_valid(beagle_config.dvi_pd_gpio))
omap_mux_init_gpio(beagle_config.dvi_pd_gpio, OMAP_PIN_OUTPUT); omap_mux_init_gpio(beagle_config.dvi_pd_gpio, OMAP_PIN_OUTPUT);
omap_display_init(&beagle_dss_data); omap_display_init(&beagle_dss_data);
omap_serial_init(); omap_serial_init();
omap_sdrc_init(mt46h32m32lf6_sdrc_params, omap_sdrc_init(mt46h32m32lf6_sdrc_params,
mt46h32m32lf6_sdrc_params); mt46h32m32lf6_sdrc_params);
......
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