diff options
author | Aswath Govindraju <a-govindraju@ti.com> | 2021-06-04 22:00:34 +0530 |
---|---|---|
committer | Lokesh Vutla <lokeshvutla@ti.com> | 2021-06-09 22:23:44 +0530 |
commit | 397d7b0faea0ddd36f45c63ee728e6e18b3f8673 (patch) | |
tree | f268f0ed4cb775eb0255bf95d3d0ac1292ce1929 /board | |
parent | 669a03e0ff8bc4c69c848769806125c7ebb5782e (diff) | |
download | u-boot-397d7b0faea0ddd36f45c63ee728e6e18b3f8673.tar.gz |
board: ti: am64x: Set the core voltage of USB PHY to 0.85V
Set the core voltage of USB PHY in AM64x to 0.85V in spl_board_init().
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210604163043.12811-5-a-govindraju@ti.com
Diffstat (limited to 'board')
-rw-r--r-- | board/ti/am64x/evm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/ti/am64x/evm.c b/board/ti/am64x/evm.c index 35cd9e027c..cdbb9a87bc 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 |