summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorken kuo <ken.kuoky@gmail.com>2013-06-08 11:14:12 +0800
committerMacpaul Lin <macpaul@gmail.com>2013-07-24 11:50:28 +0800
commite3c58b029255f5acf5471e5992efd7f84b77ebad (patch)
tree2c04c2442293f35d47dc39d4af2722be846b60b6 /include
parent61ccf082e7ca2e6bb20b4004fd629883a3f8a2c1 (diff)
downloadu-boot-imx-e3c58b029255f5acf5471e5992efd7f84b77ebad.zip
u-boot-imx-e3c58b029255f5acf5471e5992efd7f84b77ebad.tar.gz
u-boot-imx-e3c58b029255f5acf5471e5992efd7f84b77ebad.tar.bz2
nds32: Enable the function of passing parameters to Linux
Add a header file, setup.h, which copy from Linux source code, this file contain structures are used to pass initialisation parameters to Linux. Enable this function on adp-ag101/adp-ag101p target Signed-off-by: Kuan-Yu Kuo <ken.kuoky@gmail.com> Cc: Macpaul Lin <macpaul@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h1
-rw-r--r--include/configs/adp-ag101.h7
-rw-r--r--include/configs/adp-ag101p.h7
3 files changed, 15 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index e5220cf..e254c52 100644
--- a/include/common.h
+++ b/include/common.h
@@ -421,6 +421,7 @@ static inline int setenv_addr(const char *varname, const void *addr)
#endif
#ifdef CONFIG_NDS32
# include <asm/mach-types.h>
+# include <asm/setup.h>
# include <asm/u-boot-nds32.h>
#endif /* CONFIG_NDS32 */
#ifdef CONFIG_MIPS
diff --git a/include/configs/adp-ag101.h b/include/configs/adp-ag101.h
index 85dbad2..1c380ea 100644
--- a/include/configs/adp-ag101.h
+++ b/include/configs/adp-ag101.h
@@ -35,6 +35,13 @@
#define CONFIG_SKIP_LOWLEVEL_INIT
+/*
+ * Definitions related to passing arguments to kernel.
+ */
+#define CONFIG_CMDLINE_TAG /* send commandline to Kernel */
+#define CONFIG_SETUP_MEMORY_TAGS /* send memory definition to kernel */
+#define CONFIG_INITRD_TAG /* send initrd params */
+
#ifndef CONFIG_SKIP_LOWLEVEL_INIT
#define CONFIG_MEM_REMAP
#endif
diff --git a/include/configs/adp-ag101p.h b/include/configs/adp-ag101p.h
index 6085208..8748134 100644
--- a/include/configs/adp-ag101p.h
+++ b/include/configs/adp-ag101p.h
@@ -35,6 +35,13 @@
#define CONFIG_SKIP_LOWLEVEL_INIT
+/*
+ * Definitions related to passing arguments to kernel.
+ */
+#define CONFIG_CMDLINE_TAG /* send commandline to Kernel */
+#define CONFIG_SETUP_MEMORY_TAGS /* send memory definition to kernel */
+#define CONFIG_INITRD_TAG /* send initrd params */
+
#ifndef CONFIG_SKIP_LOWLEVEL_INIT
#define CONFIG_MEM_REMAP
#endif