[U-Boot] [PATCH v3] gpio: dwapb: Add support for port B
Simon Glass
sjg at chromium.org
Sat Nov 5 17:12:12 CET 2016
On 3 November 2016 at 05:05, Phil Edworthy <phil.edworthy at renesas.com> wrote:
> The IP supports two ports, A and B, each providing up to 32 gpios.
> The driver already creates a 2nd gpio bank by reading the 2nd node
> from DT, so this is quite a simple change to support the 2nd bank.
>
> Signed-off-by: Phil Edworthy <phil.edworthy at renesas.com>
> ---
> v3:
> Pass the bank nr to the register offset macro, to cope with
> irregular register locations.
> v2:
> Use an offset element in the platform data instead of if-elses.
> ---
> drivers/gpio/dwapb_gpio.c | 20 ++++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list