From: Thomas Lange Date: Fri, 24 Apr 2009 14:22:16 +0000 (+0200) Subject: MIPS: Implement ethernet halt for au1x00 X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=87423d740b91329b8d1d0b73cafd6930993b558a;p=u-boot.git MIPS: Implement ethernet halt for au1x00 Implement ethernet halt() by putting MAC0 in reset. If we do not do this, we will get memory corruption when ethernet frames are received during early OS boot. Signed-off-by: Thomas Lange Signed-off-by: Shinya Kuribayashi --- diff --git a/cpu/mips/au1x00_eth.c b/cpu/mips/au1x00_eth.c index 6272a3aac1..5074997a29 100644 --- a/cpu/mips/au1x00_eth.c +++ b/cpu/mips/au1x00_eth.c @@ -276,6 +276,10 @@ static int au1x00_init(struct eth_device* dev, bd_t * bd){ } static void au1x00_halt(struct eth_device* dev){ + volatile u32 *macen = (volatile u32*)MAC0_ENABLE; + + /* Put MAC0 in reset */ + *macen = 0; } int au1x00_enet_initialize(bd_t *bis){