summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-03-19 14:57:40 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-24 00:36:10 +0000
commitbad9c04577b2924848f3003eab8eaeb41c1e60b4 (patch)
tree3d48e016113d8d88f85dd244271b1450ff7f4bb9 /zephyr/Kconfig
parent9327c77b1ce762084b16a16233f79e7ac61161c4 (diff)
downloadchrome-ec-bad9c04577b2924848f3003eab8eaeb41c1e60b4.tar.gz
zephyr: Add Kconfig for PWM display backlight
Add a Kconfig option to enable display backlight controlled by a PWM signal connected directly to the EC chipset. BUG=b:182398910 BRANCH=None TEST=zmake testall Change-Id: I0e544116f3b467505f2ecf742c9708c20e24b275 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2779747 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r--zephyr/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 114b03cc54..7aa93db1ca 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -697,6 +697,15 @@ config PLATFORM_EC_PWM
support variable brightness LEDs, backlight controls, and
variable-speed fans.
+config PLATFORM_EC_PWM_DISPLIGHT
+ bool "PWM display backlight"
+ depends on PLATFORM_EC_PWM
+ help
+ Enables display backlight controlled by a PWM signal connected
+ directly to the EC chipset. The board files must define the C
+ reference PWM_CH_DISPLIGHT to the PWM channel used for the
+ display backlight control.
+
config PLATFORM_EC_RTC
bool "Real-time clock (RTC)"
default y