summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlex Gonzalez <alex.gonzalez@digi.com>2012-01-11 13:29:04 +0100
committerAlex Gonzalez <alex.gonzalez@digi.com>2012-01-11 16:09:14 +0100
commitde1561e3f23e7d76ccee857c8fc175b3643e029d (patch)
treed262bf14a94425372543ff3c11f9f444740bad08 /include
parentf19491efdd049238a985cbcee0691c751dac1726 (diff)
da9052: Correct upper, lower and masks values.
Some regulators have the upper,lower and mask values from old datasheets belonging to old parts. This commit corrects them to the latest available datasheet. With this change the values reported by the kernel now match the PMIC regulator registers configuration and the measured values in U-Boot. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/da9052/pm.h8
-rw-r--r--include/linux/mfd/da9052/reg.h5
2 files changed, 6 insertions, 7 deletions
diff --git a/include/linux/mfd/da9052/pm.h b/include/linux/mfd/da9052/pm.h
index 0f918ff20b3d..23446493ca3e 100644
--- a/include/linux/mfd/da9052/pm.h
+++ b/include/linux/mfd/da9052/pm.h
@@ -47,11 +47,11 @@
#define DA9052_BUCK_CORE_PRO_VOLT_UPPER 2075
#define DA9052_BUCK_CORE_PRO_VOLT_LOWER 500
#define DA9052_BUCK_CORE_PRO_STEP 25
-#define DA9052_BUCK_MEM_VOLT_UPPER 2500
-#define DA9052_BUCK_MEM_VOLT_LOWER 925
+#define DA9052_BUCK_MEM_VOLT_UPPER 2525
+#define DA9052_BUCK_MEM_VOLT_LOWER 950
#define DA9052_BUCK_MEM_STEP 25
-#define DA9052_BUCK_PERI_VOLT_UPPER 3600
-#define DA9052_BUCK_PERI_VOLT_LOWER 1800
+#define DA9052_BUCK_PERI_VOLT_UPPER 2525
+#define DA9052_BUCK_PERI_VOLT_LOWER 950
#define DA9052_BUCK_PERI_STEP 25
#define DA9052_LDO1_VOLT_UPPER 1800
#define DA9052_LDO1_VOLT_LOWER 600
diff --git a/include/linux/mfd/da9052/reg.h b/include/linux/mfd/da9052/reg.h
index 65522303e896..54ee964a31fb 100644
--- a/include/linux/mfd/da9052/reg.h
+++ b/include/linux/mfd/da9052/reg.h
@@ -533,13 +533,12 @@
/* BUCKPERI REGISTER */
#define DA9052_BUCKPERI_BPERICONF (1<<7)
#define DA9052_BUCKPERI_BPERIEN (1<<6)
-#define DA9052_BUCKPERI_BPERIHS (1<<5)
-#define DA9052_BUCKPERI_VBPERI (31<<0)
+#define DA9052_BUCKPERI_VBPERI (63<<0)
/* LDO1 REGISTER */
#define DA9052_LDO1_LDO1CONF (1<<7)
#define DA9052_LDO1_LDO1EN (1<<6)
-#define DA9052_LDO1_VLDO1 (31<<0)
+#define DA9052_LDO1_VLDO1 (63<<0)
/* LDO2 REGISTER */
#define DA9052_LDO2_LDO2CONF (1<<7)