summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/atlas/board.c8
-rw-r--r--board/atlas/gpio.inc2
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 */