xref: /OK3568_Linux_fs/device/rockchip/common/configs/Config.in.loader (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#
2
3menu "Loader (u-boot)"
4
5config RK_UBOOT_CFG
6	string "u-boot defconfig"
7	default RK_RTOS_UBOOT_CFG if RK_RTOS_UBOOT_CFG != ""
8	default "rk1808" if RK_CHIP_FAMILY = "rk1806"
9	default "evb-px3se" if RK_CHIP_FAMILY = "px3se"
10	default "rk3126" if RK_CHIP = "rk3126c"
11	default "rk3128x" if RK_CHIP_FAMILY = "rk3128h"
12	default "evb-rk3229" if RK_CHIP_FAMILY = "rk3229"
13	default "evb-px30" if RK_CHIP_FAMILY = "rk3358"
14	default "rv1126" if RK_CHIP_FAMILY = "rv1126_rv1109"
15	default RK_CHIP_FAMILY if RK_CHIP_FAMILY = "rk3308" || \
16		RK_CHIP_FAMILY = "rk3588"
17	default RK_CHIP
18
19if RK_UBOOT_CFG != ""
20
21config RK_UBOOT_CFG_FRAGMENTS
22	string "u-boot defconfig fragments (without .config suffix)"
23
24config RK_UBOOT_OPTS
25	string "u-boot compile options"
26	default "--sz-uboot 1024 2 --sz-trust 1024 2" if RK_CHIP_FAMILY = "rk312x"
27
28config RK_UBOOT_INI
29	string "u-boot ini config overriding"
30	help
31	  The .ini file for packing loader.
32	  Set "" to use default one.
33
34config RK_UBOOT_TRUST_INI
35	string "u-boot trust ini config overriding"
36	help
37	  The .ini file for packing trust image.
38	  Set "" to use default one.
39
40config RK_UBOOT_SPL
41	bool "force using u-boot SPL"
42	help
43	  Force using U-Boot SPL instead of Rockchip MiniLoader binary.
44
45config RK_UBOOT_RAW
46	bool "pack u-boot raw bootloader (idblock)"
47	help
48	  Pack U-Boot into direct raw format (idblock).
49
50config RK_UBOOT_ARCH
51	string
52	default "arm" if RK_UBOOT_ARM32
53	default "arm64" if RK_UBOOT_ARM64
54
55choice
56	prompt "u-boot arch"
57
58config RK_UBOOT_ARM64
59	bool "arm64"
60	depends on !RK_CHIP_ARM32
61
62config RK_UBOOT_ARM32
63	bool "arm"
64
65endchoice
66
67endif # RK_UBOOT_CFG
68
69endmenu # Loader
70