]> git.sur5r.net Git - u-boot/commit
sunxi: gpio: Add temporary implementation of name_to_gpio()
authorSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:33:43 +0000 (11:33 -0600)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 May 2015 14:51:52 +0000 (16:51 +0200)
commita5ab8838c6b096ba6e4ba57fdb169cb8ecfea295
treedacf2e1292b85ae7bfdd345f54486a34fae0b2e8
parent07ce60f3cd21de20576e69ba10beabc905643500
sunxi: gpio: Add temporary implementation of name_to_gpio()

Until sunxi moves to device tree (e.g. for USB) we need to convert named
GPIOs to numbers. Add a function to do this.

This fixes the USB / EHCI support not working on the LinkSprite pcDuino3
(which uses devicemodel).

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/gpio/sunxi_gpio.c