Kconfig 2.7 KB

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