1config CMD_STBOARD
2	bool "stboard - command for OTP board information"
3	depends on ARCH_STM32MP
4	default y if TARGET_ST_STM32MP15x
5	help
6	  This compile the stboard command to
7	  read and write the board in the OTP.
8
9config MTDPARTS_NAND0_BOOT
10	string "mtd boot partitions for nand0"
11	default "2m(fsbl),2m(ssbl1),2m(ssbl2)" if STM32MP15x_STM32IMAGE || \
12						  !TFABOOT
13	default "2m(fsbl),4m(fip1),4m(fip2)"
14	depends on SYS_MTDPARTS_RUNTIME && ARCH_STM32MP
15	help
16	  This define the partitions of nand0 used to build mtparts dynamically
17	  for boot from nand0.
18	  Each partition need to be aligned with the device erase block size,
19	  512KB is the max size for the NAND supported by stm32mp1 platform.
20	  The fsbl partition support multiple copy of the same binary, one by
21	  erase block.
22
23config MTDPARTS_NAND0_TEE
24	string "mtd tee partitions for nand0"
25	default "512k(teeh),512k(teed),512k(teex)"
26	depends on SYS_MTDPARTS_RUNTIME && ARCH_STM32MP && STM32MP15x_STM32IMAGE
27	help
28	  This define the tee partitions added in mtparts dynamically
29	  when tee is supported with boot from nand0.
30	  Each partition need to be aligned with the device erase block size,
31	  512KB is the max size for the NAND supported by stm32mp1 platform.
32
33config MTDPARTS_NOR0_BOOT
34	string "mtd boot partitions for nor0"
35	default "256k(fsbl1),256k(fsbl2),2m(ssbl),512k(u-boot-env)" if STM32MP15x_STM32IMAGE || \
36								       !TFABOOT
37	default "256k(fsbl1),256k(fsbl2),4m(fip),512k(u-boot-env)"
38	depends on SYS_MTDPARTS_RUNTIME && ARCH_STM32MP
39	help
40	  This define the partitions of nand0 used to build mtparts dynamically
41	  for boot from nor0.
42	  Each partition need to be aligned with the device erase block size,
43	  with 256KB we support all the NOR.
44	  U-Boot env partition (512kB) use 2 erase block for redundancy.
45
46config MTDPARTS_NOR0_TEE
47	string "mtd tee partitions for nor0"
48	default "256k(teeh),512k(teed),256k(teex)"
49	depends on SYS_MTDPARTS_RUNTIME && ARCH_STM32MP && STM32MP15x_STM32IMAGE
50	help
51	  This define the tee partitions added in mtparts dynamically
52	  when tee is supported with boot from nor0.
53
54config MTDPARTS_SPINAND0_BOOT
55	string "mtd boot partitions for spi-nand0"
56	default "2m(fsbl),2m(ssbl1),2m(ssbl2)" if STM32MP15x_STM32IMAGE || !TFABOOT
57	default "2m(fsbl),4m(fip1),4m(fip2)"
58	depends on SYS_MTDPARTS_RUNTIME && ARCH_STM32MP
59	help
60	  This define the partitions of nand0 used to build mtparts dynamically
61	  for boot from spi-nand0,
62	  512KB is the max size for the NAND supported by stm32mp1 platform.
63	  The fsbl partition support multiple copy of the same binary, one by
64	  erase block.
65
66config MTDPARTS_SPINAND0_TEE
67	string "mtd tee partitions for spi-nand0"
68	default "512k(teeh),512k(teed),512k(teex)"
69	depends on SYS_MTDPARTS_RUNTIME && ARCH_STM32MP && STM32MP15x_STM32IMAGE
70	help
71	  This define the tee partitions added in mtparts dynamically
72	  when tee is supported with boot from spi-nand0,
73	  512KB is the max size for the NAND supported by stm32mp1 platform.
74
75config DFU_ALT_RAM0
76	string "dfu for ram0"
77	default "uImage ram 0xc2000000 0x2000000;devicetree.dtb ram 0xc4000000 0x100000;uramdisk.image.gz ram 0xc4400000 0x10000000"
78	depends on ARCH_STM32MP && SET_DFU_ALT_INFO
79	help
80	  This defines the partitions of ram used to build dfu dynamically.
81
82config TYPEC_STUSB160X
83	tristate "STMicroelectronics STUSB160X Type-C controller driver"
84	depends on DM_I2C
85	help
86	  Say Y if your system has STMicroelectronics STUSB160X Type-C port
87	  controller.
88