[ARM] 3369/1: ep93xx: add core cirrus ep93xx support
Patch from Lennert Buytenhek
This patch adds support for the Cirrus ep93xx series of CPUs. The
ep93xx is an ARM920T based CPU with two VICs, PL010 based UARTs,
IrDA, MaverickCrunch floating point coprocessor, between 24 and 64
GPIOs, ethernet, OHCI USB and, depending on the model, pcmcia, raster
engine, graphics accelerator, IDE controller and a bunch of other
stuff.
This patch adds the core ep93xx support code, and support for the
Glomation GESBC-9312-sx and the Technologic Systems TS-72xx SBCs.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-03-20 17:10:13 +00:00
/ *
2008-08-05 16:14:15 +01:00
* arch/ a r m / m a c h - e p93 x x / i n c l u d e / m a c h / e n t r y - m a c r o . S
[ARM] 3369/1: ep93xx: add core cirrus ep93xx support
Patch from Lennert Buytenhek
This patch adds support for the Cirrus ep93xx series of CPUs. The
ep93xx is an ARM920T based CPU with two VICs, PL010 based UARTs,
IrDA, MaverickCrunch floating point coprocessor, between 24 and 64
GPIOs, ethernet, OHCI USB and, depending on the model, pcmcia, raster
engine, graphics accelerator, IDE controller and a bunch of other
stuff.
This patch adds the core ep93xx support code, and support for the
Glomation GESBC-9312-sx and the Technologic Systems TS-72xx SBCs.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-03-20 17:10:13 +00:00
* IRQ d e m u l t i p l e x i n g f o r E P 9 3 x x
*
* Copyright ( C ) 2 0 0 6 L e n n e r t B u y t e n h e k < b u y t e n h @wantstofly.org>
*
* This p r o g r a m i s f r e e s o f t w a r e ; you can redistribute it and/or modify
* it u n d e r t h e t e r m s o f t h e G N U G e n e r a l P u b l i c L i c e n s e a s p u b l i s h e d b y
* the F r e e S o f t w a r e F o u n d a t i o n ; either version 2 of the License, or (at
* your o p t i o n ) a n y l a t e r v e r s i o n .
* /
2008-08-05 16:14:15 +01:00
# include < m a c h / e p93 x x - r e g s . h >
[ARM] 3369/1: ep93xx: add core cirrus ep93xx support
Patch from Lennert Buytenhek
This patch adds support for the Cirrus ep93xx series of CPUs. The
ep93xx is an ARM920T based CPU with two VICs, PL010 based UARTs,
IrDA, MaverickCrunch floating point coprocessor, between 24 and 64
GPIOs, ethernet, OHCI USB and, depending on the model, pcmcia, raster
engine, graphics accelerator, IDE controller and a bunch of other
stuff.
This patch adds the core ep93xx support code, and support for the
Glomation GESBC-9312-sx and the Technologic Systems TS-72xx SBCs.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-03-20 17:10:13 +00:00
.macro disable_fiq
.endm
2007-02-16 22:16:32 +01:00
.macro get_ i r q n r _ p r e a m b l e , b a s e , t m p
.endm
.macro arch_ r e t _ t o _ u s e r , t m p1 , t m p2
.endm
[ARM] 3369/1: ep93xx: add core cirrus ep93xx support
Patch from Lennert Buytenhek
This patch adds support for the Cirrus ep93xx series of CPUs. The
ep93xx is an ARM920T based CPU with two VICs, PL010 based UARTs,
IrDA, MaverickCrunch floating point coprocessor, between 24 and 64
GPIOs, ethernet, OHCI USB and, depending on the model, pcmcia, raster
engine, graphics accelerator, IDE controller and a bunch of other
stuff.
This patch adds the core ep93xx support code, and support for the
Glomation GESBC-9312-sx and the Technologic Systems TS-72xx SBCs.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-03-20 17:10:13 +00:00
.macro get_ i r q n r _ a n d _ b a s e , i r q n r , i r q s t a t , b a s e , t m p
ldr \ b a s e , = ( E P 9 3 X X _ A H B _ V I R T _ B A S E )
orr \ b a s e , \ b a s e , #0x000b0000
mov \ i r q n r , #0
ldr \ i r q s t a t , [ \ b a s e ] @ lower 32 interrupts
cmp \ i r q s t a t , #0
bne 1 0 0 1 f
eor \ b a s e , \ b a s e , #0x00070000
ldr \ i r q s t a t , [ \ b a s e ] @ upper 32 interrupts
cmp \ i r q s t a t , #0
beq 1 0 0 2 f
mov \ i r q n r , #0x20
1001 :
movs \ t m p , \ i r q s t a t , l s l #16
movne \ i r q s t a t , \ t m p
addeq \ i r q n r , \ i r q n r , #16
movs \ t m p , \ i r q s t a t , l s l #8
movne \ i r q s t a t , \ t m p
addeq \ i r q n r , \ i r q n r , #8
movs \ t m p , \ i r q s t a t , l s l #4
movne \ i r q s t a t , \ t m p
addeq \ i r q n r , \ i r q n r , #4
movs \ t m p , \ i r q s t a t , l s l #2
movne \ i r q s t a t , \ t m p
addeq \ i r q n r , \ i r q n r , #2
movs \ t m p , \ i r q s t a t , l s l #1
addeq \ i r q n r , \ i r q n r , #1
orrs \ b a s e , \ b a s e , #1
1002 :
.endm