1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-23 15:51:45 +02:00
The PMU initializes all GPIOs to inputs in NoPower, including GPIO2,
which drives GSM_ON and has an external pull-up. Furthermore, we may
have entered PMU.Standby with the modem up.

Unlike u-boot, qi didn't initialize the GPIOs. With this patch is
does.

Reported-by: Paul Ferster <fercerpav@gmail.com>
Signed-off-by: Werner Almesberger <werner@openmoko.org>
This commit is contained in:
Werner Almesberger 2009-01-31 17:23:30 +00:00 committed by Andy Green
parent fbc7e8b244
commit 4a8cabd5a9

View File

@ -45,6 +45,9 @@ const struct pcf50633_init pcf50633_init[] = {
{ PCF50633_REG_OOCMODE, 0x55 },
{ PCF50633_REG_OOCCTL, 0x47 },
{ PCF50633_REG_GPIO2CFG, 0x00 }, /* GSM_ON = 0 */
{ PCF50633_REG_GPIOCTL, 0x01 }, /* only GPIO1 is input */
{ PCF50633_REG_SVMCTL, 0x08 }, /* 3.10V SYS vth, 62ms filter */
{ PCF50633_REG_BVMCTL, 0x02 }, /* 2.80V BAT vth, 62ms filter */