From: root Date: Mon, 27 Sep 2010 06:32:36 +0000 (+0800) Subject: modify psensor power on X-Git-Tag: firefly_0821_release~11101 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=78b88eaae2e0cc29188c2ce0d54df6755726133e;p=firefly-linux-kernel-4.4.55.git modify psensor power on --- 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; }