summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2013-05-02 10:58:13 -0700
committerChromeBot <chrome-bot@google.com>2013-05-02 18:10:44 -0700
commita182372cbdfdc7f3fd1f31cc4ab98dda7109bba4 (patch)
treef9fb162409ae9f4639e10e07b9d85146d0184a15
parent3e76215df46fbcfb8fa0920b448c2dab7c098914 (diff)
downloadchrome-ec-a182372cbdfdc7f3fd1f31cc4ab98dda7109bba4.tar.gz
Support power button on slippy, make it compile again.
BUG=chrome-os-partner:18825 BRANCH=slippy TEST=none Change-Id: If20ebaf8e718bc24d61a976026586445ccb6685e Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/49914
-rw-r--r--board/slippy/board.h1
-rw-r--r--chip/lm4/switch.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/board/slippy/board.h b/board/slippy/board.h
index e18da49d0a..8c279f1286 100644
--- a/board/slippy/board.h
+++ b/board/slippy/board.h
@@ -32,6 +32,7 @@
#define CONFIG_ONEWIRE
#define CONFIG_ONEWIRE_LED
#define CONFIG_PECI
+#define CONFIG_POWER_BUTTON
#define CONFIG_PWM_FAN
#define CONFIG_TEMP_SENSOR
#define CONFIG_TMP006
diff --git a/chip/lm4/switch.c b/chip/lm4/switch.c
index b461d1a63c..081d90b33b 100644
--- a/chip/lm4/switch.c
+++ b/chip/lm4/switch.c
@@ -153,8 +153,10 @@ static void update_backlight(void)
else
gpio_set_level(GPIO_ENABLE_BACKLIGHT, 0);
+#ifdef CONFIG_PWM_KBLIGHT
/* Same with keyboard backlight */
pwm_enable_keyboard_backlight(lid_is_open());
+#endif
}
/**