brintos

brintos / linux-shallow public Read only

0
0
Text · 2.6 KiB · 49c383e Raw
81 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2#3# For a description of the syntax of this configuration file,4# see Documentation/kbuild/kconfig-language.rst.5#6 7menuconfig CZNIC_PLATFORMS8	bool "Platform support for CZ.NIC's Turris hardware"9	help10	  Say Y here to be able to choose driver support for CZ.NIC's Turris11	  devices. This option alone does not add any kernel code.12 13if CZNIC_PLATFORMS14 15config TURRIS_OMNIA_MCU16	tristate "Turris Omnia MCU driver"17	depends on MACH_ARMADA_38X || COMPILE_TEST18	depends on I2C19	help20	  Say Y here to add support for the features implemented by the21	  microcontroller on the CZ.NIC's Turris Omnia SOHO router.22	  This option only enables the core part of the driver. Specific23	  features can be enabled by subsequent config options.24	  To compile this driver as a module, choose M here; the module will be25	  called turris-omnia-mcu.26 27if TURRIS_OMNIA_MCU28 29config TURRIS_OMNIA_MCU_GPIO30	bool "Turris Omnia MCU GPIOs"31	default y32	depends on GPIOLIB33	depends on OF34	select GPIOLIB_IRQCHIP35	help36	  Say Y here to add support for controlling MCU GPIO pins and receiving37	  MCU interrupts on CZ.NIC's Turris Omnia.38	  This enables you to39	  - get front button press events (the front button can be configured40	    either to generate press events to the CPU or to change front LEDs41	    panel brightness),42	  - enable / disable USB port voltage regulators and to detect USB43	    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 be47	    able to program SOC's OTP on board revisions 32+,48	  - get input from the LED output pins of the WAN ethernet PHY, LAN49	    switch and MiniPCIe ports.50 51config TURRIS_OMNIA_MCU_SYSOFF_WAKEUP52	bool "Turris Omnia MCU system off and RTC wakeup"53	default y54	depends on RTC_CLASS55	help56	  Say Y here to add support for CZ.NIC's Turris Omnia board poweroff57	  into true low power mode (with voltage regulators disabled) and the58	  ability to configure wake up from this mode (via rtcwake).59 60config TURRIS_OMNIA_MCU_WATCHDOG61	bool "Turris Omnia MCU watchdog"62	default y63	depends on WATCHDOG64	select WATCHDOG_CORE65	help66	  Say Y here to add support for watchdog provided by CZ.NIC's Turris67	  Omnia MCU.68 69config TURRIS_OMNIA_MCU_TRNG70	bool "Turris Omnia MCU true random number generator"71	default y72	depends on TURRIS_OMNIA_MCU_GPIO73	depends on HW_RANDOM=y || HW_RANDOM=TURRIS_OMNIA_MCU74	help75	  Say Y here to add support for the true random number generator76	  provided by CZ.NIC's Turris Omnia MCU.77 78endif # TURRIS_OMNIA_MCU79 80endif # CZNIC_PLATFORMS81