diff options
author | Paul Kocialkowski | 2016-02-27 19:19:04 +0100 |
---|---|---|
committer | Tom Rini | 2016-03-15 15:12:51 -0400 |
commit | 6313c6500484ed85892f425e3ca93f706fd9a2ea (patch) | |
tree | 101f85b8521519f081912ab458c9200a2148e850 /include/twl6030.h | |
parent | 0343f71f0901c87ac38b274eb303d18b70c1e3e9 (diff) |
power: twl6030: Clear VUSB_IN_PMID bit on USB device setup
When booting from USB, the bootrom sets the VUSB_IN_PMID bit of the MISC2
register of the TWL6030. However, U-Boot sets the VUSB_IN_VSYS bit to enable
VBUS input. As both bits are contradictory, enabling both disables the input,
according to the TWL6030 TRM.
Thus, we need to clear the VUSB_IN_PMID bit in case of an USB boot (which could
just as well be a memory boot after USB timed out).
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include/twl6030.h')
-rw-r--r-- | include/twl6030.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/twl6030.h b/include/twl6030.h index e68393c95d5..9a1c645d889 100644 --- a/include/twl6030.h +++ b/include/twl6030.h @@ -48,6 +48,7 @@ #define BB_MEAS (1 << 0) #define TWL6030_MISC2 0xE5 +#define TWL6030_MISC2_VUSB_IN_PMID (1 << 3) #define TWL6030_MISC2_VUSB_IN_VSYS (1 << 4) /* Slave Address 0x49 */ |