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 /chip/npcx/fan.c | |
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 'chip/npcx/fan.c')
-rw-r--r-- | chip/npcx/fan.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/chip/npcx/fan.c b/chip/npcx/fan.c index 6b4e24685a..11fefe6429 100644 --- a/chip/npcx/fan.c +++ b/chip/npcx/fan.c @@ -170,9 +170,6 @@ static void fan_config(int ch, int enable_mft_read_rpm) enum npcx_mft_clk_src clk_src = mft_channels[ch].clk_src; volatile struct fan_status_t *p_status = fan_status + ch; - /* Configure pins from GPIOs to FAN */ - gpio_config_module(MODULE_PWM_FAN, 1); - /* Setup pwm with fan spec. */ pwm_config(pwm_id); |