/*
 *  include/asm-mips/emma3/et61330.h
 *      This file is EMMA3 board depended header.
 *
 *  Copyright (C) NEC Electronics Corporation 2005-2006
 *
 *  This file based on include/asm-mips/ddb5xxx/ddb5xxx.h
 *          Copyright 2001 MontaVista Software Inc.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef ET61330_H
#define ET61330_H

#define EMMA3_FPGA_BASE		(0x11400000)
#define EMMA3_FPGA_ISR		(0x11400014)

#define NUM_EMMA3_IRQ_FPGA	8
#define EMMA3_FPGA_IRQ_BASE	(EMMA3_GPIO_IRQ_BASE + NUM_EMMA3_IRQ_GPIO)

#define EMMA3_FPGA_CASCADE	(EMMA3_GPIO_IRQ_BASE + 50)

#define ET61330_PCI_IRQ_ETHERNET_GPIO	8

#define ET61330_PCI_IRQ_INTA		(EMMA3_FPGA_IRQ_BASE + 0)
#define ET61330_PCI_IRQ_INTB		(EMMA3_FPGA_IRQ_BASE + 1)
#define ET61330_PCI_IRQ_INTC		(EMMA3_FPGA_IRQ_BASE + 2)
#define ET61330_PCI_IRQ_INTD		(EMMA3_FPGA_IRQ_BASE + 3)
#define ET61330_PCI_IRQ_USB_INTA	(EMMA3_GPIO_IRQ_BASE + 3)
#define ET61330_PCI_IRQ_USB_INTB	(EMMA3_FPGA_IRQ_BASE + 5)
#define ET61330_PCI_IRQ_USB_INTC	(EMMA3_FPGA_IRQ_BASE + 6)
#if defined(CONFIG_IRQ_SW_BRIDGE)
#define ET61330_PCI_IRQ_ETHERNET	(EMMA3_SW_IRQ_BASE + CONFIG_IRQ_SW_BRIDGE_ETH)
#else
#define ET61330_PCI_IRQ_ETHERNET	(EMMA3_GPIO_IRQ_BASE + ET61330_PCI_IRQ_ETHERNET_GPIO)
#endif

#endif /* CONFIG_ET61330 */
