Skip to content

Commit

Permalink
pinctrl: SPEAr3xx: correct register space to configure pwm
Browse files Browse the repository at this point in the history
To have pwm on pad no. 34 we also need to select between pwm and SD_LED
functions. Add this to pwm pin mux register configuration.

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Shiraz Hashim authored and Linus Walleij committed Nov 5, 2012
1 parent 0b53fa3 commit a778005
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/pinctrl/spear/pinctrl-spear320.c
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,10 @@ static struct spear_muxreg pwm2_pin_34_muxreg[] = {
.reg = PMX_CONFIG_REG,
.mask = PMX_SSP_CS_MASK,
.val = 0,
}, {
.reg = MODE_CONFIG_REG,
.mask = PMX_PWM_MASK,
.val = PMX_PWM_MASK,
}, {
.reg = IP_SEL_PAD_30_39_REG,
.mask = PMX_PL_34_MASK,
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/spear/pinctrl-spear3xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "pinctrl-spear.h"

/* pad mux declarations */
#define PMX_PWM_MASK (1 << 16)
#define PMX_FIRDA_MASK (1 << 14)
#define PMX_I2C_MASK (1 << 13)
#define PMX_SSP_CS_MASK (1 << 12)
Expand Down

0 comments on commit a778005

Please sign in to comment.