summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Lu <devin.lu@quantatw.com>2019-07-25 15:42:12 +0800
committerJustin TerAvest <teravest@chromium.org>2019-07-29 14:37:19 +0000
commitb0bac9211ef3bd10115114dd7bac4a7fe643fe55 (patch)
tree7d482fb0202c3579a2f5b7363b3005576ab0a848
parentb1adf987395577737781b10ef96581cff8381d1a (diff)
downloadchrome-ec-b0bac9211ef3bd10115114dd7bac4a7fe643fe55.tar.gz
dorp: add support keyboard backlight
Currently Dorp use the same firmware with Meep, enable keyboard backlight support from Meep. BUG=b:138177049, b:138413969 BRANCH=octopus TEST=make buildall -j, make sure ec console kblight can adjust keyboard backlight brightness. Change-Id: Id624e31a85c296468199e4532b758fd4777e70d2 Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1716681 Reviewed-by: Marco Chen <marcochen@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Justin TerAvest <teravest@chromium.org>
-rw-r--r--board/meep/board.h3
-rw-r--r--board/meep/gpio.inc4
2 files changed, 4 insertions, 3 deletions
diff --git a/board/meep/board.h b/board/meep/board.h
index f1ab68ae9a..979799d458 100644
--- a/board/meep/board.h
+++ b/board/meep/board.h
@@ -37,7 +37,8 @@
#define CONFIG_LID_ANGLE_UPDATE
#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL
#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL
-
+#define CONFIG_PWM
+#define CONFIG_PWM_KBLIGHT
#define CONFIG_TEMP_SENSOR
#define CONFIG_THERMISTOR
#define CONFIG_STEINHART_HART_3V3_13K7_47K_4050B
diff --git a/board/meep/gpio.inc b/board/meep/gpio.inc
index d1ad178ebd..d1d29a6031 100644
--- a/board/meep/gpio.inc
+++ b/board/meep/gpio.inc
@@ -135,8 +135,8 @@ GPIO(BAT_LED_AMBER_L, PIN(C, 3), GPIO_OUT_HIGH) /* LED_1_L */
GPIO(BAT_LED_WHITE_L, PIN(C, 4), GPIO_OUT_HIGH) /* LED_2_L */
GPIO(PWR_LED_WHITE_L, PIN(D, 7), GPIO_OUT_HIGH) /* LED_3_L */
-/* Not implemented in hardware */
-UNIMPLEMENTED(KB_BL_PWR_EN)
+/* Keyboard Backlight */
+GPIO(KB_BL_PWR_EN, PIN(6, 2), GPIO_OUT_LOW)
/* MKBP event synchronization */
GPIO(EC_INT_L, PIN(9, 4), GPIO_ODR_HIGH) /* EC_AP_INT_ODL */