cm-t35: fix Ethernet reset timing
PATCH 1/1 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 <[email protected]>
--- board/cm_t35/cm_t35.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-)
board/cm_t35/cm_t35.c +6 -5
@@ -362,16 +362,17 @@ static void reset_net_chip(void) {/* Set GPIO1 of TPS65930 as output */ twl4030_i2c_write_u8 (TWL4030_CHIP_GPIO ,0x02 , -TWL4030_BASEADD_GPIO +0x03 ); +TWL4030_BASEADD_GPIO +0x03 );/* Send a pulse on the GPIO pin */ twl4030_i2c_write_u8 (TWL4030_CHIP_GPIO ,0x02 , -TWL4030_BASEADD_GPIO +0x0C ); +TWL4030_BASEADD_GPIO +0x0C );udelay (1 );twl4030_i2c_write_u8 (TWL4030_CHIP_GPIO ,0x02 , -TWL4030_BASEADD_GPIO +0x09 ); -udelay (1 ); +TWL4030_BASEADD_GPIO +0x09 ); +mdelay (40 );twl4030_i2c_write_u8 (TWL4030_CHIP_GPIO ,0x02 , -TWL4030_BASEADD_GPIO +0x0C ); +TWL4030_BASEADD_GPIO +0x0C ); +mdelay (1 ); }#else static inline void reset_net_chip (void ) {}
Signature · 1 line
1.7.3.4
PATCH 1/1 cm-t35: fix Ethernet reset timing
Quoted 8 lines · Igor Grinberg
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 ini2c_write)Fix the Ethernet support by introducing right timings.
Signed-off-by Igor Grinberg <[email protected]>
Queued up for u-boot-ti/master (which I intend to PR Friday).
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120403/95dc3246/attachment.pgp>