Dear Wenyou Yang, Wenyou Yang <wenyou.y...@atmel.com> writes: >AT91 PIO4 controller is a combined gpio-controller, pin-mux and >pin-config module. The peripheral's pins are assigned through >per-pin based muxing logic. > >The pin configuration is performed on specific registers which >are shared along with the gpio controller. So regard the pinctrl >device as a child of atmel_pio4 device. > >Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> >Reviewed-by: Simon Glass <s...@chromium.org> >Reviewed-by: Andreas Bießmann <andr...@biessmann.org> >--- > >Changes in v7: None >Changes in v6: None >Changes in v5: > - Fixed the return value, -ENODEV->-EINVAL. > - Remove check on dev_get_parent() return. > >Changes in v4: None >Changes in v3: > - Rework due to the pinctrl device is regarded as atmel_pio4 > device's child. > >Changes in v2: > - remove meaningless comment. > - add else path for argument of pinconf. > - add inline attribute for atmel_pio4_bank_base(). > - add handle if the pinmux entries is greater maximum value. > > drivers/pinctrl/Kconfig | 7 ++ > drivers/pinctrl/Makefile | 1 + > drivers/pinctrl/pinctrl-at91-pio4.c | 182 ++++++++++++++++++++++++++++++++++++ > 3 files changed, 190 insertions(+) > create mode 100644 drivers/pinctrl/pinctrl-at91-pio4.c
applied to u-boot-atmel/master, thanks! I had to rebase this patch before applying. Best regards, Andreas Bießmann _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot