Merge tag 'u-boot-atmel-fixes-2019.07-a' of git://git.denx.de/u-boot-atmel
[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         imply BOOTSTAGE_STASH if SPL_BOOTSTAGE
21         imply SPL_BOOTSTAGE if BOOTSTAGE
22         imply SPL_DISPLAY_PRINT
23         imply SPL_LIBDISK_SUPPORT
24
25 config SYS_SOC
26         default "stm32mp"
27
28 config SYS_MALLOC_LEN
29         default 0x2000000
30
31 config ENV_SIZE
32         default 0x1000
33
34 config TARGET_STM32MP1
35         bool "Support stm32mp1xx"
36         select ARCH_SUPPORT_PSCI if !STM32MP1_TRUSTED
37         select CPU_V7A
38         select CPU_V7_HAS_NONSEC if !STM32MP1_TRUSTED
39         select CPU_V7_HAS_VIRT
40         select PINCTRL_STM32
41         select STM32_RCC
42         select STM32_RESET
43         select SYS_ARCH_TIMER
44         imply BOOTCOUNT_LIMIT
45         imply BOOTSTAGE
46         imply CMD_BOOTCOUNT
47         imply CMD_BOOTSTAGE
48         imply SYSRESET_PSCI if STM32MP1_TRUSTED
49         imply SYSRESET_SYSCON if !STM32MP1_TRUSTED
50         help
51                 target STMicroelectronics SOC STM32MP1 family
52                 STM32MP157, STM32MP153 or STM32MP151
53                 STMicroelectronics MPU with core ARMv7
54                 dual core A7 for STM32MP157/3, monocore for STM32MP151
55
56 config STM32MP1_TRUSTED
57         bool "Support trusted boot with TF-A"
58         default y if !SPL
59         select ARM_SMCCC
60         help
61                 Say Y here to enable boot with TF-A
62                 Trusted boot chain is :
63                 BootRom => TF-A.stm32 (clock & DDR) => U-Boot.stm32
64                 TF-A monitor provides proprietary smc to manage secure devices
65
66 config SYS_TEXT_BASE
67         prompt "U-Boot base address"
68         default 0xC0100000
69         help
70                 configure the U-Boot base address
71                 when DDR driver is used:
72                   DDR + 1MB (0xC0100000)
73
74 config NR_DRAM_BANKS
75         default 1
76
77 config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_MMC2
78         hex "Partition on MMC2 to use to load U-Boot from"
79         depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
80         default 1
81         help
82           Partition on the second MMC to load U-Boot from when the MMC is being
83           used in raw mode
84
85 config BOOTSTAGE_STASH_ADDR
86         default 0xC3000000
87
88 if BOOTCOUNT_LIMIT
89 config SYS_BOOTCOUNT_SINGLEWORD
90         default y
91
92 # TAMP_BOOTCOUNT = TAMP_BACKUP_REGISTER(21)
93 config SYS_BOOTCOUNT_ADDR
94         default 0x5C00A154
95 endif
96
97 if DEBUG_UART
98
99 config DEBUG_UART_BOARD_INIT
100         default y
101
102 # debug on UART4 by default
103 config DEBUG_UART_BASE
104         default 0x40010000
105
106 # clock source is HSI on reset
107 config DEBUG_UART_CLOCK
108         default 64000000
109 endif
110
111 source "board/st/stm32mp1/Kconfig"
112
113 endif