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

Commit 7ba8022f authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

ARM: exynos: prepare for sparse IRQ



When we enable CONFIG_SPARSE_IRQ, we have to set the value of NR_IRQS in
the machine_desc for legacy IRQ domains, and any file referring to the
number of interrupts or a specific number must include the mach/irqs.h
header file explicitly.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent b4cf27f7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
#include <asm/mach/irq.h>
#include <mach/hardware.h>
#include <mach/map.h>
#include <mach/irqs.h>

#include <plat/devs.h>

+4 −1
Original line number Diff line number Diff line
@@ -466,7 +466,10 @@
#define IRQ_TIMER_BASE			(IRQ_GPIO_END + 64)

/* Set the default NR_IRQS */
#define EXYNOS_NR_IRQS			(IRQ_TIMER_BASE + IRQ_TIMER_COUNT)

#define NR_IRQS				(IRQ_TIMER_BASE + IRQ_TIMER_COUNT)
#ifndef CONFIG_SPARSE_IRQ
#define NR_IRQS				EXYNOS_NR_IRQS
#endif

#endif /* __ASM_ARCH_IRQS_H */
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include <plat/regs-srom.h>
#include <plat/sdhci.h>

#include <mach/irqs.h>
#include <mach/map.h>

#include "common.h"
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@
#include <plat/fimc-core.h>
#include <plat/camport.h>

#include <mach/irqs.h>
#include <mach/map.h>

#include "common.h"
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@
#include <plat/hdmi.h>

#include <mach/map.h>
#include <mach/irqs.h>

#include <drm/exynos_drm.h>
#include "common.h"
Loading