From 34f53085f30583849a315443ff28989df56e7ee8 Mon Sep 17 00:00:00 2001 From: Benjamin Walsh Date: Fri, 23 Oct 2015 17:09:25 -0400 Subject: [PATCH] galileo: add missing configure call for PWM0 If PWM had been configured by some other application after the last power cycle, it would appear to work fine. However, an application using PWM loaded right after a power cycle would not work, since the configure call was missing during boot. Change-Id: I389ca2122e1a4a7ea6d298efb327438761336d75 Work-by: Mike Hirst Signed-off-by: Benjamin Walsh --- arch/x86/platforms/galileo/galileo_pinmux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/platforms/galileo/galileo_pinmux.c b/arch/x86/platforms/galileo/galileo_pinmux.c index b638265422..3571bd960f 100644 --- a/arch/x86/platforms/galileo/galileo_pinmux.c +++ b/arch/x86/platforms/galileo/galileo_pinmux.c @@ -587,6 +587,8 @@ uint8_t _galileo_set_pin(struct device *port, uint8_t pin, uint8_t func) enable->path[i].cfg); break; case PWM0: + pwm_pin_configure(drv_data->pwm0, + enable->path[i].pin, 0); pwm_pin_set_duty_cycle(drv_data->pwm0, enable->path[i].pin, enable->path[i].level ? 100 : 0);