aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-11-15 12:10:53 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-15 12:10:53 -0500
commitb84da9fa47cf6e8dfd71d673a2f744ec1cac452c (patch)
tree800a1cb1e939eb84f7e7018be64e94be5c972ca0 /include/linux
parent12b76f3bf336388916ddf8047156f9e9993ff4e9 (diff)
parentda34232641a91ca785a787c23c158488e459b938 (diff)
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS updates from Ralf Baechle: "These are the highlists of the main MIPS pull request for 4.4: - Add latencytop support - Support appended DTBs - VDSO support and initially use it for gettimeofday. - Drop the .MIPS.abiflags and ELF NOTE sections from vmlinux - Support for the 5KE, an internal test core. - Switch all MIPS platfroms to libata drivers. - Improved support, cleanups for ralink and Lantiq platforms. - Support for the new xilfpga platform. - A number of DTB improvments for BMIPS. - Improved support for CM and CPS. - Minor JZ4740 and BCM47xx enhancements" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (120 commits) MIPS: idle: add case for CPU_5KE MIPS: Octeon: Support APPENDED_DTB MIPS: vmlinux: create a section for appended DTB MIPS: Clean up compat_siginfo_t MIPS: Fix PAGE_MASK definition MIPS: BMIPS: Enable GZIP ramdisk and timed printks MIPS: Add xilfpga defconfig MIPS: xilfpga: Add mipsfpga platform code MIPS: xilfpga: Add xilfpga device tree files. dt-bindings: MIPS: Document xilfpga bindings and boot style MIPS: Make MIPS_CMDLINE_DTB default MIPS: Make the kernel arguments from dtb available MIPS: Use USE_OF as the guard for appended dtb MIPS: BCM63XX: Use pr_* instead of printk MIPS: Loongson: Cleanup CONFIG_LOONGSON_SUSPEND. MIPS: lantiq: Disable xbar fpi burst mode MIPS: lantiq: Force the crossbar to big endian MIPS: lantiq: Initialize the USB core on boot MIPS: lantiq: Return correct value for fpi clock on ar9 MIPS: ralink: Add missing clock on rt305x ...
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/irqchip/mips-gic.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/irqchip/mips-gic.h b/include/linux/irqchip/mips-gic.h
index 4e6861605050..ce824db48d64 100644
--- a/include/linux/irqchip/mips-gic.h
+++ b/include/linux/irqchip/mips-gic.h
@@ -9,6 +9,7 @@
9#define __LINUX_IRQCHIP_MIPS_GIC_H 9#define __LINUX_IRQCHIP_MIPS_GIC_H
10 10
11#include <linux/clocksource.h> 11#include <linux/clocksource.h>
12#include <linux/ioport.h>
12 13
13#define GIC_MAX_INTRS 256 14#define GIC_MAX_INTRS 256
14 15
@@ -245,6 +246,8 @@
245#define GIC_SHARED_TO_HWIRQ(x) (GIC_SHARED_HWIRQ_BASE + (x)) 246#define GIC_SHARED_TO_HWIRQ(x) (GIC_SHARED_HWIRQ_BASE + (x))
246#define GIC_HWIRQ_TO_SHARED(x) ((x) - GIC_SHARED_HWIRQ_BASE) 247#define GIC_HWIRQ_TO_SHARED(x) ((x) - GIC_SHARED_HWIRQ_BASE)
247 248
249#ifdef CONFIG_MIPS_GIC
250
248extern unsigned int gic_present; 251extern unsigned int gic_present;
249 252
250extern void gic_init(unsigned long gic_base_addr, 253extern void gic_init(unsigned long gic_base_addr,
@@ -264,4 +267,18 @@ extern unsigned int plat_ipi_resched_int_xlate(unsigned int);
264extern int gic_get_c0_compare_int(void); 267extern int gic_get_c0_compare_int(void);
265extern int gic_get_c0_perfcount_int(void); 268extern int gic_get_c0_perfcount_int(void);
266extern int gic_get_c0_fdc_int(void); 269extern int gic_get_c0_fdc_int(void);
270extern int gic_get_usm_range(struct resource *gic_usm_res);
271
272#else /* CONFIG_MIPS_GIC */
273
274#define gic_present 0
275
276static inline int gic_get_usm_range(struct resource *gic_usm_res)
277{
278 /* Shouldn't be called. */
279 return -1;
280}
281
282#endif /* CONFIG_MIPS_GIC */
283
267#endif /* __LINUX_IRQCHIP_MIPS_GIC_H */ 284#endif /* __LINUX_IRQCHIP_MIPS_GIC_H */