diff options
author | li feng <li1.feng@intel.com> | 2015-03-12 16:32:54 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-04-17 04:06:31 +0000 |
commit | bbdf126ef58bcc29130a4b5287da11b208ddf5bd (patch) | |
tree | bfe295299a7054bcb5f2a1f4a38c4ae5c18464dd /board/strago/board.c | |
parent | f55a7e5774447dd1dcdb03ce4cc2d62f613b0eda (diff) | |
download | chrome-ec-bbdf126ef58bcc29130a4b5287da11b208ddf5bd.tar.gz |
strago: Added power/battery LED support.
BUG=None
TEST=Verified LED changes color according to AC and battery status.
BRANCH=none
Change-Id: I83cc8255da385e38f08ee13b1eab90ee494b792d
Signed-off-by: li feng <li1.feng@intel.com>
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/265543
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Divya Jyothi <divya.jyothi@intel.com>
Diffstat (limited to 'board/strago/board.c')
-rw-r--r-- | board/strago/board.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/strago/board.c b/board/strago/board.c index 3b749c8691..e175fc1f75 100644 --- a/board/strago/board.c +++ b/board/strago/board.c @@ -18,6 +18,8 @@ #include "motion_sense.h" #include "power.h" #include "power_button.h" +#include "pwm.h" +#include "pwm_chip.h" #include "registers.h" #include "temp_sensor.h" #include "temp_sensor_chip.h" @@ -30,6 +32,15 @@ #include "gpio_list.h" +/* PWM channels. Must be in the exactly same order as in enum pwm_channel. */ +const struct pwm_t pwm_channels[] = { + {0, PWM_CONFIG_ACTIVE_LOW}, + {1, PWM_CONFIG_ACTIVE_LOW}, + {3, PWM_CONFIG_ACTIVE_LOW}, +}; + +BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); + /* power signal list. Must match order of enum power_signal. */ const struct power_signal_info power_signal_list[] = { {GPIO_ALL_SYS_PGOOD, 1, "ALL_SYS_PWRGD"}, |