9
0
Fork 0
barebox/drivers/clk
Eric Bénard bf04eedf69 i.MX28: unbreak ethernet
since the switch to common clock, ethernet driver doesn't works and
and access to the network leads to :
eth0: Read MDIO failed...
unable to handle NULL pointer dereference at address 0x000000c7

The problem is that bit 31 (SLEEP) of register HW_CLKCTRL_ENET is kept
to its default value (1) which means : "put Ethernet block in sleep mode.
CLK_H_MAC0(1), CLK_H_MAC0(1)_S, and CLK_ENET0(1)_TX are gated off.
Ethernet can be wakeup remotely in sleep mode"
In that case the FEC don't get its clock.

This patch fix the problem by toggling this bit when FEC's clock is
enabled.

Tested on i.MX28EVK.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-09-10 21:03:59 +02:00
..
mvebu clk: mvebu: add OF clock providers for Marvell MVEBU SoCs 2013-08-16 08:45:33 +02:00
mxs i.MX28: unbreak ethernet 2013-09-10 21:03:59 +02:00
tegra tegra: add peripheral clocks 2013-07-02 08:36:09 +02:00
Kconfig Cleanup Kconfig files 2013-08-12 08:05:37 +02:00
Makefile clk: mvebu: add OF clock providers for Marvell MVEBU SoCs 2013-08-16 08:45:33 +02:00
clk-divider-table.c clk: Add clk table based divider support 2012-12-06 12:55:21 +01:00
clk-divider.c clk: divider: Add onebased divider support 2013-06-20 08:44:22 +02:00
clk-fixed-factor.c clk: initial common clk support 2012-10-04 15:19:55 +02:00
clk-fixed.c clk: Add is_enabled callback 2013-03-15 09:53:30 +01:00
clk-gate.c clk: allow to instanciate clk gate without registering it 2013-07-02 08:36:09 +02:00
clk-mux.c clk: allow to instanciate clk mux without registering it 2013-07-02 08:36:09 +02:00
clk.c clk: add clock lookup from devicetree 2013-07-02 08:36:09 +02:00
clkdev.c clk: add clock lookup from devicetree 2013-07-02 08:36:09 +02:00