aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/devices-da8xx.c
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@mvista.com>2009-09-15 21:14:19 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-25 13:21:22 -0500
commitb9e6342b2b796c2f7fdc98cefd17df16892b035e (patch)
treec9d5de627ff4b4dfcf4d6b282378068b6373af64 /arch/arm/mach-davinci/devices-da8xx.c
parent2eb30c81ce91f646f6f2e6cdfd36b79a492002ce (diff)
davinci: Add support for Sharp LCD035Q3DG01 graphical LCD
Add support for the Sharp LCD035Q3DG01 graphical LCD. This requires a minor interface change to da8xx_register_lcdc() so that the board code can pass in the platform_data which describes the lcd controller that's to be used. Signed-off-by: Mark A. Greer <mgreer@mvista.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/devices-da8xx.c')
-rw-r--r--arch/arm/mach-davinci/devices-da8xx.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c
index 0102e0a55578..55956135cdf4 100644
--- a/arch/arm/mach-davinci/devices-da8xx.c
+++ b/arch/arm/mach-davinci/devices-da8xx.c
@@ -21,7 +21,6 @@
21#include <mach/common.h> 21#include <mach/common.h>
22#include <mach/time.h> 22#include <mach/time.h>
23#include <mach/da8xx.h> 23#include <mach/da8xx.h>
24#include <video/da8xx-fb.h>
25 24
26#include "clock.h" 25#include "clock.h"
27 26
@@ -381,10 +380,16 @@ static struct lcd_ctrl_config lcd_cfg = {
381 .raster_order = 0, 380 .raster_order = 0,
382}; 381};
383 382
384static struct da8xx_lcdc_platform_data da850_evm_lcdc_pdata = { 383struct da8xx_lcdc_platform_data sharp_lcd035q3dg01_pdata = {
385 .manu_name = "sharp", 384 .manu_name = "sharp",
386 .controller_data = &lcd_cfg, 385 .controller_data = &lcd_cfg,
387 .type = "Sharp_LK043T1DG01", 386 .type = "Sharp_LCD035Q3DG01",
387};
388
389struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata = {
390 .manu_name = "sharp",
391 .controller_data = &lcd_cfg,
392 .type = "Sharp_LK043T1DG01",
388}; 393};
389 394
390static struct resource da8xx_lcdc_resources[] = { 395static struct resource da8xx_lcdc_resources[] = {
@@ -400,19 +405,17 @@ static struct resource da8xx_lcdc_resources[] = {
400 }, 405 },
401}; 406};
402 407
403static struct platform_device da850_lcdc_device = { 408static struct platform_device da8xx_lcdc_device = {
404 .name = "da8xx_lcdc", 409 .name = "da8xx_lcdc",
405 .id = 0, 410 .id = 0,
406 .num_resources = ARRAY_SIZE(da8xx_lcdc_resources), 411 .num_resources = ARRAY_SIZE(da8xx_lcdc_resources),
407 .resource = da8xx_lcdc_resources, 412 .resource = da8xx_lcdc_resources,
408 .dev = {
409 .platform_data = &da850_evm_lcdc_pdata,
410 }
411}; 413};
412 414
413int __init da8xx_register_lcdc(void) 415int __init da8xx_register_lcdc(struct da8xx_lcdc_platform_data *pdata)
414{ 416{
415 return platform_device_register(&da850_lcdc_device); 417 da8xx_lcdc_device.dev.platform_data = pdata;
418 return platform_device_register(&da8xx_lcdc_device);
416} 419}
417 420
418static struct resource da8xx_mmcsd0_resources[] = { 421static struct resource da8xx_mmcsd0_resources[] = {