Skip to content
Snippets Groups Projects
Commit bba379d4 authored by Steve Kipisz's avatar Steve Kipisz Committed by Tom Rini
Browse files

clock_am43xx:Set the MAC clock to /5 for OPP100


When EMAC is in the boot order, the boot ROM sets OPP50 and the
MAC clock is set to /2. SPL needs to change it to /5 for Ethernet
to generate the correct txclk. This patch sets it correctly.

Signed-off-by: default avatarSteve Kipisz <s-kipisz2@ti.com>
parent 1860d101
No related branches found
No related tags found
No related merge requests found
...@@ -118,4 +118,7 @@ void enable_basic_clocks(void) ...@@ -118,4 +118,7 @@ void enable_basic_clocks(void)
/* Select the Master osc clk as Timer2 clock source */ /* Select the Master osc clk as Timer2 clock source */
writel(0x1, &cmdpll->clktimer2clk); writel(0x1, &cmdpll->clktimer2clk);
/* For OPP100 the mac clock should be /5. */
writel(0x4, &cmdpll->clkselmacclk);
} }
...@@ -400,6 +400,8 @@ struct prm_device_inst { ...@@ -400,6 +400,8 @@ struct prm_device_inst {
struct cm_dpll { struct cm_dpll {
unsigned int resv1; unsigned int resv1;
unsigned int clktimer2clk; /* offset 0x04 */ unsigned int clktimer2clk; /* offset 0x04 */
unsigned int resv2[11];
unsigned int clkselmacclk; /* offset 0x34 */
}; };
#endif /* CONFIG_AM43XX */ #endif /* CONFIG_AM43XX */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment