soc: arm: stm32: activate LPTIM based upon PM

Activate LPTIM by default if PM is selected.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
This commit is contained in:
Benedikt Schmidt 2022-01-17 15:14:30 +01:00 committed by Anas Nashif
commit 03297084e5
2 changed files with 8 additions and 0 deletions

View file

@ -113,3 +113,7 @@
pinctrl-names = "default";
cd-gpios = <&gpiof 5 GPIO_ACTIVE_LOW>;
};
&lptim1 {
status = "okay";
};

View file

@ -1,6 +1,7 @@
# ST Microelectronics STM32H7 MCU line
# Copyright (c) 2019 Linaro Limited
# Copyright (c) 2022 SILA Embedded Solutions GmbH <office@embedded-solutions.at>
# SPDX-License-Identifier: Apache-2.0
# Kconfig symbols common to STM32H7 series
@ -16,6 +17,9 @@ config ROM_START_OFFSET
default 0x400 if BOOTLOADER_MCUBOOT
default 0x0 if !BOOTLOADER_MCUBOOT
config STM32_LPTIM_TIMER
default y if PM
if ENTROPY_GENERATOR
config ENTROPY_STM32_RNG