diff options
author | Steve Kipisz <s-kipisz2@ti.com> | 2015-02-11 23:54:28 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-02-16 17:41:40 (GMT) |
commit | bba379d498b4ed408e79f7aec6dc23a3572c37e7 (patch) | |
tree | 764410f3a6a151b10f8fc7d076bc9bd3c325b54c /arch/arm/cpu/armv7/am33xx | |
parent | 1860d101964d6ea77e5411e62e3b42a64dc94865 (diff) | |
download | u-boot-bba379d498b4ed408e79f7aec6dc23a3572c37e7.tar.xz |
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: Steve Kipisz <s-kipisz2@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/am33xx')
-rw-r--r-- | arch/arm/cpu/armv7/am33xx/clock_am43xx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/clock_am43xx.c b/arch/arm/cpu/armv7/am33xx/clock_am43xx.c index 31188c8..529a119 100644 --- a/arch/arm/cpu/armv7/am33xx/clock_am43xx.c +++ b/arch/arm/cpu/armv7/am33xx/clock_am43xx.c @@ -118,4 +118,7 @@ void enable_basic_clocks(void) /* Select the Master osc clk as Timer2 clock source */ writel(0x1, &cmdpll->clktimer2clk); + + /* For OPP100 the mac clock should be /5. */ + writel(0x4, &cmdpll->clkselmacclk); } |