Convert CONFIG_SYS_FSL_SEC_MON 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 DEEP_SLEEP
38         bool "Enable SoC deep sleep feature"
39         depends on ARCH_T1024 || ARCH_T1040 || ARCH_T1042 || ARCH_LS1021A
40         default y
41         help
42           Indicates this SoC supports deep sleep feature. If deep sleep is
43           supported, core will start to execute uboot when wakes up.
44
45 config FSL_USE_PCA9547_MUX
46         bool "Enable PCA9547 I2C Mux on Freescale boards"
47         depends on PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
48         help
49          This option enables the PCA9547 I2C mux on Freescale boards.
50
51 config VID
52         bool "Enable Freescale VID"
53         depends on (PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3) && (I2C || DM_I2C)
54         help
55          This option enables setting core voltage based on individual
56          values saved in SoC fuses.
57
58 config SPL_VID
59         bool "Enable Freescale VID in SPL"
60         depends on (PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3) && (SPL_I2C || DM_SPL_I2C)
61         help
62          This option enables setting core voltage based on individual
63          values saved in SoC fuses, in SPL.
64
65 if VID || SPL_VID
66
67 config VID_FLS_ENV
68         string "Environment variable for overriding VDD"
69         help
70           This option allows for specifying the environment variable
71           to check to override VDD information.
72
73 config VOL_MONITOR_INA220
74         bool "Enable the INA220 voltage monitor read"
75         help
76           This option enables INA220 voltage monitor read
77           functionality. It is used by the common VID driver.
78
79 config VOL_MONITOR_IR36021_READ
80         bool "Enable the IR36021 voltage monitor read"
81         help
82          This option enables IR36021 voltage monitor read
83          functionality. It is used by the common VID driver.
84
85 config VOL_MONITOR_IR36021_SET
86         bool "Enable the IR36021 voltage monitor set"
87         help
88          This option enables IR36021 voltage monitor set
89          functionality. It is used by the common VID driver.
90
91 config VOL_MONITOR_LTC3882_READ
92         bool "Enable the LTC3882 voltage monitor read"
93         help
94          This option enables LTC3882 voltage monitor read
95          functionality. It is used by the common VID driver.
96
97 config VOL_MONITOR_LTC3882_SET
98         bool "Enable the LTC3882 voltage monitor set"
99         help
100          This option enables LTC3882 voltage monitor set
101          functionality. It is used by the common VID driver.
102
103 config VOL_MONITOR_ISL68233_READ
104         bool "Enable the ISL68233 voltage monitor read"
105         help
106          This option enables ISL68233 voltage monitor read
107          functionality. It is used by the common VID driver.
108
109 config VOL_MONITOR_ISL68233_SET
110         bool "Enable the ISL68233 voltage monitor set"
111         help
112          This option enables ISL68233 voltage monitor set
113          functionality. It is used by the common VID driver.
114
115 endif
116
117 config FSL_QIXIS
118         bool "Enable QIXIS support"
119         depends on PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
120
121 config QIXIS_I2C_ACCESS
122         bool "Access to QIXIS is over i2c"
123         depends on FSL_QIXIS
124         default y
125
126 config HAS_FSL_DR_USB
127         def_bool y
128         depends on USB_EHCI_HCD && PPC