提交 87423d74 编写于 作者: T Thomas Lange 提交者: Shinya Kuribayashi

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: NThomas Lange <thomas@corelatus.se>
Signed-off-by: NShinya Kuribayashi <skuribay@pobox.com>
上级 a2e0ffcf
......@@ -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){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册