summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2015-07-29 18:15:55 +0200
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-03-09 01:40:02 +0100
commit5dcbe64c73da5104a76c1c8fcaa992680d29be1e (patch)
tree14719f371d9ed6af2226cb33de4ac9803625cf5d /include
parent938517fa230ce2737327c157f3585a830e256e33 (diff)
ARM: sunxi: pangolin: Customize CLI prompt
Including "u-boot" in the prompt makes it clear to the user that he is in the u-boot shell and not in Linux.
Diffstat (limited to 'include')
-rw-r--r--include/configs/sunxi-common.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index cad65b8a63..40f07fb456 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -39,6 +39,23 @@
#define CONFIG_SYS_THUMB_BUILD /* Thumbs mode to save space in SPL */
#endif
+#include <asm/arch/cpu.h> /* get chip and board defs */
+
+#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_DM_SERIAL)
+# define CONFIG_DW_SERIAL
+#endif
+
+/*
+ * Display CPU information
+ */
+#define CONFIG_DISPLAY_CPUINFO
+
+#ifdef CONFIG_SUNXI_PANGOLIN
+# define CONFIG_SYS_PROMPT "u-boot# "
+#else
+# define CONFIG_SYS_PROMPT "sunxi# "
+#endif
+
/* Serial & console */
#define CONFIG_SYS_NS16550_SERIAL
/* ns16550 reg in the low bits of cpu reg */