regulator: tps8003x: Add Charging bus ID
Laxman Dewangan [Fri, 19 Aug 2011 14:22:32 +0000 (19:22 +0530)]
Adding charging rail ID for registering as regulator.

Original-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>

Rebase-Id: R57f4505477c2bea7e3be5b5f6e7a61e665014181

drivers/mfd/tps80031.c
include/linux/regulator/tps80031-regulator.h

index e51ea99..7652d35 100644 (file)
@@ -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;
 }
 
index fe4e0a5..ed0838a 100644 (file)
@@ -45,6 +45,7 @@ enum {
        TPS80031_ID_LDOLN,
        TPS80031_ID_LDOUSB,
        TPS80031_ID_VBUS,
+       TPS80031_ID_CHARGER,
 };