[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-22 16:45:06 -04:00
|
|
|
/*
|
2008-08-05 11:14:15 -04:00
|
|
|
* arch/arm/mach-kirkwood/include/mach/entry-macro.S
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-22 16:45:06 -04:00
|
|
|
*
|
|
|
|
* Low-level IRQ helper macros for Marvell Kirkwood platforms
|
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2. This program is licensed "as is" without any
|
|
|
|
* warranty of any kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
2008-08-05 11:14:15 -04:00
|
|
|
#include <mach/kirkwood.h>
|
[ARM] add Marvell Kirkwood (88F6000) SoC support
The Marvell Kirkwood (88F6000) is a family of ARM SoCs based on a
Shiva CPU core, and features a DDR2 controller, a x1 PCIe interface,
a USB 2.0 interface, a SPI controller, a crypto accelerator, a TS
interface, and IDMA/XOR engines, and depending on the model, also
features one or two Gigabit Ethernet interfaces, two SATA II
interfaces, one or two TWSI interfaces, one or two UARTs, a
TDM/SLIC interface, a NAND controller, an I2S/SPDIF interface, and
an SDIO interface.
This patch adds supports for the Marvell DB-88F6281-BP Development
Board and the RD-88F6192-NAS and the RD-88F6281 Reference Designs,
enabling support for the PCIe interface, the USB interface, the
ethernet interfaces, the SATA interfaces, the TWSI interfaces, the
UARTs, and the NAND controller.
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
2008-06-22 16:45:06 -04:00
|
|
|
|
|
|
|
.macro disable_fiq
|
|
|
|
.endm
|
|
|
|
|
|
|
|
.macro arch_ret_to_user, tmp1, tmp2
|
|
|
|
.endm
|
|
|
|
|
|
|
|
.macro get_irqnr_preamble, base, tmp
|
|
|
|
ldr \base, =IRQ_VIRT_BASE
|
|
|
|
.endm
|
|
|
|
|
|
|
|
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
|
|
|
|
@ check low interrupts
|
|
|
|
ldr \irqstat, [\base, #IRQ_CAUSE_LOW_OFF]
|
|
|
|
ldr \tmp, [\base, #IRQ_MASK_LOW_OFF]
|
|
|
|
mov \irqnr, #31
|
|
|
|
ands \irqstat, \irqstat, \tmp
|
|
|
|
bne 1001f
|
|
|
|
|
|
|
|
@ if no low interrupts set, check high interrupts
|
|
|
|
ldr \irqstat, [\base, #IRQ_CAUSE_HIGH_OFF]
|
|
|
|
ldr \tmp, [\base, #IRQ_MASK_HIGH_OFF]
|
|
|
|
mov \irqnr, #63
|
|
|
|
ands \irqstat, \irqstat, \tmp
|
|
|
|
|
|
|
|
@ find first active interrupt source
|
|
|
|
1001: clzne \irqstat, \irqstat
|
|
|
|
subne \irqnr, \irqnr, \irqstat
|
|
|
|
.endm
|