From 97e1ade85d34c30e783e6403c885623b49611086 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Jul 2011 21:00:30 -0700 Subject: [PATCH] A22: fix spi0 txd and clk consume power in two 2.2K pull-up resistance --- arch/arm/mach-rk29/board-rk29-a22.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/mach-rk29/board-rk29-a22.c b/arch/arm/mach-rk29/board-rk29-a22.c index 6a0a1c060c5a..4238cb417e8c 100755 --- a/arch/arm/mach-rk29/board-rk29-a22.c +++ b/arch/arm/mach-rk29/board-rk29-a22.c @@ -217,6 +217,21 @@ static int rk29_lcd_io_init(void) return ret; } +#if defined (CONFIG_RK29_WORKING_POWER_MANAGEMENT) +static int rk29_lcd_io_deinit(void) +{ + int ret = 0; + + gpio_direction_output(LCD_TXD_PIN, 1); + gpio_direction_output(LCD_CLK_PIN, 1); + + gpio_free(LCD_CS_PIN); + gpio_free(LCD_CLK_PIN); + gpio_free(LCD_TXD_PIN); + + return ret; +} +#else static int rk29_lcd_io_deinit(void) { int ret = 0; @@ -232,6 +247,8 @@ static int rk29_lcd_io_deinit(void) return ret; } +#endif + static struct rk29lcd_info rk29_lcd_info = { .txd_pin = LCD_TXD_PIN, -- 2.34.1