xref: /linux/drivers/platform/cznic/Kconfig (revision c7da0d4e33ce262dbed7b9ae4cf013aad0f541f6)
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	depends on OF
20	depends on GPIOLIB
21	depends on RTC_CLASS
22	select GPIOLIB_IRQCHIP
23	help
24	  Say Y here to add support for the features implemented by the
25	  microcontroller on the CZ.NIC's Turris Omnia SOHO router.
26	  The features include:
27	  - board poweroff into true low power mode (with voltage regulators
28	    disabled) and the ability to configure wake up from this mode (via
29	    rtcwake)
30	  - GPIO pins
31	    - to get front button press events (the front button can be
32	      configured either to generate press events to the CPU or to change
33	      front LEDs panel brightness)
34	    - to enable / disable USB port voltage regulators and to detect
35	      USB overcurrent
36	    - to detect MiniPCIe / mSATA card presence in MiniPCIe port 0
37	    - to configure resets of various peripherals on board revisions 32+
38	    - to enable / disable the VHV voltage regulator to the SOC in order
39	      to be able to program SOC's OTP on board revisions 32+
40	    - to get input from the LED output pins of the WAN ethernet PHY, LAN
41	      switch and MiniPCIe ports
42	  Other features can be enabled by subsequent config options.
43	  To compile this driver as a module, choose M here; the module will be
44	  called turris-omnia-mcu.
45
46if TURRIS_OMNIA_MCU
47
48config TURRIS_OMNIA_MCU_WATCHDOG
49	bool "Turris Omnia MCU watchdog"
50	default y
51	depends on WATCHDOG
52	select WATCHDOG_CORE
53	help
54	  Say Y here to add support for watchdog provided by CZ.NIC's Turris
55	  Omnia MCU.
56
57config TURRIS_OMNIA_MCU_TRNG
58	bool "Turris Omnia MCU true random number generator"
59	default y
60	depends on HW_RANDOM
61	help
62	  Say Y here to add support for the true random number generator
63	  provided by CZ.NIC's Turris Omnia MCU.
64
65endif # TURRIS_OMNIA_MCU
66
67endif # CZNIC_PLATFORMS
68