1# ST Microelectronics Common Kconfig
2
3# Copyright (c) 2019 Linaro Ltd.
4# SPDX-License-Identifier: Apache-2.0
5
6# Workaround for not being able to have commas in macro arguments
7DT_CHOSEN_Z_CCM := zephyr,ccm
8
9config STM32_CCM
10	def_bool $(dt_chosen_enabled,$(DT_CHOSEN_Z_CCM))
11
12config STM32_BACKUP_SRAM
13	bool "STM32 Backup SRAM"
14	depends on DT_HAS_ST_STM32_BACKUP_SRAM_ENABLED
15	help
16	  Enable support for STM32 backup SRAM.
17
18config USE_STM32_ASSERT
19	depends on ASSERT
20	bool "STM32Cube HAL and LL drivers asserts"
21	help
22	  Enable asserts in STM32Cube HAL and LL drivers.
23
24choice POWER_SUPPLY_CHOICE
25	prompt "STM32 power supply configuration"
26	default POWER_SUPPLY_LDO
27	depends on SOC_SERIES_STM32H7X || SOC_SERIES_STM32U5X
28
29config POWER_SUPPLY_LDO
30	bool "LDO supply"
31
32config POWER_SUPPLY_DIRECT_SMPS
33	bool "Direct SMPS supply"
34
35config POWER_SUPPLY_SMPS_1V8_SUPPLIES_LDO
36	bool "SMPS 1.8V supplies LDO (no external supply)"
37	depends on !SOC_SERIES_STM32U5X
38
39config POWER_SUPPLY_SMPS_2V5_SUPPLIES_LDO
40	bool "SMPS 2.5V supplies LDO (no external supply)"
41	depends on !SOC_SERIES_STM32U5X
42
43config POWER_SUPPLY_SMPS_1V8_SUPPLIES_EXT_AND_LDO
44	bool "External SMPS 1.8V supply, supplies LDO"
45	depends on !SOC_SERIES_STM32U5X
46
47config POWER_SUPPLY_SMPS_2V5_SUPPLIES_EXT_AND_LDO
48	bool "External SMPS 2.5V supply, supplies LDO"
49	depends on !SOC_SERIES_STM32U5X
50
51config POWER_SUPPLY_SMPS_1V8_SUPPLIES_EXT
52	bool "External SMPS 1.8V supply and bypass"
53	depends on !SOC_SERIES_STM32U5X
54
55config POWER_SUPPLY_SMPS_2V5_SUPPLIES_EXT
56	bool "External SMPS 2.5V supply and bypass"
57	depends on !SOC_SERIES_STM32U5X
58
59config POWER_SUPPLY_EXTERNAL_SOURCE
60	bool "Bypass"
61	depends on !SOC_SERIES_STM32U5X
62
63endchoice
64