Skip to content

Commit ad2a4f2

Browse files
committed
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>
1 parent 877f01f commit ad2a4f2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

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

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

3434
#include "pinctrl-mvebu.h"
3535

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+
3648
enum armada_xp_variant {
3749
V_MV78230 = BIT(0),
3850
V_MV78260 = BIT(1),

0 commit comments

Comments
 (0)