xref: /linux/drivers/platform/cznic/Kconfig (revision dfa556e45ae9ecc199e598222debc8f1883a7cce)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# For a description of the syntax of this configuration file,
4# see Documentation/kbuild/kconfig-language.rst.
5#
6
7menuconfig CZNIC_PLATFORMS
8	bool "Platform support for CZ.NIC's Turris hardware"
9	help
10	  Say Y here to be able to choose driver support for CZ.NIC's Turris
11	  devices. This option alone does not add any kernel code.
12
13if CZNIC_PLATFORMS
14
15config TURRIS_OMNIA_MCU
16	tristate "Turris Omnia MCU driver"
17	depends on MACH_ARMADA_38X || COMPILE_TEST
18	depends on I2C
19	select GPIOLIB
20	select GPIOLIB_IRQCHIP
21	help
22	  Say Y here to add support for the features implemented by the
23	  microcontroller on the CZ.NIC's Turris Omnia SOHO router.
24	  The features include:
25	  - GPIO pins
26	    - to get front button press events (the front button can be
27	      configured either to generate press events to the CPU or to change
28	      front LEDs panel brightness)
29	    - to enable / disable USB port voltage regulators and to detect
30	      USB overcurrent
31	    - to detect MiniPCIe / mSATA card presence in MiniPCIe port 0
32	    - to configure resets of various peripherals on board revisions 32+
33	    - to enable / disable the VHV voltage regulator to the SOC in order
34	      to be able to program SOC's OTP on board revisions 32+
35	    - to get input from the LED output pins of the WAN ethernet PHY, LAN
36	      switch and MiniPCIe ports
37	  To compile this driver as a module, choose M here; the module will be
38	  called turris-omnia-mcu.
39
40endif # CZNIC_PLATFORMS
41