diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-10-21 09:06:46 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-15 16:49:46 -0500 |
commit | 0241cbb9d62613f6952d023a04d565901a3ca1ad (patch) | |
tree | b622324e3ea135a70a71f57f12b762c034d3557e /arch/arm/plat-s3c64xx/include | |
parent | e1a2bd1d2f368faaf377fdf8404a685280a3d0a3 (diff) |
[ARM] S3C64XX: Add UARTdevice definitions
Add resources and information for the UART deviecs
on the S3C64XX CPUs.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c64xx/include')
-rw-r--r-- | arch/arm/plat-s3c64xx/include/plat/irqs.h | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c64xx/include/plat/irqs.h b/arch/arm/plat-s3c64xx/include/plat/irqs.h index 592a56354551..0f207ab2df28 100644 --- a/arch/arm/plat-s3c64xx/include/plat/irqs.h +++ b/arch/arm/plat-s3c64xx/include/plat/irqs.h | |||
@@ -15,12 +15,45 @@ | |||
15 | * the ISA space, so that the PC104 has them to itself | 15 | * the ISA space, so that the PC104 has them to itself |
16 | * and we don't end up having to do horrible things to the | 16 | * and we don't end up having to do horrible things to the |
17 | * standard ISA drivers.... | 17 | * standard ISA drivers.... |
18 | * | ||
19 | * note, since we're using the VICs, our start must be a | ||
20 | * mulitple of 32 to allow the common code to work | ||
18 | */ | 21 | */ |
19 | 22 | ||
20 | #define S3C_IRQ_OFFSET (16) | 23 | #define S3C_IRQ_OFFSET (32) |
21 | 24 | ||
22 | #define S3C_IRQ(x) ((x) + S3C_IRQ_OFFSET) | 25 | #define S3C_IRQ(x) ((x) + S3C_IRQ_OFFSET) |
23 | 26 | ||
27 | /* UART interrupts, each UART has 4 intterupts per channel so | ||
28 | * use the space between the ISA and S3C main interrupts. Note, these | ||
29 | * are not in the same order as the S3C24XX series! */ | ||
30 | |||
31 | #define IRQ_S3CUART_BASE0 (16) | ||
32 | #define IRQ_S3CUART_BASE1 (20) | ||
33 | #define IRQ_S3CUART_BASE2 (24) | ||
34 | #define IRQ_S3CUART_BASE3 (28) | ||
35 | |||
36 | #define UART_IRQ_RXD (0) | ||
37 | #define UART_IRQ_ERR (1) | ||
38 | #define UART_IRQ_TXD (2) | ||
39 | #define UART_IRQ_MODEM (3) | ||
40 | |||
41 | #define IRQ_S3CUART_RX0 (IRQ_S3CUART_BASE0 + UART_IRQ_RXD) | ||
42 | #define IRQ_S3CUART_TX0 (IRQ_S3CUART_BASE0 + UART_IRQ_TXD) | ||
43 | #define IRQ_S3CUART_ERR0 (IRQ_S3CUART_BASE0 + UART_IRQ_ERR) | ||
44 | |||
45 | #define IRQ_S3CUART_RX1 (IRQ_S3CUART_BASE1 + UART_IRQ_RXD) | ||
46 | #define IRQ_S3CUART_TX1 (IRQ_S3CUART_BASE1 + UART_IRQ_TXD) | ||
47 | #define IRQ_S3CUART_ERR1 (IRQ_S3CUART_BASE1 + UART_IRQ_ERR) | ||
48 | |||
49 | #define IRQ_S3CUART_RX2 (IRQ_S3CUART_BASE2 + UART_IRQ_RXD) | ||
50 | #define IRQ_S3CUART_TX2 (IRQ_S3CUART_BASE2 + UART_IRQ_TXD) | ||
51 | #define IRQ_S3CUART_ERR2 (IRQ_S3CUART_BASE2 + UART_IRQ_ERR) | ||
52 | |||
53 | #define IRQ_S3CUART_RX3 (IRQ_S3CUART_BASE3 + UART_IRQ_RXD) | ||
54 | #define IRQ_S3CUART_TX3 (IRQ_S3CUART_BASE3 + UART_IRQ_TXD) | ||
55 | #define IRQ_S3CUART_ERR3 (IRQ_S3CUART_BASE3 + UART_IRQ_ERR) | ||
56 | |||
24 | /* Since the IRQ_EINT(x) are a linear mapping on current s3c64xx series | 57 | /* Since the IRQ_EINT(x) are a linear mapping on current s3c64xx series |
25 | * we just defined them as an IRQ_EINT(x) macro from S3C_IRQ_EINT_BASE | 58 | * we just defined them as an IRQ_EINT(x) macro from S3C_IRQ_EINT_BASE |
26 | * which we place after the pair of VICs. */ | 59 | * which we place after the pair of VICs. */ |