Skip to content
Snippets Groups Projects
Commit e5901c94 authored by Simon Glass's avatar Simon Glass
Browse files

dm: gpio: Add a function to read an ID from a list of GPIOs


For board IDs a common approach is to set aside several GPIOs for use in
determining the board ID. This can provide information about board features
and the revision.

Add a function that turns a list of GPIOs into an integer by assigning
each GPIO to a single bit.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 469a579d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment