Convert CONFIG_SYS_FSL_SFP_BE et al to Kconfig
[platform/kernel/u-boot.git] / arch / Kconfig.nxp
1 config CHAIN_OF_TRUST
2         depends on !FIT_SIGNATURE && NXP_ESBC
3         imply CMD_BLOB
4         imply CMD_HASH if ARM
5         select FSL_CAAM
6         select ARCH_MISC_INIT
7         select FSL_SEC_MON
8         select SPL_BOARD_INIT if (ARM && SPL)
9         select SPL_HASH if (ARM && SPL)
10         select SHA_HW_ACCEL
11         select SHA_PROG_HW_ACCEL
12         select ENV_IS_NOWHERE
13         select CMD_EXT4 if ARM
14         select CMD_EXT4_WRITE if ARM
15         bool
16         default y
17
18 config CMD_ESBC_VALIDATE
19         bool "Enable the 'esbc_validate' and 'esbc_halt' commands"
20         depends on CHAIN_OF_TRUST
21         default y
22         help
23           This option enables two commands used for secure booting:
24
25             esbc_validate - validate signature using RSA verification
26             esbc_halt - put the core in spin loop (Secure Boot Only)
27
28 config ESBC_HDR_LS
29         bool
30
31 config ESBC_ADDR_64BIT
32         def_bool y
33         depends on ESBC_HDR_LS && FSL_LAYERSCAPE
34         help
35           For Layerscape based platforms, ESBC image Address in Header is 64bit.
36
37 config SYS_FSL_SFP_BE
38         def_bool y
39         depends on CHAIN_OF_TRUST && (PPC || FSL_LSCH2 || ARCH_LS1021A)
40
41 config SYS_FSL_SFP_LE
42         def_bool y
43         depends on CHAIN_OF_TRUST && !SYS_FSL_SFP_BE
44
45 choice
46         prompt "SFP IP revision"
47         depends on CHAIN_OF_TRUST
48         default SYS_FSL_SFP_VER_3_0 if PPC
49         default SYS_FSL_SFP_VER_3_4
50
51 config SYS_FSL_SFP_VER_3_0
52         bool "SFP version 3.0"
53
54 config SYS_FSL_SFP_VER_3_2
55         bool "SFP version 3.2"
56
57 config SYS_FSL_SFP_VER_3_4
58         bool "SFP version 3.4"
59
60 endchoice
61
62 config SYS_FSL_SRK_LE
63         def_bool y
64         depends on CHAIN_OF_TRUST && ARM
65
66 config KEY_REVOCATION
67         def_bool y
68         depends on CHAIN_OF_TRUST
69
70 config DEEP_SLEEP
71         bool "Enable SoC deep sleep feature"
72         depends on ARCH_T1024 || ARCH_T1040 || ARCH_T1042 || ARCH_LS1021A
73         default y
74         help
75           Indicates this SoC supports deep sleep feature. If deep sleep is
76           supported, core will start to execute uboot when wakes up.
77
78 config FSL_USE_PCA9547_MUX
79         bool "Enable PCA9547 I2C Mux on Freescale boards"
80         depends on PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
81         help
82          This option enables the PCA9547 I2C mux on Freescale boards.
83
84 config VID
85         bool "Enable Freescale VID"
86         depends on (PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3) && (I2C || DM_I2C)
87         help
88          This option enables setting core voltage based on individual
89          values saved in SoC fuses.
90
91 config SPL_VID
92         bool "Enable Freescale VID in SPL"
93         depends on (PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3) && (SPL_I2C || DM_SPL_I2C)
94         help
95          This option enables setting core voltage based on individual
96          values saved in SoC fuses, in SPL.
97
98 if VID || SPL_VID
99
100 config VID_FLS_ENV
101         string "Environment variable for overriding VDD"
102         help
103           This option allows for specifying the environment variable
104           to check to override VDD information.
105
106 config VOL_MONITOR_INA220
107         bool "Enable the INA220 voltage monitor read"
108         help
109           This option enables INA220 voltage monitor read
110           functionality. It is used by the common VID driver.
111
112 config VOL_MONITOR_IR36021_READ
113         bool "Enable the IR36021 voltage monitor read"
114         help
115          This option enables IR36021 voltage monitor read
116          functionality. It is used by the common VID driver.
117
118 config VOL_MONITOR_IR36021_SET
119         bool "Enable the IR36021 voltage monitor set"
120         help
121          This option enables IR36021 voltage monitor set
122          functionality. It is used by the common VID driver.
123
124 config VOL_MONITOR_LTC3882_READ
125         bool "Enable the LTC3882 voltage monitor read"
126         help
127          This option enables LTC3882 voltage monitor read
128          functionality. It is used by the common VID driver.
129
130 config VOL_MONITOR_LTC3882_SET
131         bool "Enable the LTC3882 voltage monitor set"
132         help
133          This option enables LTC3882 voltage monitor set
134          functionality. It is used by the common VID driver.
135
136 config VOL_MONITOR_ISL68233_READ
137         bool "Enable the ISL68233 voltage monitor read"
138         help
139          This option enables ISL68233 voltage monitor read
140          functionality. It is used by the common VID driver.
141
142 config VOL_MONITOR_ISL68233_SET
143         bool "Enable the ISL68233 voltage monitor set"
144         help
145          This option enables ISL68233 voltage monitor set
146          functionality. It is used by the common VID driver.
147
148 endif
149
150 config FSL_QIXIS
151         bool "Enable QIXIS support"
152         depends on PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
153
154 config QIXIS_I2C_ACCESS
155         bool "Access to QIXIS is over i2c"
156         depends on FSL_QIXIS
157         default y
158
159 config HAS_FSL_DR_USB
160         def_bool y
161         depends on USB_EHCI_HCD && PPC