xref: /rk3399_rockchip-uboot/drivers/misc/Kconfig (revision 2bb8d138c1bac0de340834b9b9f3c11d060d15e8)
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
34ca844dd8SThomas Chouconfig ALTERA_SYSID
35ca844dd8SThomas Chou	bool "Altera Sysid support"
36ca844dd8SThomas Chou	depends on MISC
37ca844dd8SThomas Chou	help
38ca844dd8SThomas Chou	  Select this to enable a sysid for Altera devices. Please find
39ca844dd8SThomas Chou	  details on the "Embedded Peripherals IP User Guide" of Altera.
40ca844dd8SThomas Chou
41aa5eb9a3SMarek Behúnconfig ATSHA204A
42aa5eb9a3SMarek Behún	bool "Support for Atmel ATSHA204A module"
43aa5eb9a3SMarek Behún	depends on MISC
44aa5eb9a3SMarek Behún	help
45aa5eb9a3SMarek Behún	   Enable support for I2C connected Atmel's ATSHA204A
46aa5eb9a3SMarek Behún	   CryptoAuthentication module found for example on the Turris Omnia
47aa5eb9a3SMarek Behún	   board.
48aa5eb9a3SMarek Behún
4949cd8e85SPhilipp Tomsichconfig ROCKCHIP_EFUSE
5049cd8e85SPhilipp Tomsich        bool "Rockchip e-fuse support"
5149cd8e85SPhilipp Tomsich	depends on MISC
5249cd8e85SPhilipp Tomsich	help
5349cd8e85SPhilipp Tomsich	  Enable (read-only) access for the e-fuse block found in Rockchip
5449cd8e85SPhilipp Tomsich	  SoCs: accesses can either be made using byte addressing and a length
5549cd8e85SPhilipp Tomsich	  or through child-nodes that are generated based on the e-fuse map
5649cd8e85SPhilipp Tomsich	  retrieved from the DTS.
5749cd8e85SPhilipp Tomsich
5849cd8e85SPhilipp Tomsich	  This driver currently supports the RK3399 only, but can easily be
5949cd8e85SPhilipp Tomsich	  extended (by porting the read function from the Linux kernel sources)
6049cd8e85SPhilipp Tomsich	  to support other recent Rockchip devices.
6149cd8e85SPhilipp Tomsich
624973d825SFinley Xiaoconfig ROCKCHIP_OTP
634973d825SFinley Xiao	bool "Rockchip OTP Support"
644973d825SFinley Xiao	depends on MISC
654973d825SFinley Xiao	help
664973d825SFinley Xiao	  This is a simple drive to dump specified values of Rockchip SoC
674973d825SFinley Xiao	  from otp, such as cpu-leakage.
684973d825SFinley Xiao
69*2bb8d138SSimon Xueconfig ROCKCHIP_HW_DECOMPRESS
70*2bb8d138SSimon Xue	bool "Rockchip HardWare Decompress Support"
71*2bb8d138SSimon Xue	depends on MISC && IRQ
72*2bb8d138SSimon Xue	help
73*2bb8d138SSimon Xue	  This driver support Decompress IP built-in Rockchip SoC, support
74*2bb8d138SSimon Xue	  LZ4, GZIP, PNG, ZLIB.
75*2bb8d138SSimon Xue
76*2bb8d138SSimon Xueconfig SPL_ROCKCHIP_HW_DECOMPRESS
77*2bb8d138SSimon Xue	bool "Rockchip HardWare Decompress Support"
78*2bb8d138SSimon Xue	depends on MISC
79*2bb8d138SSimon Xue	help
80*2bb8d138SSimon Xue	  This driver support Decompress IP built-in Rockchip SoC, support
81*2bb8d138SSimon Xue	  LZ4, GZIP, PNG, ZLIB.
82*2bb8d138SSimon Xue
8352ed8851SJason Zhuconfig SPL_ROCKCHIP_SECURE_OTP
8452ed8851SJason Zhu	bool "Rockchip Secure OTP Support in spl"
8552ed8851SJason Zhu	depends on SPL_MISC
8652ed8851SJason Zhu	help
8752ed8851SJason Zhu	  Support read & write secure otp in spl.
8852ed8851SJason Zhu
896fb9ac15SSimon Glassconfig CMD_CROS_EC
906fb9ac15SSimon Glass	bool "Enable crosec command"
916fb9ac15SSimon Glass	depends on CROS_EC
926fb9ac15SSimon Glass	help
936fb9ac15SSimon Glass	  Enable command-line access to the Chrome OS EC (Embedded
946fb9ac15SSimon Glass	  Controller). This provides the 'crosec' command which has
956fb9ac15SSimon Glass	  a number of sub-commands for performing EC tasks such as
966fb9ac15SSimon Glass	  updating its flash, accessing a small saved context area
976fb9ac15SSimon Glass	  and talking to the I2C bus behind the EC (if there is one).
986fb9ac15SSimon Glass
996fb9ac15SSimon Glassconfig CROS_EC
1006fb9ac15SSimon Glass	bool "Enable Chrome OS EC"
1016fb9ac15SSimon Glass	help
1026fb9ac15SSimon Glass	  Enable access to the Chrome OS EC. This is a separate
1036fb9ac15SSimon Glass	  microcontroller typically available on a SPI bus on Chromebooks. It
1046fb9ac15SSimon Glass	  provides access to the keyboard, some internal storage and may
1056fb9ac15SSimon Glass	  control access to the battery and main PMIC depending on the
1066fb9ac15SSimon Glass	  device. You can use the 'crosec' command to access it.
1076fb9ac15SSimon Glass
1086fb9ac15SSimon Glassconfig CROS_EC_I2C
1096fb9ac15SSimon Glass	bool "Enable Chrome OS EC I2C driver"
1106fb9ac15SSimon Glass	depends on CROS_EC
1116fb9ac15SSimon Glass	help
1126fb9ac15SSimon Glass	  Enable I2C access to the Chrome OS EC. This is used on older
1136fb9ac15SSimon Glass	  ARM Chromebooks such as snow and spring before the standard bus
1146fb9ac15SSimon Glass	  changed to SPI. The EC will accept commands across the I2C using
1156fb9ac15SSimon Glass	  a special message protocol, and provide responses.
1166fb9ac15SSimon Glass
1176fb9ac15SSimon Glassconfig CROS_EC_LPC
1186fb9ac15SSimon Glass	bool "Enable Chrome OS EC LPC driver"
1196fb9ac15SSimon Glass	depends on CROS_EC
1206fb9ac15SSimon Glass	help
1216fb9ac15SSimon Glass	  Enable I2C access to the Chrome OS EC. This is used on x86
1226fb9ac15SSimon Glass	  Chromebooks such as link and falco. The keyboard is provided
1236fb9ac15SSimon Glass	  through a legacy port interface, so on x86 machines the main
1246fb9ac15SSimon Glass	  function of the EC is power and thermal management.
1256fb9ac15SSimon Glass
12647cb8c65SSimon Glassconfig CROS_EC_SANDBOX
12747cb8c65SSimon Glass	bool "Enable Chrome OS EC sandbox driver"
12847cb8c65SSimon Glass	depends on CROS_EC && SANDBOX
12947cb8c65SSimon Glass	help
13047cb8c65SSimon Glass	  Enable a sandbox emulation of the Chrome OS EC. This supports
13147cb8c65SSimon Glass	  keyboard (use the -l flag to enable the LCD), verified boot context,
13247cb8c65SSimon Glass	  EC flash read/write/erase support and a few other things. It is
13347cb8c65SSimon Glass	  enough to perform a Chrome OS verified boot on sandbox.
13447cb8c65SSimon Glass
1356fb9ac15SSimon Glassconfig CROS_EC_SPI
1366fb9ac15SSimon Glass	bool "Enable Chrome OS EC SPI driver"
1376fb9ac15SSimon Glass	depends on CROS_EC
1386fb9ac15SSimon Glass	help
1396fb9ac15SSimon Glass	  Enable SPI access to the Chrome OS EC. This is used on newer
1406fb9ac15SSimon Glass	  ARM Chromebooks such as pit, pi and nyan-big. The SPI interface
1416fb9ac15SSimon Glass	  provides a faster and more robust interface than I2C but the bugs
1426fb9ac15SSimon Glass	  are less interesting.
1436fb9ac15SSimon Glass
144879704d8SSimon Glassconfig DS4510
145879704d8SSimon Glass	bool "Enable support for DS4510 CPU supervisor"
146879704d8SSimon Glass	help
147879704d8SSimon Glass	  Enable support for the Maxim DS4510 CPU supervisor. It has an
148879704d8SSimon Glass	  integrated 64-byte EEPROM, four programmable non-volatile I/O pins
149879704d8SSimon Glass	  and a configurable timer for the supervisor function. The device is
150879704d8SSimon Glass	  connected over I2C.
151879704d8SSimon Glass
152c12e0d93SPeng Fanconfig FSL_SEC_MON
153fe78378dSgaurav rana	bool "Enable FSL SEC_MON Driver"
154fe78378dSgaurav rana	help
155fe78378dSgaurav rana	  Freescale Security Monitor block is responsible for monitoring
156fe78378dSgaurav rana	  system states.
157fe78378dSgaurav rana	  Security Monitor can be transitioned on any security failures,
158fe78378dSgaurav rana	  like software violations or hardware security violations.
1591cdd9412SStefan Roese
1603e020f03SPeng Fanconfig MXC_OCOTP
1613e020f03SPeng Fan	bool "Enable MXC OCOTP Driver"
1623e020f03SPeng Fan	help
1633e020f03SPeng Fan	  If you say Y here, you will get support for the One Time
1643e020f03SPeng Fan	  Programmable memory pages that are stored on the some
1653e020f03SPeng Fan	  Freescale i.MX processors.
1663e020f03SPeng Fan
1674cf9e464SStefan Roeseconfig NUVOTON_NCT6102D
1684cf9e464SStefan Roese	bool "Enable Nuvoton NCT6102D Super I/O driver"
1694cf9e464SStefan Roese	help
1704cf9e464SStefan Roese	  If you say Y here, you will get support for the Nuvoton
1714cf9e464SStefan Roese	  NCT6102D Super I/O driver. This can be used to enable or
1724cf9e464SStefan Roese	  disable the legacy UART, the watchdog or other devices
1734cf9e464SStefan Roese	  in the Nuvoton Super IO chips on X86 platforms.
1744cf9e464SStefan Roese
1755fd6badbSSimon Glassconfig PWRSEQ
1765fd6badbSSimon Glass	bool "Enable power-sequencing drivers"
1775fd6badbSSimon Glass	depends on DM
1785fd6badbSSimon Glass	help
1795fd6badbSSimon Glass	  Power-sequencing drivers provide support for controlling power for
1805fd6badbSSimon Glass	  devices. They are typically referenced by a phandle from another
1815fd6badbSSimon Glass	  device. When the device is started up, its power sequence can be
1825fd6badbSSimon Glass	  initiated.
1835fd6badbSSimon Glass
1845fd6badbSSimon Glassconfig SPL_PWRSEQ
1855fd6badbSSimon Glass	bool "Enable power-sequencing drivers for SPL"
1865fd6badbSSimon Glass	depends on PWRSEQ
1875fd6badbSSimon Glass	help
1885fd6badbSSimon Glass	  Power-sequencing drivers provide support for controlling power for
1895fd6badbSSimon Glass	  devices. They are typically referenced by a phandle from another
1905fd6badbSSimon Glass	  device. When the device is started up, its power sequence can be
1915fd6badbSSimon Glass	  initiated.
1925fd6badbSSimon Glass
1931cdd9412SStefan Roeseconfig PCA9551_LED
1941cdd9412SStefan Roese	bool "Enable PCA9551 LED driver"
1951cdd9412SStefan Roese	help
1961cdd9412SStefan Roese	  Enable driver for PCA9551 LED controller. This controller
1971cdd9412SStefan Roese	  is connected via I2C. So I2C needs to be enabled.
1981cdd9412SStefan Roese
1991cdd9412SStefan Roeseconfig PCA9551_I2C_ADDR
2001cdd9412SStefan Roese	hex "I2C address of PCA9551 LED controller"
2011cdd9412SStefan Roese	depends on PCA9551_LED
2021cdd9412SStefan Roese	default 0x60
2031cdd9412SStefan Roese	help
2041cdd9412SStefan Roese	  The I2C address of the PCA9551 LED controller.
205f9917454SSimon Glass
206bd3ee84aSStephen Warrenconfig TEGRA_CAR
207bd3ee84aSStephen Warren	bool "Enable support for the Tegra CAR driver"
208bd3ee84aSStephen Warren	depends on TEGRA_NO_BPMP
209bd3ee84aSStephen Warren	help
210bd3ee84aSStephen Warren	  The Tegra CAR (Clock and Reset Controller) is a HW module that
211bd3ee84aSStephen Warren	  controls almost all clocks and resets in a Tegra SoC.
212bd3ee84aSStephen Warren
21373dd5c4cSStephen Warrenconfig TEGRA186_BPMP
21473dd5c4cSStephen Warren	bool "Enable support for the Tegra186 BPMP driver"
21573dd5c4cSStephen Warren	depends on TEGRA186
21673dd5c4cSStephen Warren	help
21773dd5c4cSStephen Warren	  The Tegra BPMP (Boot and Power Management Processor) is a separate
21873dd5c4cSStephen Warren	  auxiliary CPU embedded into Tegra to perform power management work,
21973dd5c4cSStephen Warren	  and controls related features such as clocks, resets, power domains,
22073dd5c4cSStephen Warren	  PMIC I2C bus, etc. This driver provides the core low-level
22173dd5c4cSStephen Warren	  communication path by which feature-specific drivers (such as clock)
22273dd5c4cSStephen Warren	  can make requests to the BPMP. This driver is similar to an MFD
22373dd5c4cSStephen Warren	  driver in the Linux kernel.
22473dd5c4cSStephen Warren
22585056932SStefan Roeseconfig WINBOND_W83627
22685056932SStefan Roese	bool "Enable Winbond Super I/O driver"
22785056932SStefan Roese	help
22885056932SStefan Roese	  If you say Y here, you will get support for the Winbond
22985056932SStefan Roese	  W83627 Super I/O driver. This can be used to enable the
23085056932SStefan Roese	  legacy UART or other devices in the Winbond Super IO chips
23185056932SStefan Roese	  on X86 platforms.
23285056932SStefan Roese
233fcf5c041SMiao Yanconfig QFW
234fcf5c041SMiao Yan	bool
235fcf5c041SMiao Yan	help
236fcf5c041SMiao Yan	  Hidden option to enable QEMU fw_cfg interface. This will be selected by
23718686590SMiao Yan	  either CONFIG_CMD_QFW or CONFIG_GENERATE_ACPI_TABLE.
238fcf5c041SMiao Yan
239d7e28918Smario.six@gdsys.ccconfig I2C_EEPROM
240d7e28918Smario.six@gdsys.cc	bool "Enable driver for generic I2C-attached EEPROMs"
241d7e28918Smario.six@gdsys.cc	depends on MISC
242d7e28918Smario.six@gdsys.cc	help
243d7e28918Smario.six@gdsys.cc	  Enable a generic driver for EEPROMs attached via I2C.
244e3f24d4fSAdam Ford
245e3f24d4fSAdam Fordif I2C_EEPROM
246e3f24d4fSAdam Ford
247e3f24d4fSAdam Fordconfig SYS_I2C_EEPROM_ADDR
248e3f24d4fSAdam Ford	hex "Chip address of the EEPROM device"
249e3f24d4fSAdam Ford	default 0
250e3f24d4fSAdam Ford
251e3f24d4fSAdam Fordconfig SYS_I2C_EEPROM_BUS
252e3f24d4fSAdam Ford	int "I2C bus of the EEPROM device."
253e3f24d4fSAdam Ford	default 0
254e3f24d4fSAdam Ford
255e3f24d4fSAdam Fordconfig SYS_EEPROM_SIZE
256e3f24d4fSAdam Ford	int "Size in bytes of the EEPROM device"
257e3f24d4fSAdam Ford	default 256
258e3f24d4fSAdam Ford
259e3f24d4fSAdam Fordconfig SYS_EEPROM_PAGE_WRITE_BITS
260e3f24d4fSAdam Ford	int "Number of bits used to address bytes in a single page"
261e3f24d4fSAdam Ford	default 0
262e3f24d4fSAdam Ford	help
263e3f24d4fSAdam Ford	  The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
264e3f24d4fSAdam Ford	  A 64 byte page, for example would require six bits.
265e3f24d4fSAdam Ford
266e3f24d4fSAdam Fordconfig SYS_EEPROM_PAGE_WRITE_DELAY_MS
267e3f24d4fSAdam Ford	int "Number of milliseconds to delay between page writes"
268e3f24d4fSAdam Ford	default 0
269e3f24d4fSAdam Ford
270e3f24d4fSAdam Fordconfig SYS_I2C_EEPROM_ADDR_LEN
271e3f24d4fSAdam Ford	int "Length in bytes of the EEPROM memory array address"
272e3f24d4fSAdam Ford	default 1
273e3f24d4fSAdam Ford	help
274e3f24d4fSAdam Ford	  Note: This is NOT the chip address length!
275e3f24d4fSAdam Ford
276e3f24d4fSAdam Fordconfig SYS_I2C_EEPROM_ADDR_OVERFLOW
277e3f24d4fSAdam Ford	hex "EEPROM Address Overflow"
278e3f24d4fSAdam Ford	default 0
279e3f24d4fSAdam Ford	help
280e3f24d4fSAdam Ford	  EEPROM chips that implement "address overflow" are ones
281e3f24d4fSAdam Ford	  like Catalyst 24WC04/08/16 which has 9/10/11 bits of
282e3f24d4fSAdam Ford	  address and the extra bits end up in the "chip address" bit
283e3f24d4fSAdam Ford	  slots. This makes a 24WC08 (1Kbyte) chip look like four 256
284e3f24d4fSAdam Ford	  byte chips.
285e3f24d4fSAdam Ford
286e3f24d4fSAdam Fordendif
287e3f24d4fSAdam Ford
288e3f24d4fSAdam Ford
2890b11dbf7SMasahiro Yamadaendmenu
290