diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2016-02-27 19:18:50 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-15 15:10:51 -0400 |
commit | d7b6a75497ea2a33a1d2e4b8fa4d98dc8c7e876b (patch) | |
tree | 432ab4806c0ddede6642d567176801c261e915ab /include | |
parent | c5dbae7c19856171e0580f490dfb3d667466e8f3 (diff) | |
download | u-boot-imx-d7b6a75497ea2a33a1d2e4b8fa4d98dc8c7e876b.zip u-boot-imx-d7b6a75497ea2a33a1d2e4b8fa4d98dc8c7e876b.tar.gz u-boot-imx-d7b6a75497ea2a33a1d2e4b8fa4d98dc8c7e876b.tar.bz2 |
power: twl6030: Enable VAUX1 for eMMC power, depending on BOOT2 value
This enables the VAUX1 supply, used for eMMC power in standard configurations.
Its voltage is determined by the value of the BOOT2 pin of the TWL6030.
Note that the TWL6030 might already have enabled this regulator at startup
(depending on the value of the BOOT3 pin of the TWL6030), according to the
TWL6030 datasheet.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include')
-rw-r--r-- | include/twl6030.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/twl6030.h b/include/twl6030.h index bb02d6f..a17a9b5 100644 --- a/include/twl6030.h +++ b/include/twl6030.h @@ -20,6 +20,15 @@ #define TWL6030_CHIP_PWM 0x49 /* Slave Address 0x48 */ +#define TWL6030_PH_STS_BOOT 0x29 + +#define TWL6030_PH_STS_BOOT0 (1 << 0) +#define TWL6030_PH_STS_BOOT1 (1 << 1) +#define TWL6030_PH_STS_BOOT2 (1 << 2) +#define TWL6030_PH_STS_BOOT3 (1 << 3) + +#define TWL6030_VAUX1_CFG_STATE 0x86 +#define TWL6030_VAUX1_CFG_VOLTAGE 0x87 #define TWL6030_VMMC_CFG_STATE 0x9A #define TWL6030_VMMC_CFG_VOLTAGE 0x9B #define TWL6030_VUSB_CFG_STATE 0xA2 @@ -27,6 +36,8 @@ #define TWL6030_CFG_GRP_P1 (1 << 0) #define TWL6030_CFG_STATE_ON (1 << 0) #define TWL6030_CFG_STATE_P1 (TWL6030_CFG_GRP_P1 << 5) +#define TWL6030_CFG_VOLTAGE_18 0x09 +#define TWL6030_CFG_VOLTAGE_28 0x13 #define TWL6030_CFG_VOLTAGE_30 0x15 #define MISC1 0xE4 |