diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2016-11-23 12:54:39 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-12-04 13:54:48 -0500 |
commit | beb71279d865deb77b2faa86d7d1d180df8339a0 (patch) | |
tree | 7c9c9969c2bfd9cfed3de41ad38cfd0836a14e10 /arch/arm/mach-omap2/omap4 | |
parent | f2388331026dec9526915ae3ea92ba3538830548 (diff) | |
download | u-boot-beb71279d865deb77b2faa86d7d1d180df8339a0.zip u-boot-beb71279d865deb77b2faa86d7d1d180df8339a0.tar.gz u-boot-beb71279d865deb77b2faa86d7d1d180df8339a0.tar.bz2 |
ARM: OMAP4+: Add support for dynamically selecting OPPs
It can be expected that different paper spins of a SoC can have
different definitions for OPP and can have their own constraints
on the boot up OPP for each voltage rail. In order to have this
flexibility, add support for dynamically selecting the OPP voltage
based on the board to handle any such exceptions.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap4')
-rw-r--r-- | arch/arm/mach-omap2/omap4/hw_data.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mach-omap2/omap4/hw_data.c b/arch/arm/mach-omap2/omap4/hw_data.c index 02c06c1..6a4b8b9 100644 --- a/arch/arm/mach-omap2/omap4/hw_data.c +++ b/arch/arm/mach-omap2/omap4/hw_data.c @@ -261,43 +261,43 @@ struct pmic_data tps62361 = { }; struct vcores_data omap4430_volts_es1 = { - .mpu.value = 1325, + .mpu.value[OPP_NOM] = 1325, .mpu.addr = SMPS_REG_ADDR_VCORE1, .mpu.pmic = &twl6030_4430es1, - .core.value = 1200, + .core.value[OPP_NOM] = 1200, .core.addr = SMPS_REG_ADDR_VCORE3, .core.pmic = &twl6030_4430es1, - .mm.value = 1200, + .mm.value[OPP_NOM] = 1200, .mm.addr = SMPS_REG_ADDR_VCORE2, .mm.pmic = &twl6030_4430es1, }; struct vcores_data omap4430_volts = { - .mpu.value = 1325, + .mpu.value[OPP_NOM] = 1325, .mpu.addr = SMPS_REG_ADDR_VCORE1, .mpu.pmic = &twl6030, - .core.value = 1200, + .core.value[OPP_NOM] = 1200, .core.addr = SMPS_REG_ADDR_VCORE3, .core.pmic = &twl6030, - .mm.value = 1200, + .mm.value[OPP_NOM] = 1200, .mm.addr = SMPS_REG_ADDR_VCORE2, .mm.pmic = &twl6030, }; struct vcores_data omap4460_volts = { - .mpu.value = 1203, + .mpu.value[OPP_NOM] = 1203, .mpu.addr = TPS62361_REG_ADDR_SET1, .mpu.pmic = &tps62361, - .core.value = 1200, + .core.value[OPP_NOM] = 1200, .core.addr = SMPS_REG_ADDR_VCORE1, .core.pmic = &twl6030, - .mm.value = 1200, + .mm.value[OPP_NOM] = 1200, .mm.addr = SMPS_REG_ADDR_VCORE2, .mm.pmic = &twl6030, }; @@ -307,15 +307,15 @@ struct vcores_data omap4460_volts = { * voltage selection code. Aligned with OMAP4470 ES1.0 OCA V.0.7. */ struct vcores_data omap4470_volts = { - .mpu.value = 1202, + .mpu.value[OPP_NOM] = 1202, .mpu.addr = SMPS_REG_ADDR_SMPS1, .mpu.pmic = &twl6030, - .core.value = 1126, + .core.value[OPP_NOM] = 1126, .core.addr = SMPS_REG_ADDR_SMPS2, .core.pmic = &twl6030, - .mm.value = 1139, + .mm.value[OPP_NOM] = 1139, .mm.addr = SMPS_REG_ADDR_SMPS5, .mm.pmic = &twl6030, }; |