summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-08-19 19:52:32 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-08-19 15:37:30 -0700
commiteb1ec2fe1757c8952ef6c80c7b460dc27995a6f8 (patch)
tree1a16303fd55048a345328698bf5e1185c76e6284
parent9c3e3feff3622f41ec5f7cf7b1b343f3c16193df (diff)
regulator: tps8003x: Add Charging bus ID
Adding charging rail ID for registering as regulator. Change-Id: I654f8d040be5387bc8d6949e0338db6d4fdd5ed4 Reviewed-on: http://git-master/r/48208 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
-rw-r--r--drivers/mfd/tps80031.c1
-rw-r--r--include/linux/regulator/tps80031-regulator.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/tps80031.c b/drivers/mfd/tps80031.c
index e8ce1ad7d298..6fa885b369e8 100644
--- a/drivers/mfd/tps80031.c
+++ b/drivers/mfd/tps80031.c
@@ -887,6 +887,7 @@ static int dbg_tps_show(struct seq_file *s, void *unused)
print_regs("MASK_PH Regs", s, SLAVE_ID1, 0x20, 0x21);
print_regs("CONT_STATE", s, SLAVE_ID2, 0xE0, 0xE4);
print_regs("VERNUM Regs", s, SLAVE_ID1, 0x87, 0x87);
+ print_regs("CHARGE Regs", s, SLAVE_ID2, 0xDA, 0xF5);
return 0;
}
diff --git a/include/linux/regulator/tps80031-regulator.h b/include/linux/regulator/tps80031-regulator.h
index fe4e0a553104..ed0838a6c3bc 100644
--- a/include/linux/regulator/tps80031-regulator.h
+++ b/include/linux/regulator/tps80031-regulator.h
@@ -45,6 +45,7 @@ enum {
TPS80031_ID_LDOLN,
TPS80031_ID_LDOUSB,
TPS80031_ID_VBUS,
+ TPS80031_ID_CHARGER,
};