Convert CONFIG_ESBC_HDR_LS 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 SPL_BOARD_INIT if (ARM && SPL)
8         select SPL_HASH if (ARM && SPL)
9         select SHA_HW_ACCEL
10         select SHA_PROG_HW_ACCEL
11         select ENV_IS_NOWHERE
12         select CMD_EXT4 if ARM
13         select CMD_EXT4_WRITE if ARM
14         bool
15         default y
16
17 config CMD_ESBC_VALIDATE
18         bool "Enable the 'esbc_validate' and 'esbc_halt' commands"
19         depends on CHAIN_OF_TRUST
20         default y
21         help
22           This option enables two commands used for secure booting:
23
24             esbc_validate - validate signature using RSA verification
25             esbc_halt - put the core in spin loop (Secure Boot Only)
26
27 config ESBC_HDR_LS
28         bool
29
30 config ESBC_ADDR_64BIT
31         def_bool y
32         depends on ESBC_HDR_LS && FSL_LAYERSCAPE
33         help
34           For Layerscape based platforms, ESBC image Address in Header is 64bit.
35
36 config DEEP_SLEEP
37         bool "Enable SoC deep sleep feature"
38         depends on ARCH_T1024 || ARCH_T1040 || ARCH_T1042 || ARCH_LS1021A
39         default y
40         help
41           Indicates this SoC supports deep sleep feature. If deep sleep is
42           supported, core will start to execute uboot when wakes up.
43
44 config FSL_USE_PCA9547_MUX
45         bool "Enable PCA9547 I2C Mux on Freescale boards"
46         depends on PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
47         help
48          This option enables the PCA9547 I2C mux on Freescale boards.
49
50 config VID
51         bool "Enable Freescale VID"
52         depends on (PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3) && (I2C || DM_I2C)
53         help
54          This option enables setting core voltage based on individual
55          values saved in SoC fuses.
56
57 config SPL_VID
58         bool "Enable Freescale VID in SPL"
59         depends on (PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3) && (SPL_I2C || DM_SPL_I2C)
60         help
61          This option enables setting core voltage based on individual
62          values saved in SoC fuses, in SPL.
63
64 if VID || SPL_VID
65
66 config VID_FLS_ENV
67         string "Environment variable for overriding VDD"
68         help
69           This option allows for specifying the environment variable
70           to check to override VDD information.
71
72 config VOL_MONITOR_INA220
73         bool "Enable the INA220 voltage monitor read"
74         help
75           This option enables INA220 voltage monitor read
76           functionality. It is used by the common VID driver.
77
78 config VOL_MONITOR_IR36021_READ
79         bool "Enable the IR36021 voltage monitor read"
80         help
81          This option enables IR36021 voltage monitor read
82          functionality. It is used by the common VID driver.
83
84 config VOL_MONITOR_IR36021_SET
85         bool "Enable the IR36021 voltage monitor set"
86         help
87          This option enables IR36021 voltage monitor set
88          functionality. It is used by the common VID driver.
89
90 config VOL_MONITOR_LTC3882_READ
91         bool "Enable the LTC3882 voltage monitor read"
92         help
93          This option enables LTC3882 voltage monitor read
94          functionality. It is used by the common VID driver.
95
96 config VOL_MONITOR_LTC3882_SET
97         bool "Enable the LTC3882 voltage monitor set"
98         help
99          This option enables LTC3882 voltage monitor set
100          functionality. It is used by the common VID driver.
101
102 config VOL_MONITOR_ISL68233_READ
103         bool "Enable the ISL68233 voltage monitor read"
104         help
105          This option enables ISL68233 voltage monitor read
106          functionality. It is used by the common VID driver.
107
108 config VOL_MONITOR_ISL68233_SET
109         bool "Enable the ISL68233 voltage monitor set"
110         help
111          This option enables ISL68233 voltage monitor set
112          functionality. It is used by the common VID driver.
113
114 endif
115
116 config FSL_QIXIS
117         bool "Enable QIXIS support"
118         depends on PPC || ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
119
120 config QIXIS_I2C_ACCESS
121         bool "Access to QIXIS is over i2c"
122         depends on FSL_QIXIS
123         default y
124
125 config HAS_FSL_DR_USB
126         def_bool y
127         depends on USB_EHCI_HCD && PPC