diff options
author | Samuel Holland <samuel@sholland.org> | 2020-12-13 22:43:15 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2020-12-13 22:58:21 -0600 |
commit | 4470298333d0e453d5ac2f9beb73b6a3787edcce (patch) | |
tree | 449c3e3bbaf3161b9cc3c2e34750442484563850 /include | |
parent | d6fdb52b9c9db0454fa49dbbb969ea4164de29c0 (diff) | |
download | platform_external_arm-trusted-firmware-4470298333d0e453d5ac2f9beb73b6a3787edcce.tar.gz platform_external_arm-trusted-firmware-4470298333d0e453d5ac2f9beb73b6a3787edcce.tar.bz2 platform_external_arm-trusted-firmware-4470298333d0e453d5ac2f9beb73b6a3787edcce.zip |
allwinner: Return the PMIC to I2C mode after use
This gives the rich OS the flexibility to choose between I2C and RSB
communication. Since a runtime address can only be assigned once after
entering RSB mode, it also lets the rich OS choose any runtime address.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Change-Id: Id49c124c5e925985fc31c0ba38c7fb6c941aafa8
Diffstat (limited to 'include')
-rw-r--r-- | include/drivers/allwinner/axp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drivers/allwinner/axp.h b/include/drivers/allwinner/axp.h index 9c0035f96..222820b12 100644 --- a/include/drivers/allwinner/axp.h +++ b/include/drivers/allwinner/axp.h @@ -9,6 +9,10 @@ #include <stdint.h> +#define AXP20X_MODE_REG 0x3e +#define AXP20X_MODE_I2C 0x00 +#define AXP20X_MODE_RSB 0x7c + #define NA 0xff enum { |