]> git.kernelconcepts.de Git - karo-tx-uboot.git/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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:35:19 +0000 (22:35 +0200)
commit7db4aec41dff47a18cd588a3de747aff3e550c10
tree9fa3fb66b127f9900efdce74a8ca08df07426921
parent1f44ea9a570ce3425ca2804db31635cf1f2810e4
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