pinctrl: mvebu: armada-370: provide generic mpp callbacks
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Fri, 31 Jan 2014 00:33:19 +0000 (01:33 +0100)
committerSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tue, 25 Feb 2014 17:35:35 +0000 (18:35 +0100)
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>
drivers/pinctrl/mvebu/pinctrl-armada-370.c

index ae1f760cbdd2b28cae4c0aa17f2fae0cba0fd50f..fc3162ca48c0bdd839298b3c2a807d5407309689 100644 (file)
 
 #include "pinctrl-mvebu.h"
 
+static void __iomem *mpp_base;
+
+static int armada_370_mpp_ctrl_get(unsigned pid, unsigned long *config)
+{
+       return default_mpp_ctrl_get(mpp_base, pid, config);
+}
+
+static int armada_370_mpp_ctrl_set(unsigned pid, unsigned long config)
+{
+       return default_mpp_ctrl_set(mpp_base, pid, config);
+}
+
 static struct mvebu_mpp_mode mv88f6710_mpp_modes[] = {
        MPP_MODE(0,
           MPP_FUNCTION(0x0, "gpio", NULL),