]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: DRA7: Redefine voltage and efuse macros per OPP using Kconfig
authorSuman Anna <s-anna@ti.com>
Wed, 23 Nov 2016 07:24:40 +0000 (12:54 +0530)
committerTom Rini <trini@konsulko.com>
Sun, 4 Dec 2016 18:54:48 +0000 (13:54 -0500)
commitdc9334f0063469d38995e501d123fdbaef3039d0
tree2c5ff32c2feba1b0fd5156ce8c266b02054f0b36
parent98117542d505370d8553b53f3963115d1e90974d
ARM: DRA7: Redefine voltage and efuse macros per OPP using Kconfig

Redefine the macros used to define the voltage values and the
efuse register offsets based on OPP for all the voltage domains.
This is done using Kconfig macros that can be set in a defconfig
or selected during a config step. This allows a voltage domain
to be configured/set to a corresponding voltage value depending
on the OPP selection choice.

The Kconfig choices have been added for MPU, DSPEVE, IVA and GPU
voltage domains, with the MPU domain restricted to OPP_NOM. The
OPP_OD and OPP_HIGH options will be added when the support for
configuring the MPU clock frequency is added. The clock
configuration for other voltage domains is out of scope in
u-boot code.

The CORE voltage domain does not have separate voltage values
and efuse register offset at different OPPs, while the MPU
voltage domain only has different efuse register offsets for
different OPPs, but uses the same voltage value. Any different
choices of OPPs for voltage domains on common ganged-rails
is automatically taken care to select the corresponding
highest OPP voltage value.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/include/asm/arch-omap5/clock.h
arch/arm/mach-omap2/omap5/Kconfig