diff options
author | Lubomir Popov <lpopov@mm-sol.com> | 2013-11-20 15:32:17 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-12-04 08:11:28 -0500 |
commit | 87b94a43d69ec0760b94f2753b7cafc6cb14b034 (patch) | |
tree | 9471b4628d5b8c0e993c3e3c474f3188a0ff92a4 /arch/arm/cpu/armv7/omap4/hw_data.c | |
parent | 7aecdb07a553f07277d28594d60af3c3220bb262 (diff) | |
download | u-boot-imx-87b94a43d69ec0760b94f2753b7cafc6cb14b034.zip u-boot-imx-87b94a43d69ec0760b94f2753b7cafc6cb14b034.tar.gz u-boot-imx-87b94a43d69ec0760b94f2753b7cafc6cb14b034.tar.bz2 |
ARM: OMAP4: Fix bug in omap4470_volts struct
The struct incorrectly referenced SMPS1 for all three power
domains. Fixed this by using SMPS2 and SMPS5 as appropriate.
Add some comments and choose voltage values that correspond
to voltage selection codes.
Signed-off-by: Lubomir Popov <l-popov@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/omap4/hw_data.c')
-rw-r--r-- | arch/arm/cpu/armv7/omap4/hw_data.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/cpu/armv7/omap4/hw_data.c b/arch/arm/cpu/armv7/omap4/hw_data.c index 6a225c8..1b2f439 100644 --- a/arch/arm/cpu/armv7/omap4/hw_data.c +++ b/arch/arm/cpu/armv7/omap4/hw_data.c @@ -288,17 +288,21 @@ struct vcores_data omap4460_volts = { .mm.pmic = &twl6030, }; +/* + * Take closest integer part of the mV value corresponding to a TWL6032 SMPS + * voltage selection code. Aligned with OMAP4470 ES1.0 OCA V.0.7. + */ struct vcores_data omap4470_volts = { - .mpu.value = 1200, + .mpu.value = 1202, .mpu.addr = SMPS_REG_ADDR_SMPS1, .mpu.pmic = &twl6030, .core.value = 1126, - .core.addr = SMPS_REG_ADDR_SMPS1, + .core.addr = SMPS_REG_ADDR_SMPS2, .core.pmic = &twl6030, - .mm.value = 1137, - .mm.addr = SMPS_REG_ADDR_SMPS1, + .mm.value = 1139, + .mm.addr = SMPS_REG_ADDR_SMPS5, .mm.pmic = &twl6030, }; |