]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
sh-pfc: Add support for sparse pin numbers
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 15 Feb 2013 00:33:38 +0000 (01:33 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 15 Mar 2013 12:33:39 +0000 (13:33 +0100)
commit63d573835f835aab4c44d0e0342cf5976fb14b35
treed5998a6c0cb914d85c246b0464b2b7e7db959d2a
parent247127f90ba1fcc234008e00e937537a89eef9ca
sh-pfc: Add support for sparse pin numbers

The PFC driver assumes that the value of the GPIO_PORTxxx enumeration
names are equal to the port number. This isn't true when the port number
space is sparse, as with the SH73A0.

Fix the issue by adding support for pin numbers ranges specified through
SoC data. When no range is specified the driver considers that the PFC
implements a single contiguous range for all pins.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/core.c
drivers/pinctrl/sh-pfc/core.h
drivers/pinctrl/sh-pfc/gpio.c
drivers/pinctrl/sh-pfc/pinctrl.c
drivers/pinctrl/sh-pfc/sh_pfc.h