diff options
author | Paer-Olof Haakansson <par-olof.hakansson@stericsson.com> | 2012-02-22 19:07:51 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-01-23 14:39:22 +0000 |
commit | 34c11a709e928090cf34ecd706f7d3170f4e5026 (patch) | |
tree | 63418834b4e102c8ebe4cafb8b878f2b357410e2 /drivers/mfd/ab8500-core.c | |
parent | 97034a1e042d4316a83a3f68d61edf6c42e3f265 (diff) | |
download | talos-obmc-linux-34c11a709e928090cf34ecd706f7d3170f4e5026.tar.gz talos-obmc-linux-34c11a709e928090cf34ecd706f7d3170f4e5026.zip |
u8500-charger: Delay for USB enumeration
If charging is started before USB enumeration of an Accessory
Charger Adapter has finished, the AB8500 will generate a
VBUS_ERROR. This in turn results in timeouts and delays the
enumeration with around 15 seconds. This patch delays the
charging and then ramps currents slowly to avoid VBUS errors.
The delay allows the enumeration to have finished before
charging is turned on.
Signed-off-by: Martin Sjoblom <martin.w.sjoblom@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'drivers/mfd/ab8500-core.c')
-rw-r--r-- | drivers/mfd/ab8500-core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 30b92652fce9..4c4aa197f307 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c @@ -749,6 +749,12 @@ static struct resource ab8500_charger_resources[] = { .end = AB8500_INT_CH_WD_EXP, .flags = IORESOURCE_IRQ, }, + { + .name = "VBUS_CH_DROP_END", + .start = AB8500_INT_VBUS_CH_DROP_END, + .end = AB8500_INT_VBUS_CH_DROP_END, + .flags = IORESOURCE_IRQ, + }, }; static struct resource ab8500_btemp_resources[] = { |