Linux 4.1.18
[linux/fpc-iii.git] / arch / arm / mach-s3c24xx / anubis.h
blob2691665f27d949b22ef02f68a61d2ccff412f3b5
1 /*
2 * Copyright (c) 2005 Simtec Electronics
3 * http://www.simtec.co.uk/products/
4 * Ben Dooks <ben@simtec.co.uk>
6 * ANUBIS - CPLD control constants
7 * ANUBIS - IRQ Number definitions
8 * ANUBIS - Memory map definitions
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #ifndef __MACH_S3C24XX_ANUBIS_H
16 #define __MACH_S3C24XX_ANUBIS_H __FILE__
18 /* CTRL2 - NAND WP control, IDE Reset assert/check */
20 #define ANUBIS_CTRL1_NANDSEL (0x3)
22 /* IDREG - revision */
24 #define ANUBIS_IDREG_REVMASK (0x7)
26 /* irq */
28 #define ANUBIS_IRQ_IDE0 IRQ_EINT2
29 #define ANUBIS_IRQ_IDE1 IRQ_EINT3
30 #define ANUBIS_IRQ_ASIX IRQ_EINT1
32 /* map */
34 /* start peripherals off after the S3C2410 */
36 #define ANUBIS_IOADDR(x) (S3C2410_ADDR((x) + 0x01800000))
38 #define ANUBIS_PA_CPLD (S3C2410_CS1 | (1<<26))
40 /* we put the CPLD registers next, to get them out of the way */
42 #define ANUBIS_VA_CTRL1 ANUBIS_IOADDR(0x00000000)
43 #define ANUBIS_PA_CTRL1 ANUBIS_PA_CPLD
45 #define ANUBIS_VA_IDREG ANUBIS_IOADDR(0x00300000)
46 #define ANUBIS_PA_IDREG (ANUBIS_PA_CPLD + (3 << 23))
48 #define ANUBIS_IDEPRI ANUBIS_IOADDR(0x01000000)
49 #define ANUBIS_IDEPRIAUX ANUBIS_IOADDR(0x01100000)
50 #define ANUBIS_IDESEC ANUBIS_IOADDR(0x01200000)
51 #define ANUBIS_IDESECAUX ANUBIS_IOADDR(0x01300000)
53 #endif /* __MACH_S3C24XX_ANUBIS_H */