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 <henrik@brixandersen.dk>
This commit is contained in:
Henrik Brix Andersen 2019-12-03 17:08:45 +01:00 committed by Maureen Helm
commit ce9141236b
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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