commit | 2c97a8f3863b75801cecfa28215f1e4e971f203a | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Nov 10 18:00:21 2014 -0700 |
committer | Simon Glass <sjg@chromium.org> | Fri Nov 21 07:24:11 2014 +0100 |
tree | 6dc5d86c7f55b0ac45e60bb3b019ceec02db59ec | |
parent | a4c2e13b125653c5091cb1048309c5a773bb3a78 [diff] |
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: Simon Glass <sjg@chromium.org>