diff --git a/cpu/fe310/Kconfig b/cpu/fe310/Kconfig index a38d65a0a1..9ba0b39870 100644 --- a/cpu/fe310/Kconfig +++ b/cpu/fe310/Kconfig @@ -18,6 +18,10 @@ config CPU_FAM_FE310 select HAS_PERIPH_RTT_SET_COUNTER select HAS_PERIPH_WDT + select MODULE_PERIPH_PLIC if TEST_KCONFIG + select MODULE_PERIPH_CORETIMER if MODULE_PERIPH_TIMER && HAS_PERIPH_CORETIMER + select MODULE_PERIPH_RTT if MODULE_PERIPH_RTC && HAS_PERIPH_RTT + config CPU_MODEL_FE310_G000 bool select CPU_FAM_FE310 @@ -46,5 +50,7 @@ config CPU_CORE default "rv32imac" if CPU_CORE_RV32IMAC rsource "Kconfig.clk" +rsource "periph/Kconfig" +rsource "vendor/Kconfig" source "$(RIOTCPU)/riscv_common/Kconfig" diff --git a/cpu/fe310/periph/Kconfig b/cpu/fe310/periph/Kconfig new file mode 100644 index 0000000000..5851b1dcdf --- /dev/null +++ b/cpu/fe310/periph/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2021 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_PERIPH + bool + default y + help + fe310 common peripheral code. diff --git a/cpu/fe310/vendor/Kconfig b/cpu/fe310/vendor/Kconfig new file mode 100644 index 0000000000..886c6dfb91 --- /dev/null +++ b/cpu/fe310/vendor/Kconfig @@ -0,0 +1,13 @@ +# Copyright (c) 2021 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_SIFIVE_DRIVERS_FE310 + bool + default y + depends on CPU_FAM_FE310 + help + sifive drivers for fe310.