xref: /openbmc/u-boot/doc/README.mpc85xxcds (revision a562e1bd)
1Motorola MPC85xxCDS boards
2--------------------------
3
4The CDS family of boards consists of a PCI backplane called the
5"Arcadia", a PCI-form-factor carrier card that plugs into a PCI slot,
6and a CPU daughter card that bolts onto the daughter card.
7
8Much of the content of the README.mpc85xxads for the 85xx ADS boards
9applies to the 85xx CDS boards as well.	 In particular the toolchain,
10the switch nomenclature, and the basis for the memory map.  There are
11some differences, though.
12
13
14Building U-Boot
15---------------
16
17The Binutils in current ELDK toolchain will not support MPC85xx
18chip.  You need to use binutils-2.14.tar.bz2 (or newer) from
19    http://ftp.gnu.org/gnu/binutils.
20
21The 85xx CDS code base is known to compile using:
22    gcc (GCC) 3.2.2 20030217 (Yellow Dog Linux 3.0 3.2.2-2a)
23
24
25Memory Map
26----------
27
28The memory map for u-boot and linux has been extended w.r.t. the ADS
29platform to allow for utilization of all 85xx CDS devices.  The memory
30map is setup for linux to operate properly.  The linux source when
31configured for MPC85xx CDS has been updated to reflect the new memory
32map.
33
34The mapping is:
35
36   0x0000_0000	   0x7fff_ffff	   DDR			   2G
37   0x8000_0000	   0x9fff_ffff	   PCI1 MEM		   512M
38   0xa000_0000	   0xbfff_ffff	   PCI2 MEM		   512M
39   0xe000_0000	   0xe00f_ffff	   CCSR			   1M
40   0xe200_0000	   0xe2ff_ffff	   PCI1 IO		   16M
41   0xe300_0000	   0xe3ff_ffff	   PCI2 IO		   16M
42   0xf000_0000	   0xf7ff_ffff	   SDRAM		   128M
43   0xf800_0000	   0xf80f_ffff	   NVRAM/CADMUS (*)	   1M
44   0xff00_0000	   0xff7f_ffff	   FLASH (2nd bank)	   8M
45   0xff80_0000	   0xffff_ffff	   FLASH (boot bank)	   8M
46
47   (*) The system control registers (CADMUS) start at offset 0xfdb0_4000
48   within the NVRAM/CADMUS region of memory.
49
50
51Using Flash
52-----------
53
54The CDS board  has two flash banks, each 8MB in size (2^23 = 0x00800000).
55There is a switch which allows the boot-bank to be selected.  The switch
56settings for updating flash are given below.
57
58The u-boot commands for copying the boot-bank into the secondary bank are
59as follows:
60
61     erase ff780000 ff7fffff
62     cp.b fff80000 ff780000 80000
63
64
65U-boot/kermit commands for downloading an image, then copying
66it into the secondary bank:
67
68     loadb
69     [Drop to kermit:
70	^\c
71	send <u-boot-bin-image>
72	c
73     ]
74
75     erase ff780000 ff7fffff
76     cp.b $loadaddr ff780000 80000
77
78
79U-boot commands for downloading an image via tftp and flashing
80it into the second bank:
81
82     tftp 10000 <u-boot.bin.image>
83     erase ff780000 ff7fffff
84     cp.b 10000 ff780000 80000
85
86
87After copying the image into the second bank of flash, be sure to toggle
88SW2[2] on the carrier card before resetting the board in order to set the
89secondary bank as the boot-bank.
90
91
92Carrier Board Switches
93----------------------
94
95As a reminder, you should read the README.mpc85xxads too.
96
97Most switches on the carrier board should not be changed.  The only
98user-settable switches on the carrier board are used to configure
99the flash banks and determining the PCI slot.
100
101The first two bits of SW2 control how flash is used on the board:
102
103      12345678
104      --------
105  SW2=00XXXXXX	   FLASH:  Boot bank 1, bank 2 available.
106      01XXXXXX	   FLASH:  Boot bank 2, bank 1 available (swapped).
107      10XXXXXX	   FLASH:  Boot promjet, bank 1 available
108      11XXXXXX	   FLASH:  Boot promjet, bank 2 available
109
110The boot bank is always mapped to FF80_0000 and listed first by
111the "flinfo" command.  The secondary bank is always FF00_0000.
112
113When using PCI, linux needs to know to which slot the CDS carrier is
114connected..  By convention, the user-specific bits of SW2 are used to
115convey this information:
116
117      12345678
118      --------
119  SW2=xxxxxx00	   PCI SLOT INFORM: The CDS carrier is in slot0 of the Arcadia
120      xxxxxx01	   PCI SLOT INFORM: The CDS carrier is in slot1 of the Arcadia
121      xxxxxx10	   PCI SLOT INFORM: The CDS carrier is in slot2 of the Arcadia
122      xxxxxx11	   PCI SLOT INFORM: The CDS carrier is in slot3 of the Arcadia
123
124These are cleverly, er, clearly silkscreened as Slot 1 through 4,
125respectively, on the Arcadia near the support posts.
126
127
128The default setting of all switches on the carrier board is:
129
130      12345678
131      --------
132  SW1=01101100
133  SW2=0x1111yy	   x=Flash bank, yy=PCI slot
134  SW3=11101111
135  SW4=10001000
136
137
138CPU Card Switches
139-----------------
140
141Most switches on the CPU Card should not be changed.  However, the
142frequency can be changed by setting SW3:
143
144      12345678
145      --------
146  SW3=XX00XXXX == CORE:CCB 2:1
147      XX01XXXX == CORE:CCB 5:2
148      XX10XXXX == CORE:CCB 3:1
149      XX11XXXX == CORE:CCB 7:2
150      XXXX1000 == CCB:SYSCLK 8:1
151      XXXX1010 == CCB:SYSCLK 10:1
152
153A safe default setting for all switches on the CPU board is:
154
155      12345678
156      --------
157  SW1=10001111
158  SW2=01000111
159  SW3=00001000
160  SW4=11111110
161
162
163eDINK Info
164----------
165
166One bank of flash may contain an eDINK image.
167
168Memory Map:
169
170   CCSRBAR @ 0xe0000000
171   Flash Bank 1 @ 0xfe000000
172   Flash Bank 2 @ 0xff000000
173   Ram @ 0
174
175Commands for downloading a u-boot image to memory from edink:
176
177   env -c
178   time -s 4/8/2004 4:30p
179   dl -k -b -o 100000
180   [Drop to kermit:
181	^\c
182	transmit /binary <u-boot-bin-image>
183	c
184   ]
185
186   fu -l 100000 fe780000 80000
187