285f5fa7e9
The iop348 processor integrates an Xscale (XSC3 512KB L2 Cache) core with a Serial Attached SCSI (SAS) controller, multi-ported DDR2 memory controller, 3 Application Direct Memory Access (DMA) controllers, a 133Mhz PCI-X interface, a x8 PCI-Express interface, and other peripherals to form a system-on-a-chip RAID subsystem engine. The iop342 processor replaces the SAS controller with a second Xscale core for dual core embedded applications. The iop341 processor is the single core version of iop342. This patch supports the two Intel customer reference platforms iq81340mc for external storage and iq81340sc for direct attach (HBA) development. The developer's manual is available here: ftp://download.intel.com/design/iio/docs/31503701.pdf Changelog: * removed virtual addresses from resource definitions * cleaned up some unnecessary #include's Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
40 lines
1.4 KiB
ArmAsm
40 lines
1.4 KiB
ArmAsm
/*
|
|
* iop13xx low level irq macros
|
|
* Copyright (c) 2005-2006, Intel Corporation.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope 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.
|
|
*
|
|
*/
|
|
.macro disable_fiq
|
|
.endm
|
|
|
|
/*
|
|
* Note: a 1-cycle window exists where iintvec will return the value
|
|
* of iintbase, so we explicitly check for "bad zeros"
|
|
*/
|
|
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
|
|
mrc p15, 0, \tmp, c15, c1, 0
|
|
orr \tmp, \tmp, #(1 << 6)
|
|
mcr p15, 0, \tmp, c15, c1, 0 @ Enable cp6 access
|
|
|
|
mrc p6, 0, \irqnr, c3, c2, 0 @ Read IINTVEC
|
|
cmp \irqnr, #0
|
|
mrceq p6, 0, \irqnr, c3, c2, 0 @ Re-read on potentially bad zero
|
|
adds \irqstat, \irqnr, #1 @ Check for 0xffffffff
|
|
movne \irqnr, \irqnr, lsr #2 @ Convert to irqnr
|
|
|
|
biceq \tmp, \tmp, #(1 << 6)
|
|
mcreq p15, 0, \tmp, c15, c1, 0 @ Disable cp6 access if no more interrupts
|
|
.endm
|