mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
arch: arm: mach-k3: j784s4_init: Probe AVS driver
Probe the AVS driver to set the AVS voltage. Signed-off-by: Neha Malcom Francis <n-francis@ti.com> Reviewed-by: Manorit Chawdhry <m-chawdhry@ti.com>
This commit is contained in:
committed by
Tom Rini
parent
d43d612469
commit
6f6192f626
@@ -233,9 +233,19 @@ void k3_mem_init(void)
|
||||
|
||||
void board_init_f(ulong dummy)
|
||||
{
|
||||
struct udevice *dev;
|
||||
int ret;
|
||||
|
||||
k3_spl_init();
|
||||
k3_mem_init();
|
||||
|
||||
if (IS_ENABLED(CONFIG_CPU_V7R) && IS_ENABLED(CONFIG_K3_AVS0)) {
|
||||
ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(k3_avs),
|
||||
&dev);
|
||||
if (ret)
|
||||
printf("AVS init failed: %d\n", ret);
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_CPU_V7R))
|
||||
setup_navss_nb();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user