]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nios2: nios2-generic: do not allocate rx buf in net.c
authorThomas Chou <thomas@wytron.com.tw>
Thu, 5 Nov 2015 08:37:33 +0000 (16:37 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Thu, 12 Nov 2015 00:26:58 +0000 (08:26 +0800)
Do not allocate rx buf in net.c, because altera_tse allocates
its own rx buf in driver. This can save 6KB memory.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
include/configs/nios2-generic.h

index 4569de8a96c5b6df7025f475c9f16797cbf20719..856c83638514977e81d9cb6fe7e5cbd59b7fc9f3 100644 (file)
@@ -33,8 +33,9 @@
 #define CONFIG_SYS_MAX_FLASH_SECT      512
 
 /*
- * MII/PHY
+ * NET options
  */
+#define CONFIG_SYS_RX_ETH_BUFFER       0
 #define CONFIG_CMD_MII
 #define CONFIG_PHY_GIGE
 #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN