diff options
Diffstat (limited to 'arch/arm/mach-davinci/board-da850-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 14 |
1 files changed, 13 insertions, 1 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", |