cm-t35: fix Ethernet reset timing

The reset_net_chip() function has wrong timings for the reset pulse.

This appeared to work until:
0607e2b (ARMV7: OMAP: Write more than 1 byte at a time in i2c_write)

Fix the Ethernet support by introducing right timings.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
This commit is contained in:
Igor Grinberg 2012-04-02 20:12:58 +00:00 committed by Albert ARIBAUD
parent 385488dc1b
commit 07277e740b

View File

@ -363,9 +363,10 @@ static void reset_net_chip(void)
udelay(1); udelay(1);
twl4030_i2c_write_u8(TWL4030_CHIP_GPIO, 0x02, twl4030_i2c_write_u8(TWL4030_CHIP_GPIO, 0x02,
TWL4030_BASEADD_GPIO + 0x09); TWL4030_BASEADD_GPIO + 0x09);
udelay(1); mdelay(40);
twl4030_i2c_write_u8(TWL4030_CHIP_GPIO, 0x02, twl4030_i2c_write_u8(TWL4030_CHIP_GPIO, 0x02,
TWL4030_BASEADD_GPIO + 0x0C); TWL4030_BASEADD_GPIO + 0x0C);
mdelay(1);
} }
#else #else
static inline void reset_net_chip(void) {} static inline void reset_net_chip(void) {}