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