Kconfig 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. menuconfig LEDS_TRIGGERS
  2. bool "LED Trigger support"
  3. depends on LEDS_CLASS
  4. help
  5. This option enables trigger support for the leds class.
  6. These triggers allow kernel events to drive the LEDs and can
  7. be configured via sysfs. If unsure, say Y.
  8. if LEDS_TRIGGERS
  9. config LEDS_TRIGGER_TIMER
  10. tristate "LED Timer Trigger"
  11. depends on LEDS_TRIGGERS
  12. help
  13. This allows LEDs to be controlled by a programmable timer
  14. via sysfs. Some LED hardware can be programmed to start
  15. blinking the LED without any further software interaction.
  16. For more details read Documentation/leds/leds-class.txt.
  17. If unsure, say Y.
  18. config LEDS_TRIGGER_ONESHOT
  19. tristate "LED One-shot Trigger"
  20. depends on LEDS_TRIGGERS
  21. help
  22. This allows LEDs to blink in one-shot pulses with parameters
  23. controlled via sysfs. It's useful to notify the user on
  24. sporadic events, when there are no clear begin and end trap points,
  25. or on dense events, where this blinks the LED at constant rate if
  26. rearmed continuously.
  27. It also shows how to use the led_blink_set_oneshot() function.
  28. If unsure, say Y.
  29. config LEDS_TRIGGER_DISK
  30. bool "LED Disk Trigger"
  31. depends on IDE_GD_ATA || ATA
  32. depends on LEDS_TRIGGERS
  33. help
  34. This allows LEDs to be controlled by disk activity.
  35. If unsure, say Y.
  36. config LEDS_TRIGGER_MTD
  37. bool "LED MTD (NAND/NOR) Trigger"
  38. depends on MTD
  39. depends on LEDS_TRIGGERS
  40. help
  41. This allows LEDs to be controlled by MTD activity.
  42. If unsure, say N.
  43. config LEDS_TRIGGER_HEARTBEAT
  44. tristate "LED Heartbeat Trigger"
  45. depends on LEDS_TRIGGERS
  46. help
  47. This allows LEDs to be controlled by a CPU load average.
  48. The flash frequency is a hyperbolic function of the 1-minute
  49. load average.
  50. If unsure, say Y.
  51. config LEDS_TRIGGER_BACKLIGHT
  52. tristate "LED backlight Trigger"
  53. depends on LEDS_TRIGGERS
  54. help
  55. This allows LEDs to be controlled as a backlight device: they
  56. turn off and on when the display is blanked and unblanked.
  57. If unsure, say N.
  58. config LEDS_TRIGGER_CPU
  59. bool "LED CPU Trigger"
  60. depends on LEDS_TRIGGERS
  61. help
  62. This allows LEDs to be controlled by active CPUs. This shows
  63. the active CPUs across an array of LEDs so you can see which
  64. CPUs are active on the system at any given moment.
  65. If unsure, say N.
  66. config LEDS_TRIGGER_GPIO
  67. tristate "LED GPIO Trigger"
  68. depends on LEDS_TRIGGERS
  69. depends on GPIOLIB || COMPILE_TEST
  70. help
  71. This allows LEDs to be controlled by gpio events. It's good
  72. when using gpios as switches and triggering the needed LEDs
  73. from there. One use case is n810's keypad LEDs that could
  74. be triggered by this trigger when user slides up to show
  75. keypad.
  76. If unsure, say N.
  77. config LEDS_TRIGGER_DEFAULT_ON
  78. tristate "LED Default ON Trigger"
  79. depends on LEDS_TRIGGERS
  80. help
  81. This allows LEDs to be initialised in the ON state.
  82. If unsure, say Y.
  83. comment "iptables trigger is under Netfilter config (LED target)"
  84. depends on LEDS_TRIGGERS
  85. config LEDS_TRIGGER_TRANSIENT
  86. tristate "LED Transient Trigger"
  87. depends on LEDS_TRIGGERS
  88. help
  89. This allows one time activation of a transient state on
  90. GPIO/PWM based hardware.
  91. If unsure, say Y.
  92. config LEDS_TRIGGER_CAMERA
  93. tristate "LED Camera Flash/Torch Trigger"
  94. depends on LEDS_TRIGGERS
  95. help
  96. This allows LEDs to be controlled as a camera flash/torch device.
  97. This enables direct flash/torch on/off by the driver, kernel space.
  98. If unsure, say Y.
  99. config LEDS_TRIGGER_PANIC
  100. bool "LED Panic Trigger"
  101. depends on LEDS_TRIGGERS
  102. help
  103. This allows LEDs to be configured to blink on a kernel panic.
  104. Enabling this option will allow to mark certain LEDs as panic indicators,
  105. allowing to blink them on a kernel panic, even if they are set to
  106. a different trigger.
  107. If unsure, say Y.
  108. endif # LEDS_TRIGGERS