Skip to content
Commit 2bd261dd authored by Heiko Schocher's avatar Heiko Schocher Committed by Tom Rini
Browse files

gpio: search for gpio label if gpio is not found through bank name



dm_gpio_lookup_name() searches for a gpio through
the bank name. But we have also gpio labels, and it
makes sense to search for a gpio also in the labels
we have defined, if no gpio is found through the
bank name definition.

This is useful for example if you have a wp pin on
different gpios on different board versions.

If dm_gpio_lookup_name() searches also for the gpio labels,
you can give the gpio an unique label name and search
for this label, and do not need to differ between
board revisions.

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
[trini: Don't enable by default]
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
parent 40088001
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment