diff options
Diffstat (limited to 'board/glados/led.c')
-rw-r--r-- | board/glados/led.c | 30 |
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) +{ +} |