summaryrefslogtreecommitdiff
path: root/include/configs/adp-ag101p.h
diff options
context:
space:
mode:
authorrick <rick@andestech.com>2017-04-17 06:41:58 (GMT)
committerAndes <uboot@andestech.com>2017-05-22 06:05:33 (GMT)
commit86132af799d51e8e94d87dc56a071f325f369e0c (patch)
treeeaa707979e38c41487e04cedf3f1685e15b72413 /include/configs/adp-ag101p.h
parenta375ff8e14bea0a5cbfff99d6456aa8d9a3320ab (diff)
downloadu-boot-86132af799d51e8e94d87dc56a071f325f369e0c.tar.xz
nds32: Support AG101P serial DM.
Support AG101P serial device tree flow. Signed-off-by: rick <rick@andestech.com>
Diffstat (limited to 'include/configs/adp-ag101p.h')
-rw-r--r--include/configs/adp-ag101p.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/configs/adp-ag101p.h b/include/configs/adp-ag101p.h
index b42fcfa..106b591 100644
--- a/include/configs/adp-ag101p.h
+++ b/include/configs/adp-ag101p.h
@@ -20,8 +20,6 @@
#define CONFIG_SKIP_LOWLEVEL_INIT
-#define CONFIG_SYS_GENERIC_GLOBAL_DATA
-
/*
* Definitions related to passing arguments to kernel.
*/
@@ -35,6 +33,10 @@
#ifdef CONFIG_SKIP_LOWLEVEL_INIT
#define CONFIG_SYS_TEXT_BASE 0x00500000
+#ifdef CONFIG_OF_CONTROL
+#undef CONFIG_OF_SEPARATE
+#define CONFIG_OF_EMBED
+#endif
#else
#ifdef CONFIG_MEM_REMAP
#define CONFIG_SYS_TEXT_BASE 0x80000000
@@ -87,7 +89,9 @@
#define CONFIG_CONS_INDEX 1
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_COM1 CONFIG_FTUART010_02_BASE
+#ifndef CONFIG_DM_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE -4
+#endif
#define CONFIG_SYS_NS16550_CLK ((18432000 * 20) / 25) /* AG101P */
/*