Commit 397d7b0f authored by Aswath Govindraju's avatar Aswath Govindraju Committed by Lokesh Vutla
Browse files

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: default avatarAswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Lokesh Vutla's avatarLokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210604163043.12811-5-a-govindraju@ti.com
parent 669a03e0
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment