From ce9141236ba4b5396544c4d96ff9ebd63ee7331e Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Tue, 3 Dec 2019 17:08:45 +0100 Subject: [PATCH] modules: vega: add option for indicating the presence of RV32M1 TPM Add Kconfig option for indicating that a given SoC contains the OpenISA RV32M1 Timer/PWM module (TPM). Signed-off-by: Henrik Brix Andersen --- modules/Kconfig.vega | 5 +++++ soc/riscv/openisa_rv32m1/Kconfig.soc | 1 + 2 files changed, 6 insertions(+) diff --git a/modules/Kconfig.vega b/modules/Kconfig.vega index 663d03b7e23..2e4fbf01cad 100644 --- a/modules/Kconfig.vega +++ b/modules/Kconfig.vega @@ -20,6 +20,11 @@ config HAS_RV32M1_LPSPI help Set if the low power spi (LPSPI) module is present in the SoC. +config HAS_RV32M1_TPM + bool + help + Set if the Timer/PWM (TPM) module is present in the SoC. + config HAS_RV32M1_FTFX bool help diff --git a/soc/riscv/openisa_rv32m1/Kconfig.soc b/soc/riscv/openisa_rv32m1/Kconfig.soc index bf02cd928d8..ffe30135aa7 100644 --- a/soc/riscv/openisa_rv32m1/Kconfig.soc +++ b/soc/riscv/openisa_rv32m1/Kconfig.soc @@ -10,6 +10,7 @@ config SOC_OPENISA_RV32M1_RISCV32 select HAS_RV32M1_LPUART select HAS_RV32M1_LPI2C select HAS_RV32M1_LPSPI + select HAS_RV32M1_TPM select ATOMIC_OPERATIONS_C select VEGA_SDK_HAL select RISCV_SOC_INTERRUPT_INIT