mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-25 18:27:32 +02:00
qi-add-totrst-clear-before-linux.patch
Before leaving for Linux, gratuitously clear down the totrst / timeout counter to help stop us dying partway through boot on effective power-off. In the case we have no battery or battery < ~3V, we still somehow need to do more in kernel because it can switch itself off more than 8 seconds after this point. Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
parent
cea4b83d53
commit
3554f337df
@ -348,6 +348,10 @@ static void putc_gta02(char c)
|
||||
|
||||
static void close_gta02(void)
|
||||
{
|
||||
/* explicitly clear any pending 8s timeout */
|
||||
|
||||
i2c_write_sync(&bb_s3c24xx, PCF50633_I2C_ADS, PCF50633_REG_OOCSHDWN, 0x04);
|
||||
|
||||
/* clear any pending timeouts by reading interrupts */
|
||||
|
||||
i2c_read_sync(&bb_s3c24xx, PCF50633_I2C_ADS, PCF50633_REG_INT1);
|
||||
|
Loading…
Reference in New Issue
Block a user