2020-07-15 11:52:15 +02:00
|
|
|
# Copyright (c) 2020 Inria
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
|
|
|
config CPU_STM32
|
|
|
|
bool
|
2021-09-17 10:24:08 +02:00
|
|
|
|
2022-10-26 11:55:43 +02:00
|
|
|
menu "STM32 configuration"
|
|
|
|
|
2020-09-11 08:32:37 +02:00
|
|
|
# Common CPU symbol
|
2020-07-15 11:52:15 +02:00
|
|
|
config CPU
|
|
|
|
default "stm32" if CPU_STM32
|
|
|
|
|
2022-10-26 11:55:43 +02:00
|
|
|
|
|
|
|
menu "STM32 clock configuration"
|
|
|
|
depends on CPU_STM32
|
|
|
|
|
|
|
|
rsource "kconfigs/Kconfig.clk"
|
2024-03-26 10:41:15 +01:00
|
|
|
orsource "kconfigs/$(CPU_FAM)/Kconfig.clk"
|
2022-10-26 11:55:43 +02:00
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
rsource "kconfigs/$(CPU_FAM)/Kconfig"
|
|
|
|
rsource "kconfigs/$(CPU_FAM)/Kconfig.lines"
|
|
|
|
rsource "kconfigs/$(CPU_FAM)/Kconfig.models"
|
2020-09-24 15:21:07 +02:00
|
|
|
|
2021-10-12 20:00:19 +02:00
|
|
|
choice
|
2021-12-19 10:37:29 +01:00
|
|
|
prompt "ReaDout Protection level"
|
|
|
|
default RDP0
|
|
|
|
help
|
2022-10-26 11:49:00 +02:00
|
|
|
Set minimum running RDP level.
|
|
|
|
RDP0 is full debug permissions, RDP1 disables read from Flash but
|
|
|
|
otherwise leaves debug enabled, RDP2 disables JTAG completely. If
|
|
|
|
there is a mismatch between desired RDP level here and RDP level
|
|
|
|
set on the chip, early cpu init will hang. This ensures production
|
|
|
|
devices with the wrong RDP level, by fault or malace intent, will
|
|
|
|
not run. See cpu manual for further details on RDP.
|
2021-12-19 10:33:12 +01:00
|
|
|
depends on (CPU_FAM_F1 || CPU_FAM_F2 || CPU_FAM_F3 || CPU_FAM_F4 || CPU_FAM_F7)
|
2021-10-12 20:00:19 +02:00
|
|
|
config RDP0
|
2021-12-19 10:37:29 +01:00
|
|
|
bool "RDP0"
|
2021-10-12 20:00:19 +02:00
|
|
|
config RDP1
|
2021-12-19 10:37:29 +01:00
|
|
|
bool "RDP1"
|
2021-10-12 20:00:19 +02:00
|
|
|
config RDP2
|
2021-12-19 10:37:29 +01:00
|
|
|
bool "RDP2"
|
2021-10-12 20:00:19 +02:00
|
|
|
endchoice
|
|
|
|
|
2022-10-26 11:55:43 +02:00
|
|
|
endmenu
|