summaryrefslogtreecommitdiff
path: root/board/fennel/board.h
diff options
context:
space:
mode:
authorMike Lee <mike5@huaqin.corp-partner.google.com>2020-09-16 20:06:56 +0800
committerCommit Bot <commit-bot@chromium.org>2020-09-24 04:34:49 +0000
commitf4fbd68a2664e8d830fb00222023b841f6debac0 (patch)
tree8e0a48fc20bf7c3c2ea84e8cff9e59670d69cdd5 /board/fennel/board.h
parent48509706db2ab4e3987a600ea6676f581317e5fb (diff)
downloadchrome-ec-f4fbd68a2664e8d830fb00222023b841f6debac0.tar.gz
Fennel: Modify it8801 keyboard backlight driver and Enable keyboard backlight
1.Modify it8801 keyboard backlight driver code 2.Enable keyboard backlight setting with it8801 keyboard backlight driver BUG=b:162902808 BRANCH=firmware-kukui-12573.B TEST=Manual. Build and flash BIOS&EC on fennel board. Verify the keyboard backlight function. Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: I73dd7ffc7b6ee80ed7ca39ac4d05afe65f666181 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2413675 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board/fennel/board.h')
-rw-r--r--board/fennel/board.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/fennel/board.h b/board/fennel/board.h
index bd711b9359..27d6c52bdb 100644
--- a/board/fennel/board.h
+++ b/board/fennel/board.h
@@ -63,6 +63,9 @@
#define CONFIG_ACCEL_FORCE_MODE_MASK BIT(LID_ACCEL)
+#define CONFIG_IO_EXPANDER_IT8801_PWM
+#define CONFIG_KEYBOARD_BACKLIGHT
+
#endif /* VARIANT_KUKUI_NO_SENSORS */
/* I2C ports */
@@ -125,6 +128,10 @@ enum battery_type {
BATTERY_TYPE_COUNT,
};
+enum pwm_channel {
+ IT8801_PWM_CH_KBLIGHT = 0,
+};
+
#include "gpio_signal.h"
#include "registers.h"