Skip to content

Commit

Permalink
arch: riscv: add config option for building SiFive's SoC resource
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Loys Ollivier authored and Paul Walmsley committed Jul 1, 2019
1 parent 556024d commit 0cbb8a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ config PGTABLE_LEVELS
default 3 if 64BIT
default 2

source "arch/riscv/Kconfig.socs"

menu "Platform type"

choice
Expand Down
8 changes: 8 additions & 0 deletions arch/riscv/Kconfig.socs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
menu "SoC selection"

config SOC_SIFIVE
bool "SiFive SoCs"
help
This enables support for SiFive SoC platform hardware.

endmenu
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/sifive/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0
dtb-y += hifive-unleashed-a00.dtb
dtb-$(CONFIG_SOC_SIFIVE) += hifive-unleashed-a00.dtb

0 comments on commit 0cbb8a3

Please sign in to comment.