diff options
author | Keerthy <j-keerthy@ti.com> | 2019-10-24 12:30:52 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-11-08 02:39:17 +0300 |
commit | 27380cb7e966f779f52d13f394d7aaeed9acbe44 (patch) | |
tree | 0d337882802336cf3919d81b16ba64ea58001c2b /arch/arm/mach-k3 | |
parent | 065a452ae6a11dd9aa3cd0ba185f580c0c81ae2c (diff) | |
download | u-boot-27380cb7e966f779f52d13f394d7aaeed9acbe44.tar.xz |
arm: mach-k3: am6_init: Initialize AVS class 0
Initialize AVS class 0 so that mpu voltage rail is
programmed to the AVS class 0 compensated value.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Diffstat (limited to 'arch/arm/mach-k3')
-rw-r--r-- | arch/arm/mach-k3/am6_init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c index 0b564f7bd1..99edcd9a24 100644 --- a/arch/arm/mach-k3/am6_init.c +++ b/arch/arm/mach-k3/am6_init.c @@ -116,6 +116,13 @@ void board_init_f(ulong dummy) /* Perform EEPROM-based board detection */ do_board_detect(); +#if defined(CONFIG_CPU_V7R) && defined(CONFIG_K3_AVS0) + ret = uclass_get_device_by_driver(UCLASS_MISC, DM_GET_DRIVER(k3_avs), + &dev); + if (ret) + printf("AVS init failed: %d\n", ret); +#endif + #ifdef CONFIG_K3_AM654_DDRSS ret = uclass_get_device(UCLASS_RAM, 0, &dev); if (ret) |