From b702e5fdde72759cd7864ae2e8a4467db495a47d Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Tue, 3 Dec 2019 17:23:19 +0100 Subject: [PATCH] soc: riscv: rv32m1: enable the RV32M1 Timer/PWM driver Enable the driver for the Timer/PWM (TPM) module present in the OpenISA RV32M1 when PWM is enabled. Signed-off-by: Henrik Brix Andersen --- soc/riscv/openisa_rv32m1/Kconfig.defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/soc/riscv/openisa_rv32m1/Kconfig.defconfig b/soc/riscv/openisa_rv32m1/Kconfig.defconfig index 75177475362..ac98ee841e6 100644 --- a/soc/riscv/openisa_rv32m1/Kconfig.defconfig +++ b/soc/riscv/openisa_rv32m1/Kconfig.defconfig @@ -156,6 +156,12 @@ config SPI_RV32M1_LPSPI endif # SPI +if PWM + +config PWM_RV32M1_TPM + default y + +endif # PWM if FLASH