9
0
Fork 0
barebox/drivers
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
..
amba treewide: Use dev_add_param_int_ro where possible 2013-04-11 11:48:35 +02:00
ata ata: Make 'already initialized' a debug message 2013-06-21 07:40:47 +02:00
base base: Transform "platform_match" into "device_match" and make this function public 2013-07-15 10:08:10 +02:00
bus bus: Add imx-weim support 2013-07-16 08:48:09 +02:00
clk i.MX28: unbreak ethernet 2013-09-10 21:03:59 +02:00
clocksource clocksource: mvebu: add DT support 2013-07-05 08:27:10 +02:00
dma mtd: nand: mxs-nand: Add i.MX6 support 2013-07-23 16:25:14 +02:00
eeprom Introduce device_spi_driver() macro and use it for SPI drivers 2013-03-14 07:15:45 +01:00
gpio GPIO: add Marvell Orion/MVEBU SoC GPIO driver 2013-07-05 08:27:11 +02:00
i2c i2c-omap: fix am33xx and omap3 fclk_rate 2013-08-31 12:03:25 +02:00
input qt1070: drop non used buf 2013-05-08 07:16:40 +02:00
led led: gpio: Add trigger support 2013-07-10 14:10:50 +02:00
mci Merge branch 'for-next/omap' 2013-09-05 10:40:04 +02:00
mfd mfd: syscon: Replace dev_info with dev_dbg 2013-08-12 22:06:36 +02:00
misc driver: Attach info callback to device, not to driver 2013-05-30 12:18:27 +02:00
mtd nand_mxs: fix on i.MX28 2013-09-10 21:03:59 +02:00
net net/phy: support of mmd register read and write 2013-08-31 12:01:32 +02:00
of Merge branch 'for-next/boardinfo' 2013-09-05 10:39:22 +02:00
pinctrl Merge branch 'for-next-manual/oftree-linux-sync' 2013-07-02 07:08:46 +02:00
pwm pwm: Use dev_add_param_int for pwm parameters 2013-04-11 11:48:35 +02:00
serial serial_auart: fix compile error 2013-09-10 08:19:35 +02:00
spi mxs_spi: unbreak driver 2013-09-10 21:03:59 +02:00
usb Merge branch 'for-next-manual/oftree-linux-sync' 2013-07-02 07:08:46 +02:00
video video/stm: enable clock to get the display working 2013-09-10 21:03:59 +02:00
w1 w1: Fix compiler warning 2013-03-06 09:04:26 +01:00
watchdog ARM/MXS: add more ROM code related documentation 2013-04-09 08:44:06 +02:00
Kconfig bus: Add imx-weim support 2013-07-16 08:48:09 +02:00
Makefile bus: Add imx-weim support 2013-07-16 08:48:09 +02:00