diff options
author | Sudhakar Rajashekhara <sudhakar.raj@ti.com> | 2009-09-15 17:46:14 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-25 13:21:23 -0500 |
commit | 7761ef67930dac37f90aaf0ffcd6b1f473c07dfc (patch) | |
tree | 035af012c4bf1b1827a8932f8cd54910c30e7920 /arch/arm/mach-davinci | |
parent | c51df70b1e14220c8fc0799f6c27b9362d9424d0 (diff) |
davinci: Correct the GPIO number for LCD panel power
On the latest DA850/OMAP-L138 EVM (Beta) the GPIO pin
number of LCD panel power has changed. This patch takes
care of this change. Software will support only Beta
versions of DA850/OMAP-L138 EVM.
In the process, add the missing entry for data pin 0
and remove the GPIO specific pins from da850_lcdcntl_pins
structure. EVM specific muxing for LCD is being done in the
board file now.
Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/mux.h | 2 |
3 files changed, 20 insertions, 9 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index 47619a98b562..25ae0079980d 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -32,12 +32,13 @@ | |||
32 | #include <mach/cp_intc.h> | 32 | #include <mach/cp_intc.h> |
33 | #include <mach/da8xx.h> | 33 | #include <mach/da8xx.h> |
34 | #include <mach/nand.h> | 34 | #include <mach/nand.h> |
35 | #include <mach/mux.h> | ||
35 | 36 | ||
36 | #define DA850_EVM_PHY_MASK 0x1 | 37 | #define DA850_EVM_PHY_MASK 0x1 |
37 | #define DA850_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */ | 38 | #define DA850_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */ |
38 | 39 | ||
40 | #define DA850_LCD_PWR_PIN GPIO_TO_PIN(2, 8) | ||
39 | #define DA850_LCD_BL_PIN GPIO_TO_PIN(2, 15) | 41 | #define DA850_LCD_BL_PIN GPIO_TO_PIN(2, 15) |
40 | #define DA850_LCD_PWR_PIN GPIO_TO_PIN(8, 10) | ||
41 | 42 | ||
42 | #define DA850_MMCSD_CD_PIN GPIO_TO_PIN(4, 0) | 43 | #define DA850_MMCSD_CD_PIN GPIO_TO_PIN(4, 0) |
43 | #define DA850_MMCSD_WP_PIN GPIO_TO_PIN(4, 1) | 44 | #define DA850_MMCSD_WP_PIN GPIO_TO_PIN(4, 1) |
@@ -264,6 +265,11 @@ static void __init da850_evm_init_nor(void) | |||
264 | #define HAS_MMC 0 | 265 | #define HAS_MMC 0 |
265 | #endif | 266 | #endif |
266 | 267 | ||
268 | static const short da850_evm_lcdc_pins[] = { | ||
269 | DA850_GPIO2_8, DA850_GPIO2_15, | ||
270 | -1 | ||
271 | }; | ||
272 | |||
267 | static __init void da850_evm_init(void) | 273 | static __init void da850_evm_init(void) |
268 | { | 274 | { |
269 | struct davinci_soc_info *soc_info = &davinci_soc_info; | 275 | struct davinci_soc_info *soc_info = &davinci_soc_info; |
@@ -372,6 +378,12 @@ static __init void da850_evm_init(void) | |||
372 | pr_warning("da850_evm_init: lcdcntl mux setup failed: %d\n", | 378 | pr_warning("da850_evm_init: lcdcntl mux setup failed: %d\n", |
373 | ret); | 379 | ret); |
374 | 380 | ||
381 | /* Handle board specific muxing for LCD here */ | ||
382 | ret = da8xx_pinmux_setup(da850_evm_lcdc_pins); | ||
383 | if (ret) | ||
384 | pr_warning("da850_evm_init: evm specific lcd mux setup " | ||
385 | "failed: %d\n", ret); | ||
386 | |||
375 | ret = da850_lcd_hw_init(); | 387 | ret = da850_lcd_hw_init(); |
376 | if (ret) | 388 | if (ret) |
377 | pr_warning("da850_evm_init: lcd initialization failed: %d\n", | 389 | pr_warning("da850_evm_init: lcd initialization failed: %d\n", |
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 575e9ccbb25f..a62863c57459 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -513,8 +513,8 @@ static const struct mux_config da850_pins[] = { | |||
513 | MUX_CFG(DA850, EMA_WAIT_1, 6, 24, 15, 1, false) | 513 | MUX_CFG(DA850, EMA_WAIT_1, 6, 24, 15, 1, false) |
514 | MUX_CFG(DA850, NEMA_CS_2, 7, 0, 15, 1, false) | 514 | MUX_CFG(DA850, NEMA_CS_2, 7, 0, 15, 1, false) |
515 | /* GPIO function */ | 515 | /* GPIO function */ |
516 | MUX_CFG(DA850, GPIO2_8, 5, 28, 15, 8, false) | ||
516 | MUX_CFG(DA850, GPIO2_15, 5, 0, 15, 8, false) | 517 | MUX_CFG(DA850, GPIO2_15, 5, 0, 15, 8, false) |
517 | MUX_CFG(DA850, GPIO8_10, 18, 28, 15, 8, false) | ||
518 | MUX_CFG(DA850, GPIO4_0, 10, 28, 15, 8, false) | 518 | MUX_CFG(DA850, GPIO4_0, 10, 28, 15, 8, false) |
519 | MUX_CFG(DA850, GPIO4_1, 10, 24, 15, 8, false) | 519 | MUX_CFG(DA850, GPIO4_1, 10, 24, 15, 8, false) |
520 | #endif | 520 | #endif |
@@ -562,12 +562,11 @@ const short da850_mcasp_pins[] __initdata = { | |||
562 | }; | 562 | }; |
563 | 563 | ||
564 | const short da850_lcdcntl_pins[] __initdata = { | 564 | const short da850_lcdcntl_pins[] __initdata = { |
565 | DA850_LCD_D_1, DA850_LCD_D_2, DA850_LCD_D_3, DA850_LCD_D_4, | 565 | DA850_LCD_D_0, DA850_LCD_D_1, DA850_LCD_D_2, DA850_LCD_D_3, |
566 | DA850_LCD_D_5, DA850_LCD_D_6, DA850_LCD_D_7, DA850_LCD_D_8, | 566 | DA850_LCD_D_4, DA850_LCD_D_5, DA850_LCD_D_6, DA850_LCD_D_7, |
567 | DA850_LCD_D_9, DA850_LCD_D_10, DA850_LCD_D_11, DA850_LCD_D_12, | 567 | DA850_LCD_D_8, DA850_LCD_D_9, DA850_LCD_D_10, DA850_LCD_D_11, |
568 | DA850_LCD_D_13, DA850_LCD_D_14, DA850_LCD_D_15, DA850_LCD_PCLK, | 568 | DA850_LCD_D_12, DA850_LCD_D_13, DA850_LCD_D_14, DA850_LCD_D_15, |
569 | DA850_LCD_HSYNC, DA850_LCD_VSYNC, DA850_NLCD_AC_ENB_CS, DA850_GPIO2_15, | 569 | DA850_LCD_PCLK, DA850_LCD_HSYNC, DA850_LCD_VSYNC, DA850_NLCD_AC_ENB_CS, |
570 | DA850_GPIO8_10, | ||
571 | -1 | 570 | -1 |
572 | }; | 571 | }; |
573 | 572 | ||
diff --git a/arch/arm/mach-davinci/include/mach/mux.h b/arch/arm/mach-davinci/include/mach/mux.h index bb84893a4e83..b2c1ad035ce2 100644 --- a/arch/arm/mach-davinci/include/mach/mux.h +++ b/arch/arm/mach-davinci/include/mach/mux.h | |||
@@ -881,8 +881,8 @@ enum davinci_da850_index { | |||
881 | DA850_NEMA_CS_2, | 881 | DA850_NEMA_CS_2, |
882 | 882 | ||
883 | /* GPIO function */ | 883 | /* GPIO function */ |
884 | DA850_GPIO2_8, | ||
884 | DA850_GPIO2_15, | 885 | DA850_GPIO2_15, |
885 | DA850_GPIO8_10, | ||
886 | DA850_GPIO4_0, | 886 | DA850_GPIO4_0, |
887 | DA850_GPIO4_1, | 887 | DA850_GPIO4_1, |
888 | }; | 888 | }; |