6
Copyright (C) 2007 Marc Singer
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License
10
version 2 as published by the Free Software Foundation.
11
Please refer to the file debian/copyright for further details.
19
#if !defined (__SDRAM_H__)
28
/* ----- Prototypes */
30
/* The core has 1GiB of address space for SDRAM, but only
31
256MiB may be used. */
32
#define SDRAM_BANK0_PHYS (0x00000000)
33
#define SDRAM_BANK_SIZE (0x10000000) /* 256MiB */
35
#if CONFIG_SDRAM_BANK_LENGTH == (32*1024*1024)
36
# if defined CONFIG_SDRAM_BANK1
37
# define SDR_CONFIG_CHIPS SDR_CONFIG_4x8Mx16
39
# define SDR_CONFIG_CHIPS SDR_CONFIG_2x8Mx16
43
#if CONFIG_SDRAM_BANK_LENGTH == (64*1024*1024)
44
# if defined CONFIG_SDRAM_BANK1
45
# define SDR_CONFIG_CHIPS SDR_CONFIG_4x16Mx16
47
# define SDR_CONFIG_CHIPS SDR_CONFIG_2x16Mx16
51
#if CONFIG_SDRAM_BANK_LENGTH == (128*1024*1024)
52
# if defined CONFIG_SDRAM_BANK1
53
# define SDR_CONFIG_CHIPS SDR_CONFIG_4x32Mx16
55
# define SDR_CONFIG_CHIPS SDR_CONFIG_2x32Mx16
60
/* *** FIXME: sdram config constants should go here. The Integrated
61
Circuit Solution Inc IC42S16800 DRAM can do CAS2. Later. */
65
#endif /* __SDRAM_H__ */