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