Skip to content

Commit 877f01f

Browse files
committed
pinctrl: mvebu: armada-370: 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>
1 parent 3a25f9f commit 877f01f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎drivers/pinctrl/mvebu/pinctrl-armada-370.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@
2323

2424
#include "pinctrl-mvebu.h"
2525

26+
static void __iomem *mpp_base;
27+
28+
static int armada_370_mpp_ctrl_get(unsigned pid, unsigned long *config)
29+
{
30+
return default_mpp_ctrl_get(mpp_base, pid, config);
31+
}
32+
33+
static int armada_370_mpp_ctrl_set(unsigned pid, unsigned long config)
34+
{
35+
return default_mpp_ctrl_set(mpp_base, pid, config);
36+
}
37+
2638
static struct mvebu_mpp_mode mv88f6710_mpp_modes[] = {
2739
MPP_MODE(0,
2840
MPP_FUNCTION(0x0, "gpio", NULL),

0 commit comments

Comments
 (0)