diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2014-01-30 19:33:45 -0500 |
---|---|---|
committer | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2014-02-25 12:35:41 -0500 |
commit | ad2a4f2b80da74c206dfb1e299475bb1feb5aa03 (patch) | |
tree | 384b083930faa88baa925c650d3417e58edfb492 /drivers/pinctrl/mvebu/pinctrl-armada-xp.c | |
parent | 877f01fc4d8d069c497542db2be7e550fbf1fcbd (diff) |
pinctrl: mvebu: armada-xp: 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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'drivers/pinctrl/mvebu/pinctrl-armada-xp.c')
-rw-r--r-- | drivers/pinctrl/mvebu/pinctrl-armada-xp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-xp.c b/drivers/pinctrl/mvebu/pinctrl-armada-xp.c index 843a51f9d129..a22bbbdeff19 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-xp.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-xp.c | |||
@@ -33,6 +33,18 @@ | |||
33 | 33 | ||
34 | #include "pinctrl-mvebu.h" | 34 | #include "pinctrl-mvebu.h" |
35 | 35 | ||
36 | static void __iomem *mpp_base; | ||
37 | |||
38 | static int armada_xp_mpp_ctrl_get(unsigned pid, unsigned long *config) | ||
39 | { | ||
40 | return default_mpp_ctrl_get(mpp_base, pid, config); | ||
41 | } | ||
42 | |||
43 | static int armada_xp_mpp_ctrl_set(unsigned pid, unsigned long config) | ||
44 | { | ||
45 | return default_mpp_ctrl_set(mpp_base, pid, config); | ||
46 | } | ||
47 | |||
36 | enum armada_xp_variant { | 48 | enum armada_xp_variant { |
37 | V_MV78230 = BIT(0), | 49 | V_MV78230 = BIT(0), |
38 | V_MV78260 = BIT(1), | 50 | V_MV78260 = BIT(1), |