Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d608c738 authored by Mark Brown's avatar Mark Brown Committed by Ben Dooks
Browse files

ARM: S3C64XX: Add initial support for board specific IRQs



Follow the scheme used for IRQs. By default 16 GPIOs are allocated
for board use.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent e6502522
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -91,6 +91,10 @@ enum s3c_gpio_number {
#define S3C_GPIO_END		S3C64XX_GPIO_END

/* define the number of gpios we need to the one after the GPQ() range */
#define ARCH_NR_GPIOS	(S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1)
#define GPIO_BOARD_START (S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1)

#define BOARD_NR_GPIOS 16

#define ARCH_NR_GPIOS	(GPIO_BOARD_START + BOARD_NR_GPIOS)

#include <asm-generic/gpio.h>