diff options
author | Furquan Shaikh <furquan@google.com> | 2021-03-09 23:07:32 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-10 20:01:18 +0000 |
commit | 3af50a240bcbe655706611296c4c9487f15b42e1 (patch) | |
tree | 460a6a648f7bad8c394e236ffef411266c10ad69 /board/brya | |
parent | 4e54ac0f054d39fd269b164d615ba4d08a357e14 (diff) | |
download | chrome-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 'board/brya')
-rw-r--r-- | board/brya/board.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/brya/board.h b/board/brya/board.h index e9d2243bfb..bf902e976c 100644 --- a/board/brya/board.h +++ b/board/brya/board.h @@ -53,8 +53,15 @@ #define PD_MAX_CURRENT_MA 3000 #define PD_MAX_VOLTAGE_MV 20000 +/* + * Macros for GPIO signals used in common code that don't match the + * schematic names. Signal names in gpio.inc match the schematic and are + * then redefined here to so it's more clear which signal is being used for + * which purpose. + */ #define GPIO_AC_PRESENT GPIO_ACOK_EC_OD #define GPIO_CPU_PROCHOT GPIO_EC_PROCHOT_ODL +#define GPIO_ENABLE_BACKLIGHT GPIO_EC_EN_EDP_BL #define GPIO_ENTERING_RW GPIO_EC_ENTERING_RW #define GPIO_KBD_KSO2 GPIO_EC_KSO_02_INV #define GPIO_LID_OPEN GPIO_LID_OPEN_OD |