arch: riscv: add config option for building SiFive's SoC resource
authorLoys Ollivier <lollivier@baylibre.com>
Mon, 17 Jun 2019 19:29:48 +0000 (21:29 +0200)
committerPaul Walmsley <paul.walmsley@sifive.com>
Mon, 1 Jul 2019 20:15:36 +0000 (13:15 -0700)
Create a config option for building SiFive SoC specific resources
e.g. SiFive device tree, platform drivers...

Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@sifive.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/Kconfig
arch/riscv/Kconfig.socs [new file with mode: 0644]
arch/riscv/boot/dts/sifive/Makefile

index 0c4b122..69e6527 100644 (file)
@@ -95,6 +95,8 @@ config PGTABLE_LEVELS
        default 3 if 64BIT
        default 2
 
+source "arch/riscv/Kconfig.socs"
+
 menu "Platform type"
 
 choice
diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs
new file mode 100644 (file)
index 0000000..60dae1b
--- /dev/null
@@ -0,0 +1,8 @@
+menu "SoC selection"
+
+config SOC_SIFIVE
+       bool "SiFive SoCs"
+       help
+         This enables support for SiFive SoC platform hardware.
+
+endmenu
index baaeef9..6d6189e 100644 (file)
@@ -1,2 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0
-dtb-y += hifive-unleashed-a00.dtb
+dtb-$(CONFIG_SOC_SIFIVE) += hifive-unleashed-a00.dtb