[U-Boot] [PATCH v2 04/33] dm: gpio: Add a function to read an ID from a list of GPIOs
Simon Glass
sjg at chromium.org
Thu Nov 13 06:24:39 CET 2014
On 10 November 2014 18:00, Simon Glass <sjg at 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 at 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.
More information about the U-Boot
mailing list