diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-11-30 16:30:59 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-12-04 01:20:33 -0800 |
commit | 743a9ea7cd39dffc4f1dc104803f767ba774372b (patch) | |
tree | a31b89a803f213a2421cbef449fff19cae5c5f5e /include | |
parent | 6b75bfee7e66ff2061b3ca114ec52fada16af731 (diff) | |
download | chrome-ec-743a9ea7cd39dffc4f1dc104803f767ba774372b.tar.gz |
pwm: Add common initialization for PWM pins
Rather than having various PWM module groups initialized from various
HOOK_INIT functions, group them all into a single module and initialize
them all from a common function in pwm.c.
BUG=chromium:563708
TEST=Manual on samus / samus_pd (with CONFIG_ADC enabled). Verify that
samus fan + KB backlight control is functional and samus_pd correctly
sets PWM output.
BRANCH=None
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: I9f9b09bfa544cd9bc6b7a867e77757dff0505941
Reviewed-on: https://chromium-review.googlesource.com/314882
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/module_id.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/module_id.h b/include/module_id.h index bc1ef0ab09..b4c1191a68 100644 --- a/include/module_id.h +++ b/include/module_id.h @@ -31,24 +31,22 @@ enum module_id { MODULE_PMU, MODULE_PORT80, MODULE_POWER_LED, - MODULE_PWM_FAN, /* 20 */ - MODULE_PWM_KBLIGHT, - MODULE_PWM_LED, + MODULE_PWM, /* 20 */ MODULE_SPI, MODULE_SPI_FLASH, - MODULE_SPI_MASTER, /* 25 */ + MODULE_SPI_MASTER, MODULE_SWITCH, - MODULE_SYSTEM, + MODULE_SYSTEM, /* 25 */ MODULE_TASK, MODULE_THERMAL, - MODULE_UART, /* 30 */ + MODULE_UART, MODULE_USART, - MODULE_USB, + MODULE_USB, /* 30 */ MODULE_USB_DEBUG, MODULE_USB_PD, - MODULE_USB_PORT_POWER, /* 35 */ + MODULE_USB_PORT_POWER, MODULE_USB_SWITCH, - MODULE_VBOOT, + MODULE_VBOOT, /* 35 */ /* Module count; not an actual module */ MODULE_COUNT |