Commit bab7afa9 authored by H. Nikolaus Schaller's avatar H. Nikolaus Schaller

Palmas: add a poweroff() function

Signed-off-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
parent 37784ede
......@@ -172,3 +172,11 @@ int twl603x_enable_bb_charge(u8 bb_fields)
val, err);
return err;
}
/*
* power off TWL6035/37.
*/
int twl603x_poweroff(bool restart)
{
return palmas_i2c_write_u8(TWL603X_CHIP_P1, 0xa0, restart?0x03:0x00);
}
......@@ -124,5 +124,6 @@ int twl603x_mmc1_set_ldo9(u8 vsel);
int twl603x_audio_power(u8 on);
int twl603x_enable_bb_charge(u8 bb_fields);
int palmas_enable_ss_ldo(void);
int twl603x_poweroff(bool restart);
#endif /* PALMAS_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment