summaryrefslogtreecommitdiff
path: root/board/glados/led.c
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-05-01 10:45:48 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-12 02:50:16 +0000
commit3a36c29e6756231f2fb1fdd26447d519cbd5b26a (patch)
tree755259729196337d469bfef0d0a4ff16fc809276 /board/glados/led.c
parenta394302e4aef0349c30cbccf6b4623bcb3dda5bf (diff)
downloadchrome-ec-stabilize-7060.B.tar.gz
glados: Initial mainboard commitstabilize-7060.B
BUG=chrome-os-partner:39510 TEST=Compile Only BRANCH=None Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: If470b00fec56db0884dbd4c9974140951fc214fd Reviewed-on: https://chromium-review.googlesource.com/268780 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/glados/led.c')
-rw-r--r--board/glados/led.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/board/glados/led.c b/board/glados/led.c
new file mode 100644
index 0000000000..a34cbb69fe
--- /dev/null
+++ b/board/glados/led.c
@@ -0,0 +1,30 @@
+/* Copyright 2015 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
+ * Power and battery LED control for Glados.
+ */
+
+#include "battery.h"
+#include "charge_state.h"
+#include "chipset.h"
+#include "ec_commands.h"
+#include "gpio.h"
+#include "hooks.h"
+#include "host_command.h"
+#include "led_common.h"
+#include "util.h"
+
+const enum ec_led_id supported_led_ids[] = {
+ EC_LED_ID_POWER_LED, EC_LED_ID_BATTERY_LED};
+
+const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids);
+
+int led_set_brightness(enum ec_led_id led_id, const uint8_t *brightness)
+{
+ return EC_SUCCESS;
+}
+
+void led_get_brightness_range(enum ec_led_id led_id, uint8_t *brightness_range)
+{
+}