~ubuntu-branches/ubuntu/trusty/apex/trusty

« back to all changes in this revision

Viewing changes to src/mach-ixp42x/sdram.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2009-11-10 11:55:15 UTC
  • mfrom: (2.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091110115515-6jjsf6rc8py35awe
Tags: 1.6.10ubuntu1
* Merge from debian testing, remaining changes:
  - Move apex VMA address to 4MiB to leave enough space for the ubuntu
  kernel and not overwrite apex in ram when loading.
  - nslu2 configuration: set CONFIG_RAMDISK_SIZE=0x0055FFF0 instead of
  0x005FFFF0 to make enough room for ubuntu initramfs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* sdram.h
 
2
 
 
3
   written by Marc Singer
 
4
   20 Feb 2007
 
5
 
 
6
   Copyright (C) 2007 Marc Singer
 
7
 
 
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.
 
12
 
 
13
   -----------
 
14
   DESCRIPTION
 
15
   -----------
 
16
 
 
17
*/
 
18
 
 
19
#if !defined (__SDRAM_H__)
 
20
#    define   __SDRAM_H__
 
21
 
 
22
/* ----- Includes */
 
23
 
 
24
/* ----- Types */
 
25
 
 
26
/* ----- Globals */
 
27
 
 
28
/* ----- Prototypes */
 
29
 
 
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 */
 
34
 
 
35
#if CONFIG_SDRAM_BANK_LENGTH == (32*1024*1024)
 
36
# if defined CONFIG_SDRAM_BANK1
 
37
#  define SDR_CONFIG_CHIPS      SDR_CONFIG_4x8Mx16
 
38
# else
 
39
#  define SDR_CONFIG_CHIPS      SDR_CONFIG_2x8Mx16
 
40
# endif
 
41
#endif
 
42
 
 
43
#if CONFIG_SDRAM_BANK_LENGTH == (64*1024*1024)
 
44
# if defined CONFIG_SDRAM_BANK1
 
45
#  define SDR_CONFIG_CHIPS      SDR_CONFIG_4x16Mx16
 
46
# else
 
47
#  define SDR_CONFIG_CHIPS      SDR_CONFIG_2x16Mx16
 
48
# endif
 
49
#endif
 
50
 
 
51
#if CONFIG_SDRAM_BANK_LENGTH == (128*1024*1024)
 
52
# if defined CONFIG_SDRAM_BANK1
 
53
#  define SDR_CONFIG_CHIPS      SDR_CONFIG_4x32Mx16
 
54
# else
 
55
#  define SDR_CONFIG_CHIPS      SDR_CONFIG_2x32Mx16
 
56
# endif
 
57
#endif
 
58
 
 
59
 
 
60
/* *** FIXME: sdram config constants should go here.  The Integrated
 
61
   Circuit Solution Inc IC42S16800 DRAM can do CAS2.  Later. */
 
62
 
 
63
 
 
64
 
 
65
#endif  /* __SDRAM_H__ */