mirror of
https://github.com/torvalds/linux.git
synced 2026-11-09 13:44:03 +01:00
pinctrl: sunxi: only use PortK special handling on A523
The Allwinner A523 pinctrl IP requires an exception for addressing PortK, since the registers for this GPIO bank did not fit anymore in the existing MMIO frame. Since the A523 was also the first SoC to actually implement PortK, we just enabled this quirk unconditionally. Now the new Allwinner A733 changed the MMIO frame layout, so PortK can and must be handled without any special code. Mark the special casing for PortK with the ELEVEN_BANKS quirk flag we introduced, so that it will only be used on SoCs using the A523 pinctrl IP. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Chen-Yu Tsai <wens@kernel.org> Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
parent
8b6c66cfd1
commit
149d4c5c98
|
|
@ -67,7 +67,7 @@ static u32 sunxi_bank_offset(const struct sunxi_pinctrl *pctl, u32 pin)
|
|||
{
|
||||
u32 offset = 0;
|
||||
|
||||
if (pin >= PK_BASE) {
|
||||
if (pin >= PK_BASE && (pctl->flags & SUNXI_PINCTRL_ELEVEN_BANKS)) {
|
||||
pin -= PK_BASE;
|
||||
offset = PIO_BANK_K_OFFSET;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user