
7 Jul
2017
7 Jul
'17
5:58 a.m.
Hi Andre,
On 2 July 2017 at 18:59, Andre Przywara andre.przywara@arm.com wrote:
Instead of hard-coding GPIO pins used for a certain peripheral, we should just use the pinctrl information from the DT. The sun8i-emac driver has some simple implementation of that, so let's just generalize this and copy the code to a more common location. On the way we add support for the new, generic pinctrl binding now used by all Allwinner SoCs.
Signed-off-by: Andre Przywara andre.przywara@arm.com
arch/arm/include/asm/arch-sunxi/gpio.h | 3 ++ arch/arm/mach-sunxi/pinmux.c | 79 ++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+)
It looks like this should be done with a pinctrl driver, shouldn't it?
Regards, Simon