summaryrefslogtreecommitdiff
path: root/board/dojo
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2022-01-26 15:00:13 -0700
committerCommit Bot <commit-bot@chromium.org>2022-01-27 18:53:44 +0000
commitc590e40132ac94719cf154258881a450f72201e9 (patch)
tree963d6d519fbcb1ec234fd0fd890b84cc8977dbf5 /board/dojo
parent3669703252e152a43df9dd4dadc5d2d702660bab (diff)
downloadchrome-ec-c590e40132ac94719cf154258881a450f72201e9.tar.gz
Zephyr: Create a CONFIG for keyboard backlight enable
Rather than relying on the GPIO to be defined in the board's h file, instead define a CONFIG option which can more easily be used with the zephyr build. BRANCH=None BUG=b:216496315 TEST=zmake testall, compare_builds.sh on three boards with changed .h files and two ranom boards that don't use the config Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I9b8970d6a094a10247a4fb3b7c01fdfea4ded3e9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3418857 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/dojo')
-rw-r--r--board/dojo/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/dojo/board.h b/board/dojo/board.h
index d4ef3730d3..50c03923bc 100644
--- a/board/dojo/board.h
+++ b/board/dojo/board.h
@@ -40,6 +40,7 @@
#define CONFIG_BATT_FULL_CHIPSET_OFF_INPUT_LIMIT_MV 9000
/* Keyboard */
+#define CONFIG_KBLIGHT_ENABLE_PIN
#define GPIO_EN_KEYBOARD_BACKLIGHT GPIO_EN_KB_BL
#define CONFIG_KEYBOARD_REFRESH_ROW3