From 78b88eaae2e0cc29188c2ce0d54df6755726133e Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Sep 2010 14:32:36 +0800 Subject: [PATCH] modify psensor power on --- arch/arm/mach-rk2818/board-raho.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-rk2818/board-raho.c b/arch/arm/mach-rk2818/board-raho.c index 2bf3776ca7be..428df94bf78a 100755 --- a/arch/arm/mach-rk2818/board-raho.c +++ b/arch/arm/mach-rk2818/board-raho.c @@ -1780,15 +1780,13 @@ static int capella_cm3602_power(int on) { /* TODO eolsen Add Voltage reg control */ if (on) { printk("[%s]:on---\n",__FUNCTION__); - gpio_direction_output(capella_cm3602_pdata.pwd_out_pin, SPI_GPIO_OUT); - gpio_set_value(capella_cm3602_pdata.pwd_out_pin, SPI_GPIO_LOW); //CM3605_PWD output - gpio_direction_output(capella_cm3602_pdata.ps_shutdown_pin, SPI_GPIO_OUT); - gpio_set_value(capella_cm3602_pdata.ps_shutdown_pin, SPI_GPIO_LOW); //CM3605_PS_SHUTDOWN + gpio_direction_output(capella_cm3602_pdata.pwd_out_pin, SPI_GPIO_LOW); + gpio_direction_output(capella_cm3602_pdata.ps_shutdown_pin, SPI_GPIO_LOW); } else { printk("[%s]:off---\n",__FUNCTION__); - gpio_set_value(capella_cm3602_pdata.pwd_out_pin, SPI_GPIO_HIGH); - gpio_set_value(capella_cm3602_pdata.ps_shutdown_pin, SPI_GPIO_HIGH); + gpio_direction_output(capella_cm3602_pdata.pwd_out_pin, SPI_GPIO_HIGH); + gpio_direction_output(capella_cm3602_pdata.ps_shutdown_pin, SPI_GPIO_HIGH); } return 0; } -- 2.34.1