
13 Nov
2014
13 Nov
'14
6:24 a.m.
On 10 November 2014 18:00, Simon Glass sjg@chromium.org wrote:
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
Changes in v2: None
drivers/gpio/gpio-uclass.c | 19 +++++++++++++++++++ include/asm-generic/gpio.h | 11 ++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-)
Applied to u-boot-x86.