Kconfig 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. menuconfig CZNIC_PLATFORMS
  7. bool "Platform support for CZ.NIC's Turris hardware"
  8. help
  9. Say Y here to be able to choose driver support for CZ.NIC's Turris
  10. devices. This option alone does not add any kernel code.
  11. if CZNIC_PLATFORMS
  12. config TURRIS_OMNIA_MCU
  13. tristate "Turris Omnia MCU driver"
  14. depends on MACH_ARMADA_38X || COMPILE_TEST
  15. depends on I2C
  16. help
  17. Say Y here to add support for the features implemented by the
  18. microcontroller on the CZ.NIC's Turris Omnia SOHO router.
  19. This option only enables the core part of the driver. Specific
  20. features can be enabled by subsequent config options.
  21. To compile this driver as a module, choose M here; the module will be
  22. called turris-omnia-mcu.
  23. if TURRIS_OMNIA_MCU
  24. config TURRIS_OMNIA_MCU_GPIO
  25. bool "Turris Omnia MCU GPIOs"
  26. default y
  27. depends on GPIOLIB
  28. depends on OF
  29. select GPIOLIB_IRQCHIP
  30. help
  31. Say Y here to add support for controlling MCU GPIO pins and receiving
  32. MCU interrupts on CZ.NIC's Turris Omnia.
  33. This enables you to
  34. - get front button press events (the front button can be configured
  35. either to generate press events to the CPU or to change front LEDs
  36. panel brightness),
  37. - enable / disable USB port voltage regulators and to detect USB
  38. overcurrent,
  39. - detect MiniPCIe / mSATA card presence in MiniPCIe port 0,
  40. - configure resets of various peripherals on board revisions 32+,
  41. - enable / disable the VHV voltage regulator to the SOC in order to be
  42. able to program SOC's OTP on board revisions 32+,
  43. - get input from the LED output pins of the WAN ethernet PHY, LAN
  44. switch and MiniPCIe ports.
  45. config TURRIS_OMNIA_MCU_SYSOFF_WAKEUP
  46. bool "Turris Omnia MCU system off and RTC wakeup"
  47. default y
  48. depends on RTC_CLASS
  49. help
  50. Say Y here to add support for CZ.NIC's Turris Omnia board poweroff
  51. into true low power mode (with voltage regulators disabled) and the
  52. ability to configure wake up from this mode (via rtcwake).
  53. config TURRIS_OMNIA_MCU_WATCHDOG
  54. bool "Turris Omnia MCU watchdog"
  55. default y
  56. depends on WATCHDOG
  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. config TURRIS_OMNIA_MCU_TRNG
  62. bool "Turris Omnia MCU true random number generator"
  63. default y
  64. depends on TURRIS_OMNIA_MCU_GPIO
  65. depends on HW_RANDOM=y || HW_RANDOM=TURRIS_OMNIA_MCU
  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. endif # TURRIS_OMNIA_MCU
  70. endif # CZNIC_PLATFORMS