xref: /netbsd-src/external/gpl3/gdb.old/dist/sim/bfin/dv-bfin_ebiu_sdc.h (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1 /* Blackfin External Bus Interface Unit (EBIU) SDRAM Controller (SDC) Model.
2 
3    Copyright (C) 2010-2016 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 /* EBIU_SDBCTL Masks */
25 #define EBE		0x0001	/* Enable SDRAM External Bank */
26 #define EBSZ_16		0x0000	/* Size = 16MB */
27 #define EBSZ_32		0x0002	/* Size = 32MB */
28 #define EBSZ_64		0x0004	/* Size = 64MB */
29 #define EBSZ_128	0x0006	/* Size = 128MB */
30 #define EBSZ_256	0x0008	/* Size = 256MB */
31 #define EBSZ_512	0x000A	/* Size = 512MB */
32 #define EBCAW_8		0x0000	/* Column Address Width = 8 Bits */
33 #define EBCAW_9		0x0010	/* Column Address Width = 9 Bits */
34 #define EBCAW_10	0x0020	/* Column Address Width = 10 Bits */
35 #define EBCAW_11	0x0030	/* Column Address Width = 11 Bits */
36 
37 #endif
38