ARM: pxa/magician: bq24022 regulator needs to be enabled
authorPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 20 Apr 2011 13:41:29 +0000 (15:41 +0200)
committerEric Miao <eric.y.miao@gmail.com>
Mon, 25 Apr 2011 04:43:47 +0000 (12:43 +0800)
Add REGULATOR_CHANGE_STATUS flag to magician bq24022 regulator to enable charging.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/magician.c

index a72993dde2b301f301a9c4caab8d98dd2f3e1388..9984ef70bd794ff8e5a97ffff07ebc08eebb0988 100644 (file)
@@ -599,7 +599,7 @@ static struct regulator_consumer_supply bq24022_consumers[] = {
 static struct regulator_init_data bq24022_init_data = {
        .constraints = {
                .max_uA         = 500000,
-               .valid_ops_mask = REGULATOR_CHANGE_CURRENT,
+               .valid_ops_mask = REGULATOR_CHANGE_CURRENT | REGULATOR_CHANGE_STATUS,
        },
        .num_consumer_supplies  = ARRAY_SIZE(bq24022_consumers),
        .consumer_supplies      = bq24022_consumers,