From: Tomi Valkeinen <tomi.valkeinen@ti.com> To: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, Archit Taneja <archit@ti.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Subject: [PATCH 25/26] ARM: OMAP: Overo: use new TFP410 platform driver Date: Tue, 26 Mar 2013 13:33:55 +0000 [thread overview] Message-ID: <1364304836-18134-26-git-send-email-tomi.valkeinen@ti.com> (raw) In-Reply-To: <1364304836-18134-1-git-send-email-tomi.valkeinen@ti.com> Use the new TFP410 platform driver instead of the old omap_dss_driver. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> --- arch/arm/mach-omap2/board-overo.c | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 86bab51..e3cd2bd 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c @@ -157,6 +157,20 @@ static struct gpio overo_dss_gpios[] __initdata = { { OVERO_GPIO_LCD_BL, GPIOF_OUT_INIT_HIGH, "OVERO_GPIO_LCD_BL" }, }; +static struct tfp410_platform_data dvi_panel = { + .name = "dvi", + .source = "dpi.0", + .data_lines = 24, + .i2c_bus_num = 3, + .power_down_gpio = -1, +}; + +static struct platform_device overo_dvi_device = { + .name = "tfp410", + .id = 0, + .dev.platform_data = &dvi_panel, +}; + static void __init overo_display_init(void) { if (gpio_request_array(overo_dss_gpios, ARRAY_SIZE(overo_dss_gpios))) { @@ -166,20 +180,9 @@ static void __init overo_display_init(void) gpio_export(OVERO_GPIO_LCD_EN, 0); gpio_export(OVERO_GPIO_LCD_BL, 0); -} -static struct tfp410_platform_data dvi_panel = { - .i2c_bus_num = 3, - .power_down_gpio = -1, -}; - -static struct omap_dss_device overo_dvi_device = { - .name = "dvi", - .type = OMAP_DISPLAY_TYPE_DPI, - .driver_name = "tfp410", - .data = &dvi_panel, - .phy.dpi.data_lines = 24, -}; + platform_device_register(&overo_dvi_device); +} static struct omap_dss_device overo_tv_device = { .name = "tv", @@ -235,7 +238,6 @@ static struct omap_dss_device overo_lcd35_device = { #endif static struct omap_dss_device *overo_dss_devices[] = { - &overo_dvi_device, &overo_tv_device, #if defined(CONFIG_PANEL_LGPHILIPS_LB035Q02) || \ defined(CONFIG_PANEL_LGPHILIPS_LB035Q02_MODULE) @@ -247,7 +249,7 @@ static struct omap_dss_device *overo_dss_devices[] = { static struct omap_dss_board_info overo_dss_data = { .num_devices = ARRAY_SIZE(overo_dss_devices), .devices = overo_dss_devices, - .default_device = &overo_dvi_device, + .default_display_name = "dvi", }; static struct mtd_partition overo_nand_partitions[] = { -- 1.7.10.4
WARNING: multiple messages have this Message-ID (diff)
From: Tomi Valkeinen <tomi.valkeinen@ti.com> To: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, Archit Taneja <archit@ti.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Subject: [PATCH 25/26] ARM: OMAP: Overo: use new TFP410 platform driver Date: Tue, 26 Mar 2013 15:33:55 +0200 [thread overview] Message-ID: <1364304836-18134-26-git-send-email-tomi.valkeinen@ti.com> (raw) In-Reply-To: <1364304836-18134-1-git-send-email-tomi.valkeinen@ti.com> Use the new TFP410 platform driver instead of the old omap_dss_driver. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> --- arch/arm/mach-omap2/board-overo.c | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 86bab51..e3cd2bd 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c @@ -157,6 +157,20 @@ static struct gpio overo_dss_gpios[] __initdata = { { OVERO_GPIO_LCD_BL, GPIOF_OUT_INIT_HIGH, "OVERO_GPIO_LCD_BL" }, }; +static struct tfp410_platform_data dvi_panel = { + .name = "dvi", + .source = "dpi.0", + .data_lines = 24, + .i2c_bus_num = 3, + .power_down_gpio = -1, +}; + +static struct platform_device overo_dvi_device = { + .name = "tfp410", + .id = 0, + .dev.platform_data = &dvi_panel, +}; + static void __init overo_display_init(void) { if (gpio_request_array(overo_dss_gpios, ARRAY_SIZE(overo_dss_gpios))) { @@ -166,20 +180,9 @@ static void __init overo_display_init(void) gpio_export(OVERO_GPIO_LCD_EN, 0); gpio_export(OVERO_GPIO_LCD_BL, 0); -} -static struct tfp410_platform_data dvi_panel = { - .i2c_bus_num = 3, - .power_down_gpio = -1, -}; - -static struct omap_dss_device overo_dvi_device = { - .name = "dvi", - .type = OMAP_DISPLAY_TYPE_DPI, - .driver_name = "tfp410", - .data = &dvi_panel, - .phy.dpi.data_lines = 24, -}; + platform_device_register(&overo_dvi_device); +} static struct omap_dss_device overo_tv_device = { .name = "tv", @@ -235,7 +238,6 @@ static struct omap_dss_device overo_lcd35_device = { #endif static struct omap_dss_device *overo_dss_devices[] = { - &overo_dvi_device, &overo_tv_device, #if defined(CONFIG_PANEL_LGPHILIPS_LB035Q02) || \ defined(CONFIG_PANEL_LGPHILIPS_LB035Q02_MODULE) @@ -247,7 +249,7 @@ static struct omap_dss_device *overo_dss_devices[] = { static struct omap_dss_board_info overo_dss_data = { .num_devices = ARRAY_SIZE(overo_dss_devices), .devices = overo_dss_devices, - .default_device = &overo_dvi_device, + .default_display_name = "dvi", }; static struct mtd_partition overo_nand_partitions[] = { -- 1.7.10.4
next prev parent reply other threads:[~2013-03-26 13:33 UTC|newest] Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-03-26 13:33 [PATCH 00/26] DSS device model change Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 01/26] OMAPDSS: only probe pdata if there's one Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 02/26] OMAPDSS: add omap_dss_find_output() Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 03/26] OMAPDSS: add omap_dss_find_output_by_node() Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 04/26] OMAPDSS: fix dss_get_ctx_loss_count for DT Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 05/26] OMAPDSS: DPI: fix regulators Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-27 9:57 ` Archit Taneja 2013-03-27 9:57 ` Archit Taneja 2013-03-26 13:33 ` [PATCH 06/26] OMAPDSS: SDI: " Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 07/26] OMAPDSS: add panel list Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 08/26] OMAPDSS: use the panel list in omap_dss_get_next_device Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 09/26] OMAPDSS: don't use dss bus in suspend/resume Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 10/26] OMAPDSS: implement display sysfs without dss bus Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 11/26] OMAPDSS: Add panel_dev pointer to dssdev Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 12/26] OMAPDSS: DPI: new panel registration Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 13/26] OMAPDSS: DSI: " Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 14/26] OMAPDSS: HDMI: " Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 15/26] OMAPDSS: TFP410 platform_data changes Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 16/26] OMAPDSS: TFP410: convert to platform device Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-27 11:11 ` Archit Taneja 2013-03-27 11:23 ` Archit Taneja 2013-03-27 11:14 ` Tomi Valkeinen 2013-03-27 11:14 ` Tomi Valkeinen 2013-03-27 11:17 ` Archit Taneja 2013-03-27 11:29 ` Archit Taneja 2013-03-26 13:33 ` [PATCH 17/26] OMAPDSS: generic-dpi-panel platform_data changes Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 18/26] OMAPDSS: panel-generic-dpi: convert to platform device Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 19/26] OMAPDSS: HDMI: " Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 20/26] OMAPDSS: Taal platform_data changes Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 21/26] OMAPDSS: Taal: convert to platform device Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 22/26] ARM: OMAP: Panda: use new TFP410 platform driver Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 23/26] ARM: OMAP: Panda & SDP: use new HDMI driver Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 24/26] ARM: OMAP: 4430SDP: use new Taal driver Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen [this message] 2013-03-26 13:33 ` [PATCH 25/26] ARM: OMAP: Overo: use new TFP410 platform driver Tomi Valkeinen 2013-03-26 13:33 ` [PATCH 26/26] ARM: OMAP: Overo: use new generic-dpi-panel " Tomi Valkeinen 2013-03-26 13:33 ` Tomi Valkeinen 2013-03-26 17:10 ` [PATCH 00/26] DSS device model change Tony Lindgren 2013-03-26 17:10 ` Tony Lindgren 2013-03-27 6:13 ` Tomi Valkeinen 2013-03-27 6:13 ` Tomi Valkeinen 2013-03-27 20:25 ` Tony Lindgren 2013-03-27 20:25 ` Tony Lindgren
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1364304836-18134-26-git-send-email-tomi.valkeinen@ti.com \ --to=tomi.valkeinen@ti.com \ --cc=archit@ti.com \ --cc=linux-fbdev@vger.kernel.org \ --cc=linux-omap@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.