stm32mp1: configs: activate CONFIG_SILENT_CONSOLE
[oweals/u-boot.git] / arch / arm / mach-stm32mp / Kconfig
1 if ARCH_STM32MP
2
3 config SPL
4         select SPL_BOARD_INIT
5         select SPL_CLK
6         select SPL_DM
7         select SPL_DM_SEQ_ALIAS
8         select SPL_DRIVERS_MISC_SUPPORT
9         select SPL_FRAMEWORK
10         select SPL_GPIO_SUPPORT
11         select SPL_LIBCOMMON_SUPPORT
12         select SPL_LIBGENERIC_SUPPORT
13         select SPL_OF_CONTROL
14         select SPL_OF_TRANSLATE
15         select SPL_PINCTRL
16         select SPL_REGMAP
17         select SPL_DM_RESET
18         select SPL_SERIAL_SUPPORT
19         select SPL_SYSCON
20         select SPL_WATCHDOG_SUPPORT
21         imply BOOTSTAGE_STASH if SPL_BOOTSTAGE
22         imply SPL_BOOTSTAGE if BOOTSTAGE
23         imply SPL_DISPLAY_PRINT
24         imply SPL_LIBDISK_SUPPORT
25
26 config SYS_SOC
27         default "stm32mp"
28
29 config SYS_MALLOC_LEN
30         default 0x2000000
31
32 config ENV_SIZE
33         default 0x2000
34
35 config TARGET_STM32MP1
36         bool "Support stm32mp1xx"
37         select ARCH_SUPPORT_PSCI if !STM32MP1_TRUSTED
38         select CPU_V7A
39         select CPU_V7_HAS_NONSEC if !STM32MP1_TRUSTED
40         select CPU_V7_HAS_VIRT
41         select OF_BOARD_SETUP
42         select PINCTRL_STM32
43         select STM32_RCC
44         select STM32_RESET
45         select SYS_ARCH_TIMER
46         imply BOOTCOUNT_LIMIT
47         imply BOOTSTAGE
48         imply CMD_BOOTCOUNT
49         imply CMD_BOOTSTAGE
50         imply SILENT_CONSOLE
51         imply SYSRESET_PSCI if STM32MP1_TRUSTED
52         imply SYSRESET_SYSCON if !STM32MP1_TRUSTED
53         help
54                 target STMicroelectronics SOC STM32MP1 family
55                 STM32MP157, STM32MP153 or STM32MP151
56                 STMicroelectronics MPU with core ARMv7
57                 dual core A7 for STM32MP157/3, monocore for STM32MP151
58
59 config STM32MP1_TRUSTED
60         bool "Support trusted boot with TF-A"
61         default y if !SPL
62         select ARM_SMCCC
63         help
64                 Say Y here to enable boot with TF-A
65                 Trusted boot chain is :
66                 BootRom => TF-A.stm32 (clock & DDR) => U-Boot.stm32
67                 TF-A monitor provides proprietary SMC to manage secure devices
68
69 config STM32MP1_OPTEE
70         bool "Support trusted boot with TF-A and OP-TEE"
71         depends on STM32MP1_TRUSTED
72         default n
73         help
74                 Say Y here to enable boot with TF-A and OP-TEE
75                 Trusted boot chain is :
76                 BootRom => TF-A.stm32 (clock & DDR) => OP-TEE => U-Boot.stm32
77                 OP-TEE monitor provides ST SMC to access to secure resources
78
79 config SYS_TEXT_BASE
80         prompt "U-Boot base address"
81         default 0xC0100000
82         help
83                 configure the U-Boot base address
84                 when DDR driver is used:
85                   DDR + 1MB (0xC0100000)
86
87 config NR_DRAM_BANKS
88         default 1
89
90 config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_MMC2
91         hex "Partition on MMC2 to use to load U-Boot from"
92         depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
93         default 1
94         help
95           Partition on the second MMC to load U-Boot from when the MMC is being
96           used in raw mode
97
98 config STM32_ETZPC
99         bool "STM32 Extended TrustZone Protection"
100         depends on TARGET_STM32MP1
101         default y
102         help
103           Say y to enable STM32 Extended TrustZone Protection
104
105 config CMD_STM32KEY
106         bool "command stm32key to fuse public key hash"
107         default y
108         depends on CMD_FUSE
109         help
110                 fuse public key hash in corresponding fuse used to authenticate
111                 binary.
112
113 config BOOTSTAGE_STASH_ADDR
114         default 0xC3000000
115
116 if BOOTCOUNT_LIMIT
117 config SYS_BOOTCOUNT_SINGLEWORD
118         default y
119
120 # TAMP_BOOTCOUNT = TAMP_BACKUP_REGISTER(21)
121 config SYS_BOOTCOUNT_ADDR
122         default 0x5C00A154
123 endif
124
125 if DEBUG_UART
126
127 config DEBUG_UART_BOARD_INIT
128         default y
129
130 # debug on UART4 by default
131 config DEBUG_UART_BASE
132         default 0x40010000
133
134 # clock source is HSI on reset
135 config DEBUG_UART_CLOCK
136         default 64000000
137 endif
138
139 source "board/st/stm32mp1/Kconfig"
140
141 endif