mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
pinctrl: zynq: fix DEFINE_ZYNQ_PINMUX_FUNCTION_MUX macro
The offset to the mux register is missing.
Fixes: add958cee9
"pinctrl: Add driver for Zynq"
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
8480c2e7b0
commit
4f652cea02
@ -768,12 +768,13 @@ static const char * const gpio0_groups[] = {"gpio0_0_grp",
|
||||
.mux_val = mval, \
|
||||
}
|
||||
|
||||
#define DEFINE_ZYNQ_PINMUX_FUNCTION_MUX(fname, mval, mux, mask, shift) \
|
||||
#define DEFINE_ZYNQ_PINMUX_FUNCTION_MUX(fname, mval, offset, mask, shift)\
|
||||
[ZYNQ_PMUX_##fname] = { \
|
||||
.name = #fname, \
|
||||
.groups = fname##_groups, \
|
||||
.ngroups = ARRAY_SIZE(fname##_groups), \
|
||||
.mux_val = mval, \
|
||||
.mux = offset, \
|
||||
.mux_mask = mask, \
|
||||
.mux_shift = shift, \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user