[U-Boot] [PATCH 4/6] sunxi: GPIO: introduce sunxi_gpio_setup_dt_pins()

Simon Glass sjg at chromium.org
Fri Jul 7 03:58:53 UTC 2017


Hi Andre,

On 2 July 2017 at 18:59, Andre Przywara <andre.przywara at 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 at 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


More information about the U-Boot mailing list