mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
modify psensor power on
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user