xref: /rk3399_rockchip-uboot/drivers/misc/Kconfig (revision 60bee396ec03ff5bfce10a0f0efd85e5a5783257)
10b11dbf7SMasahiro Yamada#
20b11dbf7SMasahiro Yamada# Multifunction miscellaneous devices
30b11dbf7SMasahiro Yamada#
40b11dbf7SMasahiro Yamada
50b11dbf7SMasahiro Yamadamenu "Multifunction device drivers"
60b11dbf7SMasahiro Yamada
74395e06eSThomas Chouconfig MISC
84395e06eSThomas Chou	bool "Enable Driver Model for Misc drivers"
94395e06eSThomas Chou	depends on DM
104395e06eSThomas Chou	help
114395e06eSThomas Chou	  Enable driver model for miscellaneous devices. This class is
124395e06eSThomas Chou	  used only for those do not fit other more general classes. A
134395e06eSThomas Chou	  set of generic read, write and ioctl methods may be used to
144395e06eSThomas Chou	  access the device.
154395e06eSThomas Chou
1606536c20SJason Zhuconfig SPL_MISC
1706536c20SJason Zhu	bool "Enable Driver Model for Misc drivers in SPL"
1806536c20SJason Zhu	depends on SPL_DM
1906536c20SJason Zhu	help
2006536c20SJason Zhu	  Enable driver model for miscellaneous devices. This class is
2106536c20SJason Zhu	  used only for those do not fit other more general classes. A
2206536c20SJason Zhu	  set of generic read, write and ioctl methods may be used to
2306536c20SJason Zhu	  access the device.
2406536c20SJason Zhu
25bc94d102SJason Zhuconfig TPL_MISC
26bc94d102SJason Zhu	bool "Enable Driver Model for Misc drivers in TPL"
27bc94d102SJason Zhu	depends on TPL_DM
28bc94d102SJason Zhu	help
29bc94d102SJason Zhu	  Enable driver model for miscellaneous devices. This class is
30bc94d102SJason Zhu	  used only for those do not fit other more general classes. A
31bc94d102SJason Zhu	  set of generic read, write and ioctl methods may be used to
32bc94d102SJason Zhu	  access the device.
33bc94d102SJason Zhu
3401b57c06SJoseph Chenconfig MISC_DECOMPRESS
3501b57c06SJoseph Chen	bool "Enable misc decompress driver support"
3601b57c06SJoseph Chen	depends on MISC
3701b57c06SJoseph Chen	help
3801b57c06SJoseph Chen	  Enable misc decompress driver support.
3901b57c06SJoseph Chen
4001b57c06SJoseph Chenconfig SPL_MISC_DECOMPRESS
4101b57c06SJoseph Chen	bool "Enable misc decompress driver support in SPL"
4201b57c06SJoseph Chen	depends on SPL_MISC
4301b57c06SJoseph Chen	help
4401b57c06SJoseph Chen	  Enable misc decompress driver support in spl.
4501b57c06SJoseph Chen
46ca844dd8SThomas Chouconfig ALTERA_SYSID
47ca844dd8SThomas Chou	bool "Altera Sysid support"
48ca844dd8SThomas Chou	depends on MISC
49ca844dd8SThomas Chou	help
50ca844dd8SThomas Chou	  Select this to enable a sysid for Altera devices. Please find
51ca844dd8SThomas Chou	  details on the "Embedded Peripherals IP User Guide" of Altera.
52ca844dd8SThomas Chou
53aa5eb9a3SMarek Behúnconfig ATSHA204A
54aa5eb9a3SMarek Behún	bool "Support for Atmel ATSHA204A module"
55aa5eb9a3SMarek Behún	depends on MISC
56aa5eb9a3SMarek Behún	help
57aa5eb9a3SMarek Behún	   Enable support for I2C connected Atmel's ATSHA204A
58aa5eb9a3SMarek Behún	   CryptoAuthentication module found for example on the Turris Omnia
59aa5eb9a3SMarek Behún	   board.
60aa5eb9a3SMarek Behún
6149cd8e85SPhilipp Tomsichconfig ROCKCHIP_EFUSE
6249cd8e85SPhilipp Tomsich        bool "Rockchip e-fuse support"
6349cd8e85SPhilipp Tomsich	depends on MISC
6449cd8e85SPhilipp Tomsich	help
6549cd8e85SPhilipp Tomsich	  Enable (read-only) access for the e-fuse block found in Rockchip
6649cd8e85SPhilipp Tomsich	  SoCs: accesses can either be made using byte addressing and a length
6749cd8e85SPhilipp Tomsich	  or through child-nodes that are generated based on the e-fuse map
6849cd8e85SPhilipp Tomsich	  retrieved from the DTS.
6949cd8e85SPhilipp Tomsich
7049cd8e85SPhilipp Tomsich	  This driver currently supports the RK3399 only, but can easily be
7149cd8e85SPhilipp Tomsich	  extended (by porting the read function from the Linux kernel sources)
7249cd8e85SPhilipp Tomsich	  to support other recent Rockchip devices.
7349cd8e85SPhilipp Tomsich
744973d825SFinley Xiaoconfig ROCKCHIP_OTP
754973d825SFinley Xiao	bool "Rockchip OTP Support"
764973d825SFinley Xiao	depends on MISC
774973d825SFinley Xiao	help
784973d825SFinley Xiao	  This is a simple drive to dump specified values of Rockchip SoC
794973d825SFinley Xiao	  from otp, such as cpu-leakage.
804973d825SFinley Xiao
812bb8d138SSimon Xueconfig ROCKCHIP_HW_DECOMPRESS
822bb8d138SSimon Xue	bool "Rockchip HardWare Decompress Support"
83adf69379SJoseph Chen	depends on MISC_DECOMPRESS
842bb8d138SSimon Xue	help
852bb8d138SSimon Xue	  This driver support Decompress IP built-in Rockchip SoC, support
862bb8d138SSimon Xue	  LZ4, GZIP, PNG, ZLIB.
872bb8d138SSimon Xue
88dbc13050SXiaoDong Huangconfig ROCKCHIP_PM_CONFIG
89dbc13050SXiaoDong Huang	bool "Rockchip PM Config Support"
90dbc13050SXiaoDong Huang	depends on ARM_CPU_SUSPEND
91dbc13050SXiaoDong Huang	help
92dbc13050SXiaoDong Huang	  This driver supports to configure parameters of system sleep.
93dbc13050SXiaoDong Huang
942bb8d138SSimon Xueconfig SPL_ROCKCHIP_HW_DECOMPRESS
952bb8d138SSimon Xue	bool "Rockchip HardWare Decompress Support"
96adf69379SJoseph Chen	depends on SPL_MISC_DECOMPRESS
972bb8d138SSimon Xue	help
982bb8d138SSimon Xue	  This driver support Decompress IP built-in Rockchip SoC, support
992bb8d138SSimon Xue	  LZ4, GZIP, PNG, ZLIB.
1002bb8d138SSimon Xue
101e9290b3bSJason Zhuconfig ROCKCHIP_SECURE_OTP
102e9290b3bSJason Zhu	bool "Rockchip Secure OTP Support"
103e9290b3bSJason Zhu	depends on MISC && !OPTEE_CLIENT
104e9290b3bSJason Zhu	help
105e9290b3bSJason Zhu	  Support read & write secure otp.
106e9290b3bSJason Zhu
1072867e1b2SNico Chengconfig SPL_ROCKCHIP_SECURE_OTP
1082867e1b2SNico Cheng	bool "Rockchip Secure OTP Support in spl"
10952ed8851SJason Zhu	depends on SPL_MISC
11052ed8851SJason Zhu	help
1112867e1b2SNico Cheng	  Support read & write secure otp in spl.
112f9519410SJason Zhu
1138e2679f6SXuhui Linconfig SPL_OTP_DISABLE_SD
1148e2679f6SXuhui Lin	bool "Rockchip disable sd upgrade Support"
1158e2679f6SXuhui Lin	depends on SPL_ROCKCHIP_SECURE_OTP
1168e2679f6SXuhui Lin	default n
1178e2679f6SXuhui Lin	help
1188e2679f6SXuhui Lin	  Support write otp to disable sd upgrade.
1198e2679f6SXuhui Lin
1208e2679f6SXuhui Linconfig SPL_OTP_DISABLE_USB
1218e2679f6SXuhui Lin	bool "Rockchip disable usb upgrade Support"
1228e2679f6SXuhui Lin	depends on SPL_ROCKCHIP_SECURE_OTP
1238e2679f6SXuhui Lin	default n
1248e2679f6SXuhui Lin	help
1258e2679f6SXuhui Lin	  Support write otp to disable usb upgrade.
1268e2679f6SXuhui Lin
1278e2679f6SXuhui Linconfig SPL_OTP_DISABLE_UART
1288e2679f6SXuhui Lin	bool "Rockchip disable uart upgrade Support"
1298e2679f6SXuhui Lin	depends on SPL_ROCKCHIP_SECURE_OTP
1308e2679f6SXuhui Lin	default n
1318e2679f6SXuhui Lin	help
1328e2679f6SXuhui Lin	  Support write otp to disable uart upgrade.
1338e2679f6SXuhui Lin
1348e2679f6SXuhui Linconfig SPL_OTP_DISABLE_SPI2APB
1358e2679f6SXuhui Lin	bool "Rockchip disable spi2apb upgrade Support"
1368e2679f6SXuhui Lin	depends on SPL_ROCKCHIP_SECURE_OTP
1378e2679f6SXuhui Lin	default n
1388e2679f6SXuhui Lin	help
1398e2679f6SXuhui Lin	  Support write otp to disable spi2apb upgrade.
1408e2679f6SXuhui Lin
141*60bee396SXuhui Linconfig SPL_REVOKE_PUB_KEY
142*60bee396SXuhui Lin	bool "Rockchip revoke current public key Support"
143*60bee396SXuhui Lin	depends on SPL_ROCKCHIP_SECURE_OTP
144*60bee396SXuhui Lin	default n
145*60bee396SXuhui Lin	help
146*60bee396SXuhui Lin	  Support write otp to revoke current public key.
147*60bee396SXuhui Lin
1486fb9ac15SSimon Glassconfig CMD_CROS_EC
1496fb9ac15SSimon Glass	bool "Enable crosec command"
1506fb9ac15SSimon Glass	depends on CROS_EC
1516fb9ac15SSimon Glass	help
1526fb9ac15SSimon Glass	  Enable command-line access to the Chrome OS EC (Embedded
1536fb9ac15SSimon Glass	  Controller). This provides the 'crosec' command which has
1546fb9ac15SSimon Glass	  a number of sub-commands for performing EC tasks such as
1556fb9ac15SSimon Glass	  updating its flash, accessing a small saved context area
1566fb9ac15SSimon Glass	  and talking to the I2C bus behind the EC (if there is one).
1576fb9ac15SSimon Glass
1586fb9ac15SSimon Glassconfig CROS_EC
1596fb9ac15SSimon Glass	bool "Enable Chrome OS EC"
1606fb9ac15SSimon Glass	help
1616fb9ac15SSimon Glass	  Enable access to the Chrome OS EC. This is a separate
1626fb9ac15SSimon Glass	  microcontroller typically available on a SPI bus on Chromebooks. It
1636fb9ac15SSimon Glass	  provides access to the keyboard, some internal storage and may
1646fb9ac15SSimon Glass	  control access to the battery and main PMIC depending on the
1656fb9ac15SSimon Glass	  device. You can use the 'crosec' command to access it.
1666fb9ac15SSimon Glass
1676fb9ac15SSimon Glassconfig CROS_EC_I2C
1686fb9ac15SSimon Glass	bool "Enable Chrome OS EC I2C driver"
1696fb9ac15SSimon Glass	depends on CROS_EC
1706fb9ac15SSimon Glass	help
1716fb9ac15SSimon Glass	  Enable I2C access to the Chrome OS EC. This is used on older
1726fb9ac15SSimon Glass	  ARM Chromebooks such as snow and spring before the standard bus
1736fb9ac15SSimon Glass	  changed to SPI. The EC will accept commands across the I2C using
1746fb9ac15SSimon Glass	  a special message protocol, and provide responses.
1756fb9ac15SSimon Glass
1766fb9ac15SSimon Glassconfig CROS_EC_LPC
1776fb9ac15SSimon Glass	bool "Enable Chrome OS EC LPC driver"
1786fb9ac15SSimon Glass	depends on CROS_EC
1796fb9ac15SSimon Glass	help
1806fb9ac15SSimon Glass	  Enable I2C access to the Chrome OS EC. This is used on x86
1816fb9ac15SSimon Glass	  Chromebooks such as link and falco. The keyboard is provided
1826fb9ac15SSimon Glass	  through a legacy port interface, so on x86 machines the main
1836fb9ac15SSimon Glass	  function of the EC is power and thermal management.
1846fb9ac15SSimon Glass
18547cb8c65SSimon Glassconfig CROS_EC_SANDBOX
18647cb8c65SSimon Glass	bool "Enable Chrome OS EC sandbox driver"
18747cb8c65SSimon Glass	depends on CROS_EC && SANDBOX
18847cb8c65SSimon Glass	help
18947cb8c65SSimon Glass	  Enable a sandbox emulation of the Chrome OS EC. This supports
19047cb8c65SSimon Glass	  keyboard (use the -l flag to enable the LCD), verified boot context,
19147cb8c65SSimon Glass	  EC flash read/write/erase support and a few other things. It is
19247cb8c65SSimon Glass	  enough to perform a Chrome OS verified boot on sandbox.
19347cb8c65SSimon Glass
1946fb9ac15SSimon Glassconfig CROS_EC_SPI
1956fb9ac15SSimon Glass	bool "Enable Chrome OS EC SPI driver"
1966fb9ac15SSimon Glass	depends on CROS_EC
1976fb9ac15SSimon Glass	help
1986fb9ac15SSimon Glass	  Enable SPI access to the Chrome OS EC. This is used on newer
1996fb9ac15SSimon Glass	  ARM Chromebooks such as pit, pi and nyan-big. The SPI interface
2006fb9ac15SSimon Glass	  provides a faster and more robust interface than I2C but the bugs
2016fb9ac15SSimon Glass	  are less interesting.
2026fb9ac15SSimon Glass
203879704d8SSimon Glassconfig DS4510
204879704d8SSimon Glass	bool "Enable support for DS4510 CPU supervisor"
205879704d8SSimon Glass	help
206879704d8SSimon Glass	  Enable support for the Maxim DS4510 CPU supervisor. It has an
207879704d8SSimon Glass	  integrated 64-byte EEPROM, four programmable non-volatile I/O pins
208879704d8SSimon Glass	  and a configurable timer for the supervisor function. The device is
209879704d8SSimon Glass	  connected over I2C.
210879704d8SSimon Glass
211c12e0d93SPeng Fanconfig FSL_SEC_MON
212fe78378dSgaurav rana	bool "Enable FSL SEC_MON Driver"
213fe78378dSgaurav rana	help
214fe78378dSgaurav rana	  Freescale Security Monitor block is responsible for monitoring
215fe78378dSgaurav rana	  system states.
216fe78378dSgaurav rana	  Security Monitor can be transitioned on any security failures,
217fe78378dSgaurav rana	  like software violations or hardware security violations.
2181cdd9412SStefan Roese
2193e020f03SPeng Fanconfig MXC_OCOTP
2203e020f03SPeng Fan	bool "Enable MXC OCOTP Driver"
2213e020f03SPeng Fan	help
2223e020f03SPeng Fan	  If you say Y here, you will get support for the One Time
2233e020f03SPeng Fan	  Programmable memory pages that are stored on the some
2243e020f03SPeng Fan	  Freescale i.MX processors.
2253e020f03SPeng Fan
2264cf9e464SStefan Roeseconfig NUVOTON_NCT6102D
2274cf9e464SStefan Roese	bool "Enable Nuvoton NCT6102D Super I/O driver"
2284cf9e464SStefan Roese	help
2294cf9e464SStefan Roese	  If you say Y here, you will get support for the Nuvoton
2304cf9e464SStefan Roese	  NCT6102D Super I/O driver. This can be used to enable or
2314cf9e464SStefan Roese	  disable the legacy UART, the watchdog or other devices
2324cf9e464SStefan Roese	  in the Nuvoton Super IO chips on X86 platforms.
2334cf9e464SStefan Roese
2345fd6badbSSimon Glassconfig PWRSEQ
2355fd6badbSSimon Glass	bool "Enable power-sequencing drivers"
2365fd6badbSSimon Glass	depends on DM
2375fd6badbSSimon Glass	help
2385fd6badbSSimon Glass	  Power-sequencing drivers provide support for controlling power for
2395fd6badbSSimon Glass	  devices. They are typically referenced by a phandle from another
2405fd6badbSSimon Glass	  device. When the device is started up, its power sequence can be
2415fd6badbSSimon Glass	  initiated.
2425fd6badbSSimon Glass
2435fd6badbSSimon Glassconfig SPL_PWRSEQ
2445fd6badbSSimon Glass	bool "Enable power-sequencing drivers for SPL"
2455fd6badbSSimon Glass	depends on PWRSEQ
2465fd6badbSSimon Glass	help
2475fd6badbSSimon Glass	  Power-sequencing drivers provide support for controlling power for
2485fd6badbSSimon Glass	  devices. They are typically referenced by a phandle from another
2495fd6badbSSimon Glass	  device. When the device is started up, its power sequence can be
2505fd6badbSSimon Glass	  initiated.
2515fd6badbSSimon Glass
2521cdd9412SStefan Roeseconfig PCA9551_LED
2531cdd9412SStefan Roese	bool "Enable PCA9551 LED driver"
2541cdd9412SStefan Roese	help
2551cdd9412SStefan Roese	  Enable driver for PCA9551 LED controller. This controller
2561cdd9412SStefan Roese	  is connected via I2C. So I2C needs to be enabled.
2571cdd9412SStefan Roese
2581cdd9412SStefan Roeseconfig PCA9551_I2C_ADDR
2591cdd9412SStefan Roese	hex "I2C address of PCA9551 LED controller"
2601cdd9412SStefan Roese	depends on PCA9551_LED
2611cdd9412SStefan Roese	default 0x60
2621cdd9412SStefan Roese	help
2631cdd9412SStefan Roese	  The I2C address of the PCA9551 LED controller.
264f9917454SSimon Glass
265bd3ee84aSStephen Warrenconfig TEGRA_CAR
266bd3ee84aSStephen Warren	bool "Enable support for the Tegra CAR driver"
267bd3ee84aSStephen Warren	depends on TEGRA_NO_BPMP
268bd3ee84aSStephen Warren	help
269bd3ee84aSStephen Warren	  The Tegra CAR (Clock and Reset Controller) is a HW module that
270bd3ee84aSStephen Warren	  controls almost all clocks and resets in a Tegra SoC.
271bd3ee84aSStephen Warren
27273dd5c4cSStephen Warrenconfig TEGRA186_BPMP
27373dd5c4cSStephen Warren	bool "Enable support for the Tegra186 BPMP driver"
27473dd5c4cSStephen Warren	depends on TEGRA186
27573dd5c4cSStephen Warren	help
27673dd5c4cSStephen Warren	  The Tegra BPMP (Boot and Power Management Processor) is a separate
27773dd5c4cSStephen Warren	  auxiliary CPU embedded into Tegra to perform power management work,
27873dd5c4cSStephen Warren	  and controls related features such as clocks, resets, power domains,
27973dd5c4cSStephen Warren	  PMIC I2C bus, etc. This driver provides the core low-level
28073dd5c4cSStephen Warren	  communication path by which feature-specific drivers (such as clock)
28173dd5c4cSStephen Warren	  can make requests to the BPMP. This driver is similar to an MFD
28273dd5c4cSStephen Warren	  driver in the Linux kernel.
28373dd5c4cSStephen Warren
28485056932SStefan Roeseconfig WINBOND_W83627
28585056932SStefan Roese	bool "Enable Winbond Super I/O driver"
28685056932SStefan Roese	help
28785056932SStefan Roese	  If you say Y here, you will get support for the Winbond
28885056932SStefan Roese	  W83627 Super I/O driver. This can be used to enable the
28985056932SStefan Roese	  legacy UART or other devices in the Winbond Super IO chips
29085056932SStefan Roese	  on X86 platforms.
29185056932SStefan Roese
292fcf5c041SMiao Yanconfig QFW
293fcf5c041SMiao Yan	bool
294fcf5c041SMiao Yan	help
295fcf5c041SMiao Yan	  Hidden option to enable QEMU fw_cfg interface. This will be selected by
29618686590SMiao Yan	  either CONFIG_CMD_QFW or CONFIG_GENERATE_ACPI_TABLE.
297fcf5c041SMiao Yan
298d7e28918Smario.six@gdsys.ccconfig I2C_EEPROM
299d7e28918Smario.six@gdsys.cc	bool "Enable driver for generic I2C-attached EEPROMs"
300d7e28918Smario.six@gdsys.cc	depends on MISC
301d7e28918Smario.six@gdsys.cc	help
302d7e28918Smario.six@gdsys.cc	  Enable a generic driver for EEPROMs attached via I2C.
303e3f24d4fSAdam Ford
304e3f24d4fSAdam Fordif I2C_EEPROM
305e3f24d4fSAdam Ford
306e3f24d4fSAdam Fordconfig SYS_I2C_EEPROM_ADDR
307e3f24d4fSAdam Ford	hex "Chip address of the EEPROM device"
308e3f24d4fSAdam Ford	default 0
309e3f24d4fSAdam Ford
310e3f24d4fSAdam Fordconfig SYS_I2C_EEPROM_BUS
311e3f24d4fSAdam Ford	int "I2C bus of the EEPROM device."
312e3f24d4fSAdam Ford	default 0
313e3f24d4fSAdam Ford
314e3f24d4fSAdam Fordconfig SYS_EEPROM_SIZE
315e3f24d4fSAdam Ford	int "Size in bytes of the EEPROM device"
316e3f24d4fSAdam Ford	default 256
317e3f24d4fSAdam Ford
318e3f24d4fSAdam Fordconfig SYS_EEPROM_PAGE_WRITE_BITS
319e3f24d4fSAdam Ford	int "Number of bits used to address bytes in a single page"
320e3f24d4fSAdam Ford	default 0
321e3f24d4fSAdam Ford	help
322e3f24d4fSAdam Ford	  The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
323e3f24d4fSAdam Ford	  A 64 byte page, for example would require six bits.
324e3f24d4fSAdam Ford
325e3f24d4fSAdam Fordconfig SYS_EEPROM_PAGE_WRITE_DELAY_MS
326e3f24d4fSAdam Ford	int "Number of milliseconds to delay between page writes"
327e3f24d4fSAdam Ford	default 0
328e3f24d4fSAdam Ford
329e3f24d4fSAdam Fordconfig SYS_I2C_EEPROM_ADDR_LEN
330e3f24d4fSAdam Ford	int "Length in bytes of the EEPROM memory array address"
331e3f24d4fSAdam Ford	default 1
332e3f24d4fSAdam Ford	help
333e3f24d4fSAdam Ford	  Note: This is NOT the chip address length!
334e3f24d4fSAdam Ford
335e3f24d4fSAdam Fordconfig SYS_I2C_EEPROM_ADDR_OVERFLOW
336e3f24d4fSAdam Ford	hex "EEPROM Address Overflow"
337e3f24d4fSAdam Ford	default 0
338e3f24d4fSAdam Ford	help
339e3f24d4fSAdam Ford	  EEPROM chips that implement "address overflow" are ones
340e3f24d4fSAdam Ford	  like Catalyst 24WC04/08/16 which has 9/10/11 bits of
341e3f24d4fSAdam Ford	  address and the extra bits end up in the "chip address" bit
342e3f24d4fSAdam Ford	  slots. This makes a 24WC08 (1Kbyte) chip look like four 256
343e3f24d4fSAdam Ford	  byte chips.
344e3f24d4fSAdam Ford
345e3f24d4fSAdam Fordendif
346e3f24d4fSAdam Ford
347e3f24d4fSAdam Ford
3480b11dbf7SMasahiro Yamadaendmenu
349