From: Bryan Wu <bryan.wu@canonical.com>
To: tomi.valkeinen@nokia.com, linux-omap@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, gadiyar@ti.com,
rpurdie@rpsys.net
Subject: [PATCH 2/3] OMAP: move Sharp LS LCD panel device to generic DPI panel driver and new backlight driver
Date: Tue, 30 Nov 2010 20:07:39 +0800 [thread overview]
Message-ID: <1291118860-10325-3-git-send-email-bryan.wu@canonical.com> (raw)
In-Reply-To: <1291118860-10325-1-git-send-email-bryan.wu@canonical.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
---
arch/arm/mach-omap2/board-3430sdp.c | 18 +++++++++++++++---
arch/arm/mach-omap2/board-omap3evm.c | 20 +++++++++++++++++---
2 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c
index 1ca0156..4c7eaf0 100644
--- a/arch/arm/mach-omap2/board-3430sdp.c
+++ b/arch/arm/mach-omap2/board-3430sdp.c
@@ -261,14 +261,25 @@ static void sdp3430_panel_disable_tv(struct omap_dss_device *dssdev)
{
}
+static struct panel_generic_dpi_data lcd_panel = {
+ .name = "sharp_ls",
+ .platform_enable = sdp3430_panel_enable_lcd,
+ .platform_disable = sdp3430_panel_disable_lcd,
+};
static struct omap_dss_device sdp3430_lcd_device = {
.name = "lcd",
- .driver_name = "sharp_ls_panel",
.type = OMAP_DISPLAY_TYPE_DPI,
+ .driver_name = "generic_dpi_panel",
+ .data = &lcd_panel,
.phy.dpi.data_lines = 16,
- .platform_enable = sdp3430_panel_enable_lcd,
- .platform_disable = sdp3430_panel_disable_lcd,
+};
+
+static struct platform_device sdp3430_lcd_backlight_device = {
+ .name = "sharp-ls-bl",
+ .dev = {
+ .platform_data = &sdp3430_lcd_device,
+ },
};
static struct panel_generic_dpi_data dvi_panel = {
@@ -322,6 +333,7 @@ static struct regulator_consumer_supply sdp3430_vdda_dac_supply = {
static struct platform_device *sdp3430_devices[] __initdata = {
&sdp3430_dss_device,
+ &sdp3430_lcd_backlight_device,
};
static struct omap_board_config_kernel sdp3430_config[] __initdata = {
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index 369cbdc..4c507de 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -255,15 +255,28 @@ static void omap3_evm_disable_lcd(struct omap_dss_device *dssdev)
lcd_enabled = 0;
}
+static struct panel_generic_dpi_data lcd_panel = {
+ .name = "sharp_ls",
+ .platform_enable = omap3_evm_enable_lcd,
+ .platform_disable = omap3_evm_disable_lcd,
+};
+
static struct omap_dss_device omap3_evm_lcd_device = {
.name = "lcd",
- .driver_name = "sharp_ls_panel",
.type = OMAP_DISPLAY_TYPE_DPI,
+ .driver_name = "generic_dpi_panel",
+ .data = &lcd_panel,
.phy.dpi.data_lines = 18,
- .platform_enable = omap3_evm_enable_lcd,
- .platform_disable = omap3_evm_disable_lcd,
};
+static struct platform_device omap3_evm_lcd_backlight_device = {
+ .name = "sharp-ls-bl",
+ .dev = {
+ .platform_data = &omap3_evm_lcd_device,
+ },
+};
+
+
static int omap3_evm_enable_tv(struct omap_dss_device *dssdev)
{
return 0;
@@ -636,6 +649,7 @@ static void __init omap3_evm_init_irq(void)
static struct platform_device *omap3_evm_devices[] __initdata = {
&omap3_evm_dss_device,
+ &omap3_evm_lcd_backlight_device,
};
static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = {
--
1.7.1
next prev parent reply other threads:[~2010-11-30 12:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-30 12:07 [PATCH 0/3] OMAP: Introduce Backlight driver for Sharp LS037V7DW01 LCD panel Bryan Wu
2010-11-30 12:07 ` [PATCH 1/3] Backlight: driver for Sharp LS037V7DW01 panel on OMAP machine Bryan Wu
2010-11-30 13:09 ` Janorkar, Mayuresh
2010-12-01 14:21 ` Bryan Wu
2010-11-30 12:07 ` Bryan Wu [this message]
2010-11-30 12:07 ` [PATCH 3/3] OMAP: DSS2: remove Sharp LS037V7DW01 panel driver Bryan Wu
2010-12-01 15:32 ` [PATCH 0/3] OMAP: Introduce Backlight driver for Sharp LS037V7DW01 LCD panel Tomi Valkeinen
2010-12-06 5:06 ` Bryan Wu
2010-12-14 13:53 ` Tomi Valkeinen
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=1291118860-10325-3-git-send-email-bryan.wu@canonical.com \
--to=bryan.wu@canonical.com \
--cc=gadiyar@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=rpurdie@rpsys.net \
--cc=tomi.valkeinen@nokia.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox