summaryrefslogtreecommitdiff
path: root/baseboard/brya/baseboard.h
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2021-03-09 23:07:32 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-10 20:01:18 +0000
commit3af50a240bcbe655706611296c4c9487f15b42e1 (patch)
tree460a6a648f7bad8c394e236ffef411266c10ad69 /baseboard/brya/baseboard.h
parent4e54ac0f054d39fd269b164d615ba4d08a357e14 (diff)
downloadchrome-ec-3af50a240bcbe655706611296c4c9487f15b42e1.tar.gz
brya: Control display backlight based on state of lid switch
This change enables CONFIG_BACKLIGHT_LID so that the EC disables the panel backlight when lid is closed. GPIO_ENABLE_BACKLIGHT is defined to allow common code to control the required GPIO. BUG=b:173575131 BRANCH=None TEST=make -j buildall Signed-off-by: Caveh Jalali <caveh@chromium.org> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: I3c54287d716b66696cb41ba4433a9d704f01f674 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2747707 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'baseboard/brya/baseboard.h')
-rw-r--r--baseboard/brya/baseboard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/baseboard/brya/baseboard.h b/baseboard/brya/baseboard.h
index fdf31644d9..4d4a56067c 100644
--- a/baseboard/brya/baseboard.h
+++ b/baseboard/brya/baseboard.h
@@ -108,6 +108,9 @@
#define CONFIG_I2C
#define CONFIG_I2C_CONTROLLER
+/* EDP back-light control defines */
+#define CONFIG_BACKLIGHT_LID
+
/* USB Type C and USB PD defines */
/* Enable the new USB-C PD stack */
#define CONFIG_USB_PD_TCPMV2