blob: 5f27c4b5a73b65fcecd8e7c07e4e80c430259a64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
menuconfig PLATFORM_EC_LED_DT
bool "DT LED Support"
default y
depends on DT_HAS_CROS_EC_LED_POLICY_ENABLED
help
Enable devicetree based LED module supporting automatic control of the
battery and power LEDs.
if PLATFORM_EC_LED_DT
config PLATFORM_EC_LED_DT_GPIO
bool "DT LED Support (GPIO)"
default y
depends on DT_HAS_CROS_EC_GPIO_LED_PINS_ENABLED
help
Enable support for devicetree GPIO LEDs, requires a node using the
cros-ec,gpio-led-pins compatible.
config PLATFORM_EC_LED_DT_PWM
bool "DT LED Support (PWM)"
default y
depends on DT_HAS_CROS_EC_PWM_LED_PINS_ENABLED
select PWM
help
Enable support for devicetree PWM LEDs, requires a node using the
cros-ec,pwm-led-pins compatible.
endif
|