All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen-Yu Tsai <wens@csie.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 09/10] ARM: sunxi: Add basic A31 support
Date: Wed, 24 Sep 2014 16:01:12 +0800	[thread overview]
Message-ID: <1411545673-5591-10-git-send-email-wens@csie.org> (raw)
In-Reply-To: <1411545673-5591-1-git-send-email-wens@csie.org>

From: Maxime Ripard <maxime.ripard@free-electrons.com>

Add a new sun6i machine that supports UART and MMC.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
[wens at csie.org: use SPDX labels, adapt to Kconfig system, drop ifdef
		around mmc and smp code, drop MACH_TYPE]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 arch/arm/Kconfig                    |  3 +++
 arch/arm/cpu/armv7/sunxi/cpu_info.c |  2 ++
 board/sunxi/Kconfig                 | 10 +++++++++-
 include/configs/sun6i.h             | 26 ++++++++++++++++++++++++++
 4 files changed, 40 insertions(+), 1 deletion(-)
 create mode 100644 include/configs/sun6i.h

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 22f0f09..bfbe6f1 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -439,6 +439,9 @@ config TARGET_SUN4I
 config TARGET_SUN5I
 	bool "Support sun5i"
 
+config TARGET_SUN6I
+	bool "Support sun6i"
+
 config TARGET_SUN7I
 	bool "Support sun7i"
 
diff --git a/arch/arm/cpu/armv7/sunxi/cpu_info.c b/arch/arm/cpu/armv7/sunxi/cpu_info.c
index 5cf35ac..40c4e13 100644
--- a/arch/arm/cpu/armv7/sunxi/cpu_info.c
+++ b/arch/arm/cpu/armv7/sunxi/cpu_info.c
@@ -23,6 +23,8 @@ int print_cpuinfo(void)
 	case 7: puts("CPU:   Allwinner A10s (SUN5I)\n"); break;
 	default: puts("CPU:   Allwinner A1X (SUN5I)\n");
 	}
+#elif defined CONFIG_SUN6I
+	puts("CPU:   Allwinner A31 (SUN6I)\n");
 #elif defined CONFIG_SUN7I
 	puts("CPU:   Allwinner A20 (SUN7I)\n");
 #else
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index 7bdf958..c78750e 100644
--- a/board/sunxi/Kconfig
+++ b/board/sunxi/Kconfig
@@ -14,6 +14,14 @@ config SYS_CONFIG_NAME
 
 endif
 
+if TARGET_SUN6I
+
+config SYS_CONFIG_NAME
+	string
+	default "sun6i"
+
+endif
+
 if TARGET_SUN7I
 
 config SYS_CONFIG_NAME
@@ -22,7 +30,7 @@ config SYS_CONFIG_NAME
 
 endif
 
-if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN7I
+if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN6I || TARGET_SUN7I
 
 config SYS_CPU
 	string
diff --git a/include/configs/sun6i.h b/include/configs/sun6i.h
new file mode 100644
index 0000000..93a1d96
--- /dev/null
+++ b/include/configs/sun6i.h
@@ -0,0 +1,26 @@
+/*
+ * (C) Copyright 2012-2013 Henrik Nordstrom <henrik@henriknordstrom.net>
+ * (C) Copyright 2013 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
+ * (C) Copyright 2013 Maxime Ripard <maxime.ripard@free-electrons.com>
+ *
+ * Configuration settings for the Allwinner A31 (sun6i) CPU
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+/*
+ * A31 specific configuration
+ */
+#define CONFIG_SUN6I		/* sun6i SoC generation */
+
+#define CONFIG_SYS_PROMPT		"sun6i# "
+
+/*
+ * Include common sunxi configuration where most the settings are
+ */
+#include <configs/sunxi-common.h>
+
+#endif /* __CONFIG_H */
-- 
2.1.0

  parent reply	other threads:[~2014-09-24  8:01 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-24  8:01 [U-Boot] [PATCH v2 00/10] ARM: sunxi: Add basic support for Allwinner A31 (sun6i) Chen-Yu Tsai
2014-09-24  8:01 ` [U-Boot] [PATCH v2 01/10] ARM: sunxi: Use macro values for setting UART GPIO pull-ups Chen-Yu Tsai
2014-09-25 18:45   ` Ian Campbell
2014-09-24  8:01 ` [U-Boot] [PATCH v2 02/10] ARM: sunxi: Fix build break when CONFIG_USB_EHCI is not defined Chen-Yu Tsai
2014-09-24  8:01 ` [U-Boot] [PATCH v2 03/10] ARM: sun6i: Add base address for the new controllers in A31 Chen-Yu Tsai
2014-09-24  8:01 ` [U-Boot] [PATCH v2 04/10] ARM: sun6i: Add support for the power reset control module found on the A31 Chen-Yu Tsai
2014-09-25 18:47   ` Ian Campbell
2014-09-24  8:01 ` [U-Boot] [PATCH v2 05/10] ARM: sun6i: Add clock support Chen-Yu Tsai
2014-09-25 18:51   ` Ian Campbell
2014-09-24  8:01 ` [U-Boot] [PATCH v2 06/10] ARM: sunxi-mmc: Add mmc support for sun6i / A31 Chen-Yu Tsai
2014-09-25 18:52   ` Ian Campbell
2014-10-31 15:03     ` Pantelis Antoniou
2014-09-24  8:01 ` [U-Boot] [PATCH v2 07/10] ARM: sun6i: Define UART0 pins for A31 Chen-Yu Tsai
2014-09-25 18:54   ` Ian Campbell
2014-09-24  8:01 ` [U-Boot] [PATCH v2 08/10] ARM: sun6i: Setup the A31 UART0 muxing Chen-Yu Tsai
2014-09-25 18:54   ` Ian Campbell
2014-09-24  8:01 ` Chen-Yu Tsai [this message]
2014-09-25 18:56   ` [U-Boot] [PATCH v2 09/10] ARM: sunxi: Add basic A31 support Ian Campbell
2014-09-24  8:01 ` [U-Boot] [PATCH v2 10/10] ARM: sun6i: Add Colombus board defconfig Chen-Yu Tsai
2014-09-25 19:09   ` Ian Campbell
2014-09-28 15:33     ` Ian Campbell
2014-09-28 15:37       ` Chen-Yu Tsai
2014-09-28 15:43         ` Ian Campbell
2014-09-28 16:39           ` Maxime Ripard
2014-09-28 15:40       ` Hans de Goede
2014-09-28 16:20         ` [U-Boot] [linux-sunxi] " Ian Campbell
2014-09-28 17:03           ` Iain Paton
2014-09-28 18:10           ` Hans de Goede
2014-09-28 21:36             ` Ian Campbell
2014-09-29 18:08               ` Hans de Goede
2014-09-30  7:06                 ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1411545673-5591-10-git-send-email-wens@csie.org \
    --to=wens@csie.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.