summaryrefslogtreecommitdiff
path: root/board/altera/nios2-generic/text_base.S
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2010-04-21 08:40:59 +0800
committerScott McNutt <smcnutt@psyent.com>2010-04-24 18:21:23 -0400
commit8cbb0ddd7e696c6a4be1ae3ab3c95d3c8f6a7031 (patch)
tree038e10bb50a7e36124f800d968fbee534082e747 /board/altera/nios2-generic/text_base.S
parent441cac10d8a9438b144ab0ad46280780b58f638b (diff)
nios2: add nios2-generic board
This is a generic approach to port u-boot for nios2 boards. You may find the usage of this approach on the nioswiki, http://nioswiki.com/DasUBoot A fpga parameter file, which contains base address information and drivers declaration, is generated from Altera's hardware system description sopc file using tools. The example fpga parameter file is compatible with EP1C20, EP1S10 and EP1S40 boards. So these boards can be removed after this commit. Though epcs controller is removed to cut the dependency of altera_spi driver. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Diffstat (limited to 'board/altera/nios2-generic/text_base.S')
-rw-r--r--board/altera/nios2-generic/text_base.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/board/altera/nios2-generic/text_base.S b/board/altera/nios2-generic/text_base.S
new file mode 100644
index 00000000000..f236db13e51
--- /dev/null
+++ b/board/altera/nios2-generic/text_base.S
@@ -0,0 +1,21 @@
+/*
+ * text_base
+ *
+ * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include <config.h>
+
+#ifdef CONFIG_SYS_MONITOR_BASE
+ .text
+ /* text base used in link script u-boot.lds */
+ .global text_base
+ .equ text_base,CONFIG_SYS_MONITOR_BASE
+ /* dummy func to let linker include this file */
+ .global text_base_hook
+text_base_hook:
+ ret
+#endif