1 /* Blackfin External Bus Interface Unit (EBIU) SDRAM Controller (SDC) Model.
2 
3    Copyright (C) 2010-2011 Free Software Foundation, Inc.
4    Contributed by Analog Devices, Inc.
5 
6    This file is part of simulators.
7 
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12 
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17 
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20 
21 #ifndef DV_BFIN_EBIU_SDC_H
22 #define DV_BFIN_EBIU_SDC_H
23 
24 #define BFIN_MMR_EBIU_SDC_SIZE	(4 * 4)
25 
26 /* EBIU_SDBCTL Masks */
27 #define EBE		0x0001	/* Enable SDRAM External Bank */
28 #define EBSZ_16		0x0000	/* Size = 16MB */
29 #define EBSZ_32		0x0002	/* Size = 32MB */
30 #define EBSZ_64		0x0004	/* Size = 64MB */
31 #define EBSZ_128	0x0006	/* Size = 128MB */
32 #define EBSZ_256	0x0008	/* Size = 256MB */
33 #define EBSZ_512	0x000A	/* Size = 512MB */
34 #define EBCAW_8		0x0000	/* Column Address Width = 8 Bits */
35 #define EBCAW_9		0x0010	/* Column Address Width = 9 Bits */
36 #define EBCAW_10	0x0020	/* Column Address Width = 10 Bits */
37 #define EBCAW_11	0x0030	/* Column Address Width = 11 Bits */
38 
39 #endif
40