chg: Fix detection of charger

The charger detect would timeout, then return success.  We now return
failure when it times out.

Signed-off-by: Sean Cross <xobs@kosagi.com>
i2c-slave: Persist IRQ enable bits across reset

When the board is rebooted, save the state of the IRQ enable bits
so that IRQs will remain enbled even if the firmware gets updated.
bionic: Add sprintf command

This command exists already as part of vsprintf, we just expose it here.

Signed-off-by: Sean Cross <xobs@kosagi.com>
[delete this commit]

Ordinarily, one should wait for RTOFF to be set before accessing the RTC.
However, on first boot, there is no operation present, so RTOFF will
remain 0.

The RTOFF bit will be 0 on first boot, so skip waiting for it.

Signed-off-by: Sean Cross <xobs@kosagi.com>
board-type: Rename senoko_half to senoko_passthru

It's not really a half-senoko, it's a different board entirely.

Signed-off-by: Sean Cross <xobs@kosagi.com>
cmd-gg: Don't run if board doesn't support it

Signed-off-by: Sean Cross <xobs@kosagi.com>
cmd-chg: Don't run if board doesn't support it

Signed-off-by: Sean Cross <xobs@kosagi.com>
cmd-stats: Don't run if board doesn't support it

Signed-off-by: Sean Cross <xobs@kosagi.com>