diff options
author | xiong.huang <xiong.huang@bitland.corp-partner.google.com> | 2020-04-20 22:08:52 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-28 06:45:21 +0000 |
commit | 5630318f65ceefa82e5f69efec64f07c2d81cdb2 (patch) | |
tree | dff8352b1b2da4e0aaaa1096cf52757dfd12c219 /board/halvor/board.h | |
parent | 6430b8b4536758473cfe4c71ef6afaeaeecc9c63 (diff) | |
download | chrome-ec-5630318f65ceefa82e5f69efec64f07c2d81cdb2.tar.gz |
volteer: move the PWM configuration and LED support from baseboard to boards
Considering the LED circuits for the derived boards differ significantly
from Volteer and every OEM would have different requirements for LED
behavior. So move the PWM configuration and LED support from baseboard
(volteer) to board (halvor, malefor and volteer), there will be happy to
redefine LED behavior in boards.
BUG=b:154447182
BRANCH=none
TEST=make buildall
Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com>
Change-Id: I578459d4dd75abce4eed83e1f69a14886bb6a0f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2156688
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/halvor/board.h')
-rw-r--r-- | board/halvor/board.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/board/halvor/board.h b/board/halvor/board.h index c10447dba4..2b1ef9b176 100644 --- a/board/halvor/board.h +++ b/board/halvor/board.h @@ -19,6 +19,11 @@ #undef CONFIG_UART_TX_BUF_SIZE #define CONFIG_UART_TX_BUF_SIZE 4096 +/* LED defines */ +#define CONFIG_LED_PWM +/* Although there are 2 LEDs, they are both controlled by the same lines. */ +#define CONFIG_LED_PWM_COUNT 1 + /* Keyboard features */ /* Sensors */ @@ -114,6 +119,16 @@ enum battery_type { BATTERY_TYPE_COUNT, }; +enum pwm_channel { + PWM_CH_LED1_BLUE = 0, + PWM_CH_LED2_GREEN, + PWM_CH_LED3_RED, + PWM_CH_LED4_SIDESEL, + PWM_CH_FAN, + PWM_CH_KBLIGHT, + PWM_CH_COUNT +}; + enum sensor_id { LID_ACCEL = 0, CLEAR_ALS, |