public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] nios2: nios2-generic: do not allocate rx buf in net.c
@ 2015-11-05  8:42 Thomas Chou
  2015-11-05 16:16 ` Marek Vasut
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Chou @ 2015-11-05  8:42 UTC (permalink / raw)
  To: u-boot

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h
index 4569de8..856c836 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
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-06  4:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-05  8:42 [U-Boot] [PATCH] nios2: nios2-generic: do not allocate rx buf in net.c Thomas Chou
2015-11-05 16:16 ` Marek Vasut
2015-11-05 23:47   ` Thomas Chou
2015-11-06  1:40     ` Marek Vasut
2015-11-06  4:52       ` Thomas Chou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox