summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/mach-lantiq/xway/irq.h
diff options
context:
space:
mode:
authorJohn Crispin2011-03-30 09:27:48 +0200
committerRalf Baechle2011-05-19 10:55:41 +0200
commit8ec6d93508f705dacafd5fcd058c69ef405002f9 (patch)
treeb26de8b55fdae858ac2d1b48b563f0315a6c683a /arch/mips/include/asm/mach-lantiq/xway/irq.h
parentMIPS: Lantiq: Add initial support for Lantiq SoCs (diff)
downloadkernel-qcow2-linux-8ec6d93508f705dacafd5fcd058c69ef405002f9.tar.gz
kernel-qcow2-linux-8ec6d93508f705dacafd5fcd058c69ef405002f9.tar.xz
kernel-qcow2-linux-8ec6d93508f705dacafd5fcd058c69ef405002f9.zip
MIPS: Lantiq: add SoC specific code for XWAY family
Add support for the Lantiq XWAY family of Mips24KEc SoCs. * Danube (PSB50702) * Twinpass (PSB4000) * AR9 (PSB50802) * Amazon SE (PSB5061) The Amazon SE is a lightweight SoC and has no PCI as well as a different clock. We split the code out into seperate files to handle this. The GPIO pins on the SoCs are multi function and there are several bits we can use to configure the pins. To be as compatible as possible to GPIOLIB we add a function int lq_gpio_request(unsigned int pin, unsigned int alt0, unsigned int alt1, unsigned int dir, const char *name); which lets you configure the 2 "alternate function" bits. This way drivers like PCI can make use of GPIOLIB without a cubersome wrapper. The PLL code inside arch/mips/lantiq/xway/clk-xway.c is voodoo to me. It was taken from a 2.4.20 source tree and was never really changed by me since then. Signed-off-by: John Crispin <blogic@openwrt.org> Signed-off-by: Ralph Hempel <ralph.hempel@lantiq.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2249/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-lantiq/xway/irq.h')
-rw-r--r--arch/mips/include/asm/mach-lantiq/xway/irq.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-lantiq/xway/irq.h b/arch/mips/include/asm/mach-lantiq/xway/irq.h
new file mode 100644
index 000000000000..a1471d2dd0d2
--- /dev/null
+++ b/arch/mips/include/asm/mach-lantiq/xway/irq.h
@@ -0,0 +1,18 @@
+/*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
+ * by the Free Software Foundation.
+ *
+ * Copyright (C) 2010 John Crispin <blogic@openwrt.org>
+ */
+
+#ifndef __LANTIQ_IRQ_H
+#define __LANTIQ_IRQ_H
+
+#include <lantiq_irq.h>
+
+#define NR_IRQS 256
+
+#include_next <irq.h>
+
+#endif