[PATCH 04/10] board: ti: am64x: Set the core voltage of USB PHY to 0.85V
Aswath Govindraju
a-govindraju at ti.com
Tue Jun 1 17:13:44 CEST 2021
Set the core voltage of USB PHY in AM64x to 0.85V in spl_board_init().
Signed-off-by: Aswath Govindraju <a-govindraju at ti.com>
---
board/ti/am64x/evm.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/board/ti/am64x/evm.c b/board/ti/am64x/evm.c
index 35cd9e027c04..cdbb9a87bc44 100644
--- a/board/ti/am64x/evm.c
+++ b/board/ti/am64x/evm.c
@@ -152,3 +152,17 @@ int board_late_init(void)
return 0;
}
#endif
+
+#define CTRLMMR_USB0_PHY_CTRL 0x43004008
+#define CORE_VOLTAGE 0x80000000
+
+#ifdef CONFIG_SPL_BOARD_INIT
+void spl_board_init(void)
+{
+ u32 val;
+ /* Set USB PHY core voltage to 0.85V */
+ val = readl(CTRLMMR_USB0_PHY_CTRL);
+ val &= ~(CORE_VOLTAGE);
+ writel(val, CTRLMMR_USB0_PHY_CTRL);
+}
+#endif
--
2.17.1
More information about the U-Boot
mailing list