summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/power-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-10-20 22:39:39 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-10-21 01:23:14 +0200
commit46416c619d586c45647ddc76045b0ed253733d57 (patch)
tree3d6ad82a2923bede48a0109537497bbf3bfd3274 /firmware/target/arm/imx233/power-imx233.h
parent187017bad1c5192c50019a15952f7dd9f36eb3e5 (diff)
downloadrockbox-46416c619d586c45647ddc76045b0ed253733d57.tar.gz
rockbox-46416c619d586c45647ddc76045b0ed253733d57.tar.bz2
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.h1
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);
void imx233_power_set_charge_current(unsigned current); /* in mA */
void imx233_power_set_stop_current(unsigned current); /* in mA */
void imx233_power_enable_batadj(bool enable);
+bool imx233_power_usb_detect(void);
enum imx233_regulator_t
{