]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: gpio: Support numbered GPIOs
authorSimon Glass <sjg@chromium.org>
Thu, 23 Oct 2014 03:37:01 +0000 (21:37 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 01:29:07 +0000 (19:29 -0600)
commitfe1ef503381c4c03c059de3324271ce21cae3078
tree47449b3c0a6891985ad772992fcfb9e6cf499746
parent5b3ee386fde82a1ba42ff09b95247842c9a1585e
dm: gpio: Support numbered GPIOs

At present banks must be named and it is not possible to refer to GPIOs by
number in driver model. Some boards use numbering - e.g. OMAP. It is fairly
easy to support by detecting the absense of a bank name (which starts with
a letter).

Add support for numbered GPIOs in addition to the existing bank support.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/gpio/gpio-uclass.c