1 /*
2  *  arch/arm/include/asm/hardware/cs89712.h
3  *
4  *  This file contains the hardware definitions of the CS89712
5  *  additional internal registers.
6  *
7  *  Copyright (C) 2001 Thomas Gleixner autronix automation <gleixner@autronix.de>
8  *
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23  */
24 #ifndef __ASM_HARDWARE_CS89712_H
25 #define __ASM_HARDWARE_CS89712_H
26 
27 /*
28 *	CS89712 additional registers
29 */
30 
31 #define PCDR			0x0002	/* Port C Data register ---------------------------- */
32 #define PCDDR			0x0042	/* Port C Data Direction register ------------------ */
33 #define SDCONF			0x2300  /* SDRAM Configuration register ---------------------*/
34 #define SDRFPR			0x2340  /* SDRAM Refresh period register --------------------*/
35 
36 #define SDCONF_ACTIVE		(1 << 10)
37 #define SDCONF_CLKCTL		(1 << 9)
38 #define SDCONF_WIDTH_4		(0 << 7)
39 #define SDCONF_WIDTH_8		(1 << 7)
40 #define SDCONF_WIDTH_16		(2 << 7)
41 #define SDCONF_WIDTH_32		(3 << 7)
42 #define SDCONF_SIZE_16		(0 << 5)
43 #define SDCONF_SIZE_64		(1 << 5)
44 #define SDCONF_SIZE_128		(2 << 5)
45 #define SDCONF_SIZE_256		(3 << 5)
46 #define SDCONF_CASLAT_2		(2)
47 #define SDCONF_CASLAT_3		(3)
48 
49 #endif /* __ASM_HARDWARE_CS89712_H */
50