[U-Boot] [PATCH v2 02/10] arm: mach-k3: am6_init: Initialize AVS class 0
Keerthy
j-keerthy at ti.com
Mon Oct 21 09:25:07 UTC 2019
Initialize AVS class 0 so that mpu voltage rail is
programmed to the AVS class 0 compensated value.
Signed-off-by: Keerthy <j-keerthy at ti.com>
---
Changes in v2:
* Now that AVS is misc device do not go by default ID 0
and rely on uclass_get_device_by_driver to get the right device.
arch/arm/mach-k3/am6_init.c | 7 +++++++
1 file changed, 7 insertions(+)
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)
--
2.17.1
More information about the U-Boot
mailing list