diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-20 22:39:39 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-21 01:23:14 +0200 |
commit | 46416c619d586c45647ddc76045b0ed253733d57 (patch) | |
tree | 3d6ad82a2923bede48a0109537497bbf3bfd3274 /firmware/target/arm/imx233/power-imx233.h | |
parent | 187017bad1c5192c50019a15952f7dd9f36eb3e5 (diff) | |
download | rockbox-46416c619d586c45647ddc76045b0ed253733d57.tar.gz rockbox-46416c619d586c45647ddc76045b0ed253733d57.zip |
imx233: fix usb_detect() to be consistent with vbus detection
The STMP3700 has unreliable vbusvalid irq so we need to use
vdd5gtvddio. Therefore, using the vbusvalid bit produces
inconsistent results between events and detect. Fix that
by making power handle all the usb detect stuff.
Change-Id: Ic521b2f6677602e184fe46352c5359f4b4ba8d56
Diffstat (limited to 'firmware/target/arm/imx233/power-imx233.h')
-rw-r--r-- | firmware/target/arm/imx233/power-imx233.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/power-imx233.h b/firmware/target/arm/imx233/power-imx233.h index d33ca20333..59ffcd37a2 100644 --- a/firmware/target/arm/imx233/power-imx233.h +++ b/firmware/target/arm/imx233/power-imx233.h | |||
@@ -82,6 +82,7 @@ void imx233_power_init(void); | |||
82 | void imx233_power_set_charge_current(unsigned current); /* in mA */ | 82 | void imx233_power_set_charge_current(unsigned current); /* in mA */ |
83 | void imx233_power_set_stop_current(unsigned current); /* in mA */ | 83 | void imx233_power_set_stop_current(unsigned current); /* in mA */ |
84 | void imx233_power_enable_batadj(bool enable); | 84 | void imx233_power_enable_batadj(bool enable); |
85 | bool imx233_power_usb_detect(void); | ||
85 | 86 | ||
86 | enum imx233_regulator_t | 87 | enum imx233_regulator_t |
87 | { | 88 | { |