aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2019-10-24 15:00:52 +0530
committerTom Rini <trini@konsulko.com>2019-11-07 18:39:17 -0500
commit27380cb7e966f779f52d13f394d7aaeed9acbe44 (patch)
tree0d337882802336cf3919d81b16ba64ea58001c2b /arch/arm/mach-k3
parent065a452ae6a11dd9aa3cd0ba185f580c0c81ae2c (diff)
downloadu-boot-27380cb7e966f779f52d13f394d7aaeed9acbe44.zip
u-boot-27380cb7e966f779f52d13f394d7aaeed9acbe44.tar.gz
u-boot-27380cb7e966f779f52d13f394d7aaeed9acbe44.tar.bz2
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.c7
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 0b564f7..99edcd9 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)