From: Keerthy Date: Mon, 14 Oct 2019 14:10:54 +0530 Subject: [U-Boot] [PATCH 02/10] arm: mach-k3: am6_init: Initialize AVS class 0 In-Reply-To: <20191014084102.18863-1-j-keerthy@ti.com> References: <20191014084102.18863-1-j-keerthy@ti.com> Message-ID: <20191014084102.18863-3-j-keerthy@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Initialize AVS class 0 so that mpu voltage rail is programmed to the AVS class 0 compensated value. Signed-off-by: Keerthy --- arch/arm/mach-k3/am6_init.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c index 0b564f7bd1..86395a72b9 100644 --- a/arch/arm/mach-k3/am6_init.c +++ b/arch/arm/mach-k3/am6_init.c @@ -116,6 +116,12 @@ 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(UCLASS_AVS, 0, &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