diff options
| -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 */  |