]> git.ipfire.org Git - people/ms/u-boot.git/commit
power: twl6030: Clear VUSB_IN_PMID bit on USB device setup
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 27 Feb 2016 18:19:04 +0000 (19:19 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Mar 2016 19:12:51 +0000 (15:12 -0400)
commit6313c6500484ed85892f425e3ca93f706fd9a2ea
tree101f85b8521519f081912ab458c9200a2148e850
parent0343f71f0901c87ac38b274eb303d18b70c1e3e9
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>
drivers/power/twl6030.c
include/twl6030.h