diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2014-01-30 19:32:42 -0500 |
---|---|---|
committer | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2014-02-25 12:35:30 -0500 |
commit | 3a25f9f2f7c647a78b1a8f49173e238e7f77d4fa (patch) | |
tree | dce0eede34f0eae1ed36f809586046af563274d5 /drivers/pinctrl/mvebu | |
parent | 17bdec677053e3b0ffee65f0bb80373816349d7f (diff) |
pinctrl: mvebu: kirkwood: provide generic mpp callbacks
We want to get rid of passing register addresses to common pinctrl
driver, so provide set/get callbacks that use generic mpp pins helper
and will be used later.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'drivers/pinctrl/mvebu')
-rw-r--r-- | drivers/pinctrl/mvebu/pinctrl-kirkwood.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/pinctrl/mvebu/pinctrl-kirkwood.c b/drivers/pinctrl/mvebu/pinctrl-kirkwood.c index 6b504b5935a5..f9c68f1c636d 100644 --- a/drivers/pinctrl/mvebu/pinctrl-kirkwood.c +++ b/drivers/pinctrl/mvebu/pinctrl-kirkwood.c | |||
@@ -21,6 +21,18 @@ | |||
21 | 21 | ||
22 | #include "pinctrl-mvebu.h" | 22 | #include "pinctrl-mvebu.h" |
23 | 23 | ||
24 | static void __iomem *mpp_base; | ||
25 | |||
26 | static int kirkwood_mpp_ctrl_get(unsigned pid, unsigned long *config) | ||
27 | { | ||
28 | return default_mpp_ctrl_get(mpp_base, pid, config); | ||
29 | } | ||
30 | |||
31 | static int kirkwood_mpp_ctrl_set(unsigned pid, unsigned long config) | ||
32 | { | ||
33 | return default_mpp_ctrl_set(mpp_base, pid, config); | ||
34 | } | ||
35 | |||
24 | #define V(f6180, f6190, f6192, f6281, f6282, dx4122) \ | 36 | #define V(f6180, f6190, f6192, f6281, f6282, dx4122) \ |
25 | ((f6180 << 0) | (f6190 << 1) | (f6192 << 2) | \ | 37 | ((f6180 << 0) | (f6190 << 1) | (f6192 << 2) | \ |
26 | (f6281 << 3) | (f6282 << 4) | (dx4122 << 5)) | 38 | (f6281 << 3) | (f6282 << 4) | (dx4122 << 5)) |