diff options
author | Ting Shen <phoenixshen@google.com> | 2023-02-07 16:39:20 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-02-08 05:50:32 +0000 |
commit | efaba4f3b6d014fd77782e35b6a184d39c6c50b4 (patch) | |
tree | 4f87e0697ba118a75d137e9ce6c9e7c70e046cdf /driver/ppc/rt1739.h | |
parent | f0a70403e25db4affec4e81405907876f38f39ee (diff) | |
download | chrome-ec-efaba4f3b6d014fd77782e35b6a184d39c6c50b4.tar.gz |
ppc/rt1739: implement dead battery boot
If rt1739 seems to be the only power source of the system, don't turn
off its HV sink path.
BUG=b:267412033
TEST=Verify that PPC is able to supply power in follow scenarios:
1) power on without battery
2) sysjump without battery
3) ec reset without battery
BRANCH=none
LOW_COVERAGE_REASON=early bringup
Change-Id: I13d291edfc78f6e1491b3c4a0d8e2e661925004d
Signed-off-by: Ting Shen <phoenixshen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4225988
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'driver/ppc/rt1739.h')
-rw-r--r-- | driver/ppc/rt1739.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/ppc/rt1739.h b/driver/ppc/rt1739.h index d93369094f..620045ef40 100644 --- a/driver/ppc/rt1739.h +++ b/driver/ppc/rt1739.h @@ -40,6 +40,7 @@ #define RT1739_REG_SYS_CTRL 0x20 #define RT1739_OT_EN BIT(4) +#define RT1739_DEAD_BATTERY BIT(1) #define RT1739_SHUTDOWN_OFF BIT(0) #define RT1739_REG_VBUS_SWITCH_CTRL 0x21 |