[PATCH] w1: hotplug support.
[linux-2.6/verdex.git] / include / asm-arm / arch-s3c2410 / bast-cpld.h
blobe28ca51a497529fbd1b0d4559e64504265a679c9
1 /* linux/include/asm-arm/arch-s3c2410/bast-cpld.h
3 * (c) 2003,2004 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
6 * BAST - CPLD control constants
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * Changelog:
13 * 25-May-2003 BJD Created file, added CTRL1 registers
14 * 30-Aug-2004 BJD Updated definitions from 2.4.26 port
15 * 30-Aug-2004 BJD Added CTRL3 and CTRL4 definitions
18 #ifndef __ASM_ARCH_BASTCPLD_H
19 #define __ASM_ARCH_BASTCPLD_H
21 /* CTRL1 - Audio LR routing */
23 #define BAST_CPLD_CTRL1_LRCOFF (0x00)
24 #define BAST_CPLD_CTRL1_LRCADC (0x01)
25 #define BAST_CPLD_CTRL1_LRCDAC (0x02)
26 #define BAST_CPLD_CTRL1_LRCARM (0x03)
27 #define BAST_CPLD_CTRL1_LRMASK (0x03)
29 /* CTRL2 - NAND WP control, IDE Reset assert/check */
31 #define BAST_CPLD_CTRL2_WNAND (0x04)
32 #define BAST_CPLD_CTLR2_IDERST (0x08)
34 /* CTRL3 - rom write control, CPLD identity */
36 #define BAST_CPLD_CTRL3_IDMASK (0x0e)
37 #define BAST_CPLD_CTRL3_ROMWEN (0x01)
39 /* CTRL4 - 8bit LCD interface control/status */
41 #define BAST_CPLD_CTRL4_LLAT (0x01)
42 #define BAST_CPLD_CTRL4_LCDRW (0x02)
43 #define BAST_CPLD_CTRL4_LCDCMD (0x04)
44 #define BAST_CPLD_CTRL4_LCDE2 (0x01)
46 /* CTRL5 - DMA routing */
48 #define BAST_CPLD_DMA0_PRIIDE (0<<0)
49 #define BAST_CPLD_DMA0_SECIDE (1<<0)
50 #define BAST_CPLD_DMA0_ISA15 (2<<0)
51 #define BAST_CPLD_DMA0_ISA36 (3<<0)
53 #define BAST_CPLD_DMA1_PRIIDE (0<<2)
54 #define BAST_CPLD_DMA1_SECIDE (1<<2)
55 #define BAST_CPLD_DMA1_ISA15 (2<<2)
56 #define BAST_CPLD_DMA1_ISA36 (3<<2)
58 #endif /* __ASM_ARCH_BASTCPLD_H */