From: Thomas Chou <thomas@wytron.com.tw>
Date: Thu, 5 Nov 2015 08:37:33 +0000 (+0800)
Subject: nios2: nios2-generic: do not allocate rx buf in net.c
X-Git-Tag: v2025.01-rc5-pxa1908~11279
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/login.html?a=commitdiff_plain;h=c3c44954ed34637f2bb1220825ff0910abb97f6e;p=u-boot.git

nios2: nios2-generic: do not allocate rx buf in net.c

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>
---

diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h
index 4569de8a96..856c836385 100644
--- a/include/configs/nios2-generic.h
+++ b/include/configs/nios2-generic.h
@@ -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