summaryrefslogtreecommitdiff
path: root/board/altera/nios2-generic
diff options
context:
space:
mode:
authorJoachim Foerster <joachim.foerster@missinglinkelectronics.com>2011-10-17 05:24:44 +0000
committerWolfgang Denk <wd@denx.de>2011-10-26 21:27:37 +0200
commitb962ac794a26ff80269755c13c3e4fee65c3809e (patch)
treea4eee141d77981f255b5cf2c3a3fa5c8e85b34d9 /board/altera/nios2-generic
parent29095f1a5cfdbc2e40178f6fbf9267e0df11f6f5 (diff)
downloadu-boot-imx-b962ac794a26ff80269755c13c3e4fee65c3809e.zip
u-boot-imx-b962ac794a26ff80269755c13c3e4fee65c3809e.tar.gz
u-boot-imx-b962ac794a26ff80269755c13c3e4fee65c3809e.tar.bz2
altera_tse: Add support for dedicated descriptor memory
Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
Diffstat (limited to 'board/altera/nios2-generic')
-rw-r--r--board/altera/nios2-generic/nios2-generic.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/board/altera/nios2-generic/nios2-generic.c b/board/altera/nios2-generic/nios2-generic.c
index 220a4c4..49ef80d 100644
--- a/board/altera/nios2-generic/nios2-generic.c
+++ b/board/altera/nios2-generic/nios2-generic.c
@@ -74,7 +74,15 @@ int board_eth_init(bd_t *bis)
rc += altera_tse_initialize(0,
CONFIG_SYS_ALTERA_TSE_MAC_BASE,
CONFIG_SYS_ALTERA_TSE_SGDMA_RX_BASE,
- CONFIG_SYS_ALTERA_TSE_SGDMA_TX_BASE);
+ CONFIG_SYS_ALTERA_TSE_SGDMA_TX_BASE,
+#if defined(CONFIG_SYS_ALTERA_TSE_SGDMA_DESC_BASE) && \
+ (CONFIG_SYS_ALTERA_TSE_SGDMA_DESC_SIZE > 0)
+ CONFIG_SYS_ALTERA_TSE_SGDMA_DESC_BASE,
+ CONFIG_SYS_ALTERA_TSE_SGDMA_DESC_SIZE);
+#else
+ 0,
+ 0);
+#endif
#endif
#ifdef CONFIG_ETHOC
rc += ethoc_initialize(0, CONFIG_SYS_ETHOC_BASE);