diff options
author | Justin Waters <justin.waters@timesys.com> | 2008-05-28 15:11:29 -0400 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2008-05-28 15:11:29 -0400 |
commit | f5bb85846029d4df438c61c9fe8dab69461ff9ee (patch) | |
tree | 83fa98ff6ddebcd3bc67eccfc12ee77a70343d59 /arch | |
parent | 0278f58dc03d15b8f6b71e0c1d14ea819524ea55 (diff) |
MX27Lite: Fix LCD GPIO pin requests
The LCD interface on the Litekit uses two GPIO pins for power control. This
patch requests them for the LCD and sets them as outputs.
Signed-off-by: Justin Waters <justin.waters@timesys.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx27/mx27lite_gpio.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-mx27/mx27lite_gpio.c b/arch/arm/mach-mx27/mx27lite_gpio.c index f0dfe0b1c5bb..15f96589f1fe 100644 --- a/arch/arm/mach-mx27/mx27lite_gpio.c +++ b/arch/arm/mach-mx27/mx27lite_gpio.c @@ -605,6 +605,11 @@ void gpio_lcdc_active(void) gpio_request_mux(MX27_PIN_VSYNC, GPIO_MUX_PRIMARY); gpio_request_mux(MX27_PIN_CONTRAST, GPIO_MUX_PRIMARY); gpio_request_mux(MX27_PIN_OE_ACD, GPIO_MUX_PRIMARY); + + gpio_request_mux(MX27_PIN_SSI2_CLK,GPIO_MUX_GPIO); /* Backlight Power */ + mxc_set_gpio_direction(MX27_PIN_SSI2_CLK,0); + gpio_request_mux(MX27_PIN_USBH1_RXDP,GPIO_MUX_GPIO); /* Panel Power */ + mxc_set_gpio_direction(MX27_PIN_USBH1_RXDP,0); } /* @@ -639,6 +644,8 @@ void gpio_lcdc_inactive(void) gpio_free_mux(MX27_PIN_VSYNC); gpio_free_mux(MX27_PIN_CONTRAST); gpio_free_mux(MX27_PIN_OE_ACD); + gpio_free_mux(MX27_PIN_SSI2_CLK); + gpio_free_mux(MX27_PIN_USBH1_RXDP); } /* @@ -1148,7 +1155,10 @@ int sdhc_init_card_det(int id) */ void board_power_lcd(int on) { - /* TODO: Write me */ + if (on) + mxc_set_gpio_dataout(MX27_PIN_USBH1_RXDP,1); + else + mxc_set_gpio_dataout(MX27_PIN_USBH1_RXDP,0); } void gpio_owire_active(void) |