old-cross-binutils/sim/bfin/dv-bfin_ebiu_sdc.h
Mike Frysinger f2db709f4f sim: bfin: move model data into machs.h
Pull the model data (register addresses/sizes) out of the different model
files and into the machs.h header.  The models themselves don't care about
where they're mapped, only the mach code does.  This allows us to keep the
model headers from being included in the mach code which can cause issues
with model-specific names colliding.  Such as when a newer device model is
created, but with incompatible register names/layouts.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-25 12:54:19 +00:00

37 lines
1.5 KiB
C

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