From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shinya Kuribayashi Date: Sun, 03 May 2009 10:20:53 +0900 Subject: [U-Boot] [PATCH] MIPS: Implement ethernet halt for au1x00 In-Reply-To: <49F1CB18.9070608@corelatus.se> References: <49F1CB18.9070608@corelatus.se> Message-ID: <49FCF175.9050501@pobox.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Thomas Lange wrote: > 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 > --- > cpu/mips/au1x00_eth.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/cpu/mips/au1x00_eth.c b/cpu/mips/au1x00_eth.c > index 6272a3a..5074997 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){ Acked-by: Shinya Kuribayashi Wolfgang-san, could you please pick up this patch directly? Thanks, Shinya