diff options
author | Caveh Jalali <caveh@chromium.org> | 2018-07-24 00:42:33 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2018-07-25 21:09:41 +0000 |
commit | 53649c360cb073fa5858c00890cb91acddd17a0f (patch) | |
tree | 156633d5efb67b6bf6c0228d8f39a1de8781ffcc | |
parent | 02b4eee1c87dfafbc542335c0c873d0e648ba93e (diff) | |
download | chrome-ec-stabilize-atlas.10819.B.tar.gz |
atlas: force keyboard backlight on at 100%stabilize-atlas.10819.B
*** do not merge to master ***
this is a hack to force-enable the keyboard backlight at full
brightness for testing.
BUG=none
BRANCH=stabilize-atlas.10819.B
TEST=keyboard LEDs come on at full brightness. they go off on suspend
and turn back on on resume.
Change-Id: I16ca841fe65cb418522630b38209edf683342f75
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1148008
Reviewed-by: Caveh Jalali <caveh@google.com>
Commit-Queue: Caveh Jalali <caveh@google.com>
Tested-by: Caveh Jalali <caveh@google.com>
Trybot-Ready: Caveh Jalali <caveh@google.com>
-rw-r--r-- | board/atlas/board.c | 8 | ||||
-rw-r--r-- | board/atlas/gpio.inc | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/board/atlas/board.c b/board/atlas/board.c index 5725e1f14e..2a07ddd525 100644 --- a/board/atlas/board.c +++ b/board/atlas/board.c @@ -26,6 +26,7 @@ #include "host_command.h" #include "i2c.h" #include "keyboard_8042_sharedlib.h" +#include "keyboard_backlight.h" #include "keyboard_scan.h" #include "lid_switch.h" #include "motion_sense.h" @@ -450,6 +451,13 @@ static void board_init(void) } DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); +static void board_keyboard_backlight(void) +{ + kblight_enable(1); + kblight_set(100); +} +DECLARE_HOOK(HOOK_INIT, board_keyboard_backlight, HOOK_PRIO_LAST); + static void board_extpower(void) { gpio_set_level(GPIO_PCH_ACOK, extpower_is_present()); diff --git a/board/atlas/gpio.inc b/board/atlas/gpio.inc index 044387347f..8e7fba8bde 100644 --- a/board/atlas/gpio.inc +++ b/board/atlas/gpio.inc @@ -64,7 +64,7 @@ GPIO(EC_BL_DISABLE_L, PIN(D, 3), GPIO_ODR_LOW) /* Enable Backlight */ GPIO(EC_BRD_ID1, PIN(9, 6), GPIO_INPUT) /* Board ID bit0 */ GPIO(EC_BRD_ID2, PIN(9, 3), GPIO_INPUT) /* Board ID bit1 */ GPIO(EC_BRD_ID3, PIN(F, 0), GPIO_INPUT) /* Board ID bit2 */ -GPIO(KBD_BL_EN, PIN(7, 5), GPIO_OUT_LOW) /* KB backlight enable */ +GPIO(KBD_BL_EN, PIN(7, 5), GPIO_OUT_HIGH) /* KB backlight enable */ GPIO(EC_PLATFORM_RST, PIN(8, 6), GPIO_OUT_LOW) /* EC Reset to LDO_EN */ /* I2C pins - these will be reconfigured for alternate function below */ |