Linux-Amlogic Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: narmstrong@baylibre.com (Neil Armstrong)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH u-boot 01/19] ARM: meson: clean-up platform selection
Date: Fri,  9 Nov 2018 16:26:40 +0100	[thread overview]
Message-ID: <1541777218-472-2-git-send-email-narmstrong@baylibre.com> (raw)
In-Reply-To: <1541777218-472-1-git-send-email-narmstrong@baylibre.com>

From: Jerome Brunet <jbrunet@baylibre.com>

Even if multiple board are selected through Kconfig, u-boot will only
compile one. This makes sense since compiling these targets will export
global symbols, such as board_init()

The change rework amlogic Kconfig so only one board may be selected at
a time

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 arch/arm/mach-meson/Kconfig | 51 ++++++++++++++++++---------------------------
 1 file changed, 20 insertions(+), 31 deletions(-)

diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig
index cc94344..bc0f6a1 100644
--- a/arch/arm/mach-meson/Kconfig
+++ b/arch/arm/mach-meson/Kconfig
@@ -1,41 +1,32 @@
 if ARCH_MESON
 
-config MESON_GXBB
-	bool "Support Meson GXBaby"
+config MESON64_COMMON
+	bool
 	select ARM64
 	select CLK
 	select DM
 	select DM_SERIAL
 	imply CMD_DM
-	help
-	  The Amlogic Meson GXBaby (S905) is an ARM SoC with a
-	  quad-core Cortex-A53 CPU and a Mali-450 GPU.
+
+config MESON_GXBB
+	bool
+	select MESON64_COMMON
 
 config MESON_GXL
-	bool "Support Meson GXL"
-	select ARM64
-	select CLK
-	select DM
-	select DM_SERIAL
-	imply CMD_DM
-	help
-	  The Amlogic Meson GXL (S905X and S905D) is an ARM SoC with a
-	  quad-core Cortex-A53 CPU and a Mali-450 GPU.
+	bool
+	select MESON64_COMMON
 
 config MESON_GXM
-	bool "Support Meson GXM"
-	select ARM64
-	select CLK
-	select DM
-	select DM_SERIAL
-	help
-	  The Amlogic Meson GXM (S912) is an ARM SoC with an
-	  octo-core Cortex-A53 CPU and a Mali-T860 GPU.
+	bool
+	select MESON64_COMMON
 
-if MESON_GXBB
+choice
+	prompt "Platform select"
+	default TARGET_ODROID_C2
 
 config TARGET_ODROID_C2
 	bool "ODROID-C2"
+	select MESON_GXBB
 	help
 	  ODROID-C2 is a single board computer based on Meson GXBaby
 	  with 2 GiB of RAM, Gigabit Ethernet, HDMI, 4 USB, micro-SD
@@ -43,16 +34,15 @@ config TARGET_ODROID_C2
 
 config TARGET_NANOPI_K2
 	bool "NANOPI_K2"
+	select MESON_GXBB
 	help
 	  NANOPI_K2 is a single board computer based on Meson GXBaby
 	  with 2 GiB of RAM, Gigabit Ethernet,AP6212 Wifi, HDMI, 4 USB,
 	  micro-SD slot, eMMC, IR receiver and a 40-pin GPIO header.
-endif
-
-if MESON_GXL
 
 config TARGET_P212
 	bool "P212"
+	select MESON_GXL
 	help
 	  P212 is a reference dessign board based on Meson GXL S905X SoC
 	  with 2 GiB of RAM, Ethernet, HDMI, 2 USB, micro-SD slot,
@@ -60,6 +50,7 @@ config TARGET_P212
 
 config TARGET_LIBRETECH_CC
 	bool "LIBRETECH-CC"
+	select MESON_GXL
 	help
 	  LibreTech CC is a single board computer based on Meson GXL
 	  with 2 GiB of RAM, Ethernet, HDMI, 4 USB, micro-SD slot,
@@ -67,23 +58,21 @@ config TARGET_LIBRETECH_CC
 
 config TARGET_KHADAS_VIM
 	bool "KHADAS-VIM"
+	select MESON_GXL
 	help
 	  Khadas VIM is a single board computer based on Meson GXL
 	  with 2 GiB of RAM, Ethernet, HDMI, 4 USB, micro-SD slot,
 	  eMMC, IR receiver and a 40-pin GPIO header.
 
-endif
-
-if MESON_GXM
-
 config TARGET_KHADAS_VIM2
 	bool "KHADAS-VIM2"
+	select MESON_GXM
 	help
 	  Khadas VIM2 is a single board computer based on Meson GXM
 	  with 2/3 GiB of RAM, Ethernet, HDMI, 4 USB, micro-SD slot,
 	  eMMC, IR receiver and a 40-pin GPIO header.
 
-endif
+endchoice
 
 config SYS_SOC
 	default "meson"
-- 
2.7.4

  reply	other threads:[~2018-11-09 15:26 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-09 15:26 [PATCH u-boot 00/19] Amlogic Meson cleanup for AXG SoC support Neil Armstrong
2018-11-09 15:26 ` Neil Armstrong [this message]
2018-11-09 15:26 ` [PATCH u-boot 02/19] configs: meson: remove unnecessary MESON_FDTFILE_SETTING Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 03/19] board: amlogic: remove p212 derivatives Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 04/19] board: amlogic: move khadas-vim2 as q200 ref board Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 05/19] board: amlogic: factorise gxbb boards Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 06/19] ARM: rework amlogic configuration Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 07/19] configs: meson: change default load addresses Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 08/19] pinctrl: meson: rework gx pmx function Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 09/19] pinctrl: meson: select generic pinctrl Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 10/19] pinctrl: meson: add axg support Neil Armstrong
2018-11-20 14:06   ` Carlo Caione
2018-11-20 14:47   ` Carlo Caione
2018-11-21  9:34     ` Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 11/19] clk: meson: add static to meson_gates table Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 12/19] clk: meson: silence debug print Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 13/19] ARM: meson: rework soc arch file to prepare for new SoC Neil Armstrong
2018-11-20 21:11   ` [U-Boot] " Loic Devulder
2018-11-21  9:34     ` Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 14/19] ARM: meson: Add support for AXG family Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 15/19] ARM: dts: Sync Amlogic Meson AXG DT from Linux 4.20-rc1 Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 16/19] clk: Add clock driver for AXG Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 17/19] board: amlogic: add support for S400 board Neil Armstrong
2018-11-20 21:08   ` [U-Boot] " Loic Devulder
2018-11-21  9:32     ` Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 18/19] ARM: meson: factorize common code out amlogic's boards Neil Armstrong
2018-11-09 15:26 ` [PATCH u-boot 19/19] ARM: meson: Add boot device discovery Neil Armstrong

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=1541777218-472-2-git-send-email-narmstrong@baylibre.com \
    --to=narmstrong@baylibre.com \
    --cc=linus-amlogic@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox