Commit 5e728b9d authored by Yuri Tikhonov's avatar Yuri Tikhonov
Browse files

RT73025. stm32f2_eth: minor cleanups


Signed-off-by: default avatarYuri Tikhonov <yur@emcraft.com>
parent d1693b09
......@@ -26,7 +26,7 @@
#include <config.h>
/*
* Define this to 'printf()' any 'debug()' below
* Define DEBUG to enable debug() messages in this module
*/
#undef DEBUG
......@@ -417,6 +417,9 @@ int stm32f2_eth_init(bd_t *bd)
rv = eth_register(netdev);
out:
if (rv != 0 && mac)
free(mac);
return rv;
}
......
......@@ -142,11 +142,11 @@
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
/*
* Ethernet
* Ethernet configuration
*/
#define CONFIG_NET_MULTI
#define CONFIG_STM32F2_ETH
#define CONFIG_SYS_RX_ETH_BUFFER 4 /* 4 rx buffer */
#define CONFIG_SYS_RX_ETH_BUFFER 4
/*
* Console I/O buffer size
......@@ -194,7 +194,6 @@
#undef CONFIG_CMD_IMLS
#undef CONFIG_CMD_LOADS
#undef CONFIG_CMD_MISC
#define CONFIG_CMD_PING
#define CONFIG_CMD_NET
#undef CONFIG_CMD_NFS
#undef CONFIG_CMD_SOURCE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment