ARM: PL061: Introduce N_GPIOS
commitfaf58e53695be8eedc47b6232d581d37461d0f6e
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 19 May 2020 08:51:43 +0000 (19 10:51 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 May 2020 21:05:27 +0000 (21 22:05 +0100)
treecf31b511de8f37fc45cff85350c68f686e59deaf
parenta50fe66846d1d02065265f1e54c2b0007f8cb609
ARM: PL061: Introduce N_GPIOS

Add a definition for the number of GPIO lines controlled by a PL061
instance, and use it instead of the hardcoded magic value 8.

Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200519085143.1376-1-geert+renesas@glider.be
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/gpio/pl061.c