diff options
| author | a1205z <a1205z@motorola.com> | 2013-12-11 14:25:53 -0600 |
|---|---|---|
| committer | James Wylder <jwylder@motorola.com> | 2014-03-05 17:46:54 -0600 |
| commit | 9efda83be4421a3398085d64ead255c5b99d65c9 (patch) | |
| tree | 200e5a2281584d9b8c0c408141249f04b62b67bb | |
| parent | 2d07e6aa2b5ba78b241cba2a8ca36063e37239a8 (diff) | |
| download | olio-linux-3.10-9efda83be4421a3398085d64ead255c5b99d65c9.tar.xz olio-linux-3.10-9efda83be4421a3398085d64ead255c5b99d65c9.zip | |
IKXCLOCK-31: set the DCDC3 voltage as 1.875v
Set the DCDC3 voltage as 1.8975v
enabling the debugfs for pmic tps
add an interface to dump all pmic tps registers
Change-Id: Ic29d9f383192aa01b73657649d2d11ba113dda89
Signed-off-by: a1205z <a1205z@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/588631
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Douglas Zobel <dzobel1@motorola.com>
Reviewed-by: Jee Su Chang <w20740@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
| -rw-r--r-- | arch/arm/boot/dts/omap3-minnow-p0.dts | 4 | ||||
| -rw-r--r-- | arch/arm/configs/ext_config/eng_bld.config | 1 | ||||
| -rw-r--r-- | drivers/mfd/tps65912-debugfs.c | 10 | ||||
| -rw-r--r-- | include/linux/mfd/tps65912.h | 1 |
4 files changed, 14 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/omap3-minnow-p0.dts b/arch/arm/boot/dts/omap3-minnow-p0.dts index bd485b0af11..e68d5cb0e02 100644 --- a/arch/arm/boot/dts/omap3-minnow-p0.dts +++ b/arch/arm/boot/dts/omap3-minnow-p0.dts @@ -52,8 +52,8 @@ reg = <2>; regulator-compatible = "DCDC3"; regulator-name = "DCDC3"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; + regulator-min-microvolt = <1875000>; + regulator-max-microvolt = <1875000>; regulator-boot-on; regulator-always-on; }; diff --git a/arch/arm/configs/ext_config/eng_bld.config b/arch/arm/configs/ext_config/eng_bld.config index 3190ad30e28..e7fe73a0674 100644 --- a/arch/arm/configs/ext_config/eng_bld.config +++ b/arch/arm/configs/ext_config/eng_bld.config @@ -41,3 +41,4 @@ CONFIG_DEBUG_OMAP3UART3=y # CONFIG_DEBUG_ZOOM_UART is not set CONFIG_DEBUG_LL_INCLUDE="debug/omap2plus.S" CONFIG_EARLY_PRINTK=y +CONFIG_MFD_TPS65912_DEBUGFS=y diff --git a/drivers/mfd/tps65912-debugfs.c b/drivers/mfd/tps65912-debugfs.c index 2a7d870aa8e..77c42dac634 100644 --- a/drivers/mfd/tps65912-debugfs.c +++ b/drivers/mfd/tps65912-debugfs.c @@ -166,6 +166,16 @@ static int reg_write(void *data, u64 val) DEFINE_SIMPLE_ATTRIBUTE(reg_fops, reg_read, reg_write, "0x%02llx\n"); +void tps65912_dump_registers(struct tps65912 *tps65912) +{ + int i, reg_data; + for (i = 0; i < ARRAY_SIZE(debugfs_regs); i++) { + reg_data = tps65912_reg_read(tps65912, debugfs_regs[i].reg); + pr_info("dump register %s addr %02x with value %02x\n", + debugfs_regs[i].name, debugfs_regs[i].reg, reg_data); + } +} + int tps65912_debugfs_create(struct tps65912 *tps65912) { int i; diff --git a/include/linux/mfd/tps65912.h b/include/linux/mfd/tps65912.h index 26c7897d1eb..16375fe5132 100644 --- a/include/linux/mfd/tps65912.h +++ b/include/linux/mfd/tps65912.h @@ -337,5 +337,6 @@ int tps65912_irq_init(struct tps65912 *tps65912, int irq, int tps65912_irq_exit(struct tps65912 *tps65912); int tps65912_debugfs_create(struct tps65912 *tps65912); void tps65912_debugfs_remove(struct tps65912 *tps65912); +void tps65912_dump_registers(struct tps65912 *tps65912); #endif /* __LINUX_MFD_TPS65912_H */ |