blob: 8932c7de0419887a380af6d38a8669f8d00fda3f [file] [log] [blame]
Steven J. Hill30700332012-05-30 21:02:49 +00001/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 2000,2012 MIPS Technologies, Inc. All rights reserved.
Ralf Baechle70342282013-01-22 12:59:30 +01007 * Douglas Leung <douglas@mips.com>
8 * Steven J. Hill <sjhill@mips.com>
Steven J. Hill30700332012-05-30 21:02:49 +00009 */
10#ifndef _MIPS_SEAD3INT_H
11#define _MIPS_SEAD3INT_H
12
Andrew Bresticker4060bbe2014-10-20 12:03:53 -070013#include <linux/irqchip/mips-gic.h>
Andrew Brestickere9de6882014-09-18 14:47:27 -070014
Steven J. Hill30700332012-05-30 21:02:49 +000015/* SEAD-3 GIC address space definitions. */
16#define GIC_BASE_ADDR 0x1b1c0000
17#define GIC_ADDRSPACE_SZ (128 * 1024)
18
Andrew Bresticker18743d22014-09-18 14:47:24 -070019/* CPU interrupt offsets */
20#define CPU_INT_GIC 2
21#define CPU_INT_EHCI 2
22#define CPU_INT_UART0 4
23#define CPU_INT_UART1 4
24#define CPU_INT_NET 6
25
26/* GIC interrupt offsets */
Andrew Brestickere9de6882014-09-18 14:47:27 -070027#define GIC_INT_NET GIC_SHARED_TO_HWIRQ(0)
28#define GIC_INT_UART1 GIC_SHARED_TO_HWIRQ(2)
29#define GIC_INT_UART0 GIC_SHARED_TO_HWIRQ(3)
30#define GIC_INT_EHCI GIC_SHARED_TO_HWIRQ(5)
Andrew Bresticker18743d22014-09-18 14:47:24 -070031
Steven J. Hill30700332012-05-30 21:02:49 +000032#endif /* !(_MIPS_SEAD3INT_H) */