xref: /openbmc/u-boot/board/freescale/mpc832xemds/README (revision 57dc53a72460e8e301fa1cc7951b41db8e731485)
1702e6014SWolfgang DenkFreescale MPC832XEMDS Board
2702e6014SWolfgang Denk-----------------------------------------
3702e6014SWolfgang Denk1. Board Switches and Jumpers
4702e6014SWolfgang Denk1.0 There are five Dual-In-Line Packages(DIP) Switches on MPC832XE SYS board
5702e6014SWolfgang Denk	For some reason, the HW designers describe the switch settings
6702e6014SWolfgang Denk	in terms of 0 and 1, and then map that to physical switches where
7702e6014SWolfgang Denk	the label "On" refers to logic 0 and "Off" is logic 1.
8702e6014SWolfgang Denk
9702e6014SWolfgang Denk	Switch bits are numbered 1 through, like, 4 6 8 or 10, but the
10702e6014SWolfgang Denk	bits may contribute to signals that are numbered based at 0,
11702e6014SWolfgang Denk	and some of those signals may be high-bit-number-0 too.  Heed
12702e6014SWolfgang Denk	well the names and labels and do not get confused.
13702e6014SWolfgang Denk
14702e6014SWolfgang Denk		"Off" == 1
15702e6014SWolfgang Denk		"On"  == 0
16702e6014SWolfgang Denk
17702e6014SWolfgang Denk	SW3 is switch 18 as silk-screened onto the board.
18702e6014SWolfgang Denk	SW4[8] is the bit labeled 8 on Switch 4.
19702e6014SWolfgang Denk	SW5[1:6] refers to bits labeled 1 through 6 in order on switch 5.
20702e6014SWolfgang Denk	SW6[7:1] refers to bits labeled 7 through 1 in order on switch 6.
21702e6014SWolfgang Denk	SW7[1:8]= 0000_0001 refers to bits labeled 1 through 6 is set as "On"
22702e6014SWolfgang Denk		and bits labeled 8 is set as "Off".
23702e6014SWolfgang Denk
24702e6014SWolfgang Denk1.1 For the MPC832XEMDS PROTO Board
25702e6014SWolfgang Denk
26702e6014SWolfgang Denk	First, make sure the board default setting is consistent with the document
27702e6014SWolfgang Denk		 shipped with your board. Then apply the following setting:
28702e6014SWolfgang Denk	SW3[1-8]= 0000_1000  (core PLL setting, core enable)
29702e6014SWolfgang Denk	SW4[1-8]= 0001_0010  (Flash boot on local bus, system PLL setting)
30702e6014SWolfgang Denk	SW5[1-8]= 0010_0110  (Boot from high end)
31702e6014SWolfgang Denk	SW6[1-8]= 0011_0100  (Flash boot on 16 bit local bus)
32702e6014SWolfgang Denk	SW7[1-8]= 1000_0011  (QE PLL setting)
33702e6014SWolfgang Denk
34702e6014SWolfgang Denk	ENET3/4 MII mode settings:
35702e6014SWolfgang Denk	J1 1-2 (ETH3_TXER)
36702e6014SWolfgang Denk	J2 2-3 (MII mode)
37702e6014SWolfgang Denk	J3 2-3 (MII mode)
38702e6014SWolfgang Denk	J4 2-3 (ADSL clockOscillator)
39702e6014SWolfgang Denk	J5 1-2 (ETH4_TXER)
40702e6014SWolfgang Denk	J6 2-3 (ClockOscillator)
41702e6014SWolfgang Denk	JP1 removed (don't force PORESET)
42702e6014SWolfgang Denk	JP2 mounted (ETH4/2 MII)
43702e6014SWolfgang Denk	JP3 mounted (ETH3 MII)
44702e6014SWolfgang Denk	JP4 mounted (HRCW from BCSR)
45702e6014SWolfgang Denk
46702e6014SWolfgang Denk	ENET3/4 RMII mode settings:
47702e6014SWolfgang Denk	J1 1-2 (ETH3_TXER)
48702e6014SWolfgang Denk	J2 1-2 (RMII mode)
49702e6014SWolfgang Denk	J3 1-2 (RMII mode)
50702e6014SWolfgang Denk	J4 2-3 (ADSL clockOscillator)
51702e6014SWolfgang Denk	J5 1-2 (ETH4_TXER)
52702e6014SWolfgang Denk	J6 2-3 (ClockOscillator)
53702e6014SWolfgang Denk	JP1 removed (don't force PORESET)
54702e6014SWolfgang Denk	JP2 removed (ETH4/2 RMII)
55702e6014SWolfgang Denk	JP3 removed (ETH3 RMII)
56702e6014SWolfgang Denk	JP4 removed (HRCW from FLASH)
57702e6014SWolfgang Denk
58702e6014SWolfgang Denk	on board Oscillator: 66M
59702e6014SWolfgang Denk
60702e6014SWolfgang Denk
61702e6014SWolfgang Denk2. Memory Map
62702e6014SWolfgang Denk
63702e6014SWolfgang Denk2.1 The memory map should look pretty much like this:
64702e6014SWolfgang Denk
65702e6014SWolfgang Denk	0x0000_0000	0x7fff_ffff	DDR			2G
66702e6014SWolfgang Denk	0x8000_0000	0x8fff_ffff	PCI MEM prefetch	256M
67702e6014SWolfgang Denk	0x9000_0000	0x9fff_ffff	PCI MEM non-prefetch	256M
68702e6014SWolfgang Denk	0xc000_0000	0xdfff_ffff	Empty			512M
69702e6014SWolfgang Denk	0xe000_0000	0xe01f_ffff	Int Mem Reg Space	2M
70702e6014SWolfgang Denk	0xe020_0000	0xe02f_ffff	Empty			1M
71702e6014SWolfgang Denk	0xe030_0000	0xe03f_ffff	PCI IO			1M
72702e6014SWolfgang Denk	0xe040_0000	0xefff_ffff	Empty			252M
73702e6014SWolfgang Denk	0xf400_0000	0xf7ff_ffff	Empty			64M
74702e6014SWolfgang Denk	0xf800_0000	0xf800_7fff	BCSR on CS1		32K
75702e6014SWolfgang Denk	0xf800_8000	0xf800_ffff	PIB CS2			32K
76702e6014SWolfgang Denk	0xf801_0000	0xf801_7fff	PIB CS3			32K
77702e6014SWolfgang Denk	0xfe00_0000	0xfeff_ffff	FLASH on CS0		16M
78702e6014SWolfgang Denk
79702e6014SWolfgang Denk
80702e6014SWolfgang Denk3. Definitions
81702e6014SWolfgang Denk
82702e6014SWolfgang Denk3.1 Explanation of NEW definitions in:
83702e6014SWolfgang Denk
84702e6014SWolfgang Denk	include/configs/MPC832XEPB.h
85702e6014SWolfgang Denk
86702e6014SWolfgang Denk    CONFIG_MPC83xx	MPC83xx family for MPC8349, MPC8360 and MPC832x
87702e6014SWolfgang Denk    CONFIG_MPC832x	MPC832x specific
88702e6014SWolfgang Denk    CONFIG_MPC832XEMDS	MPC832XEMDS board specific
89702e6014SWolfgang Denk
90702e6014SWolfgang Denk4. Compilation
91702e6014SWolfgang Denk
92702e6014SWolfgang Denk	Assuming you're using BASH shell:
93702e6014SWolfgang Denk
94702e6014SWolfgang Denk		export CROSS_COMPILE=your-cross-compile-prefix
95702e6014SWolfgang Denk		cd u-boot
96702e6014SWolfgang Denk		make distclean
97702e6014SWolfgang Denk		make MPC832XEMDS_config
98702e6014SWolfgang Denk		make
99702e6014SWolfgang Denk
100*a187559eSBin Meng	MPC832x support PCI 33MHz and PCI 66MHz, to make U-Boot support PCI:
101702e6014SWolfgang Denk
102702e6014SWolfgang Denk		1)Make sure the DIP SW support PCI mode as described in Section 1.1.
103702e6014SWolfgang Denk
104702e6014SWolfgang Denk		2)To Make U-Boot image support PCI 33MHz, use
105702e6014SWolfgang Denk			Make MPC832XEMDS_HOST_33_config
106702e6014SWolfgang Denk
107702e6014SWolfgang Denk		3)To Make U-Boot image support PCI 66MHz, use
108702e6014SWolfgang Denk			Make MPC832XEMDS_HOST_66M_config
109702e6014SWolfgang Denk
110702e6014SWolfgang Denk5. Downloading and Flashing Images
111702e6014SWolfgang Denk
112702e6014SWolfgang Denk5.0 Download over network:
113702e6014SWolfgang Denk
114702e6014SWolfgang Denk	tftp 10000 u-boot.bin
115702e6014SWolfgang Denk
116*a187559eSBin Meng5.1 Reflash U-Boot Image using U-Boot
117702e6014SWolfgang Denk
118702e6014SWolfgang Denk	tftp 20000 u-boot.bin
119702e6014SWolfgang Denk	protect off fe000000 fe0fffff
120702e6014SWolfgang Denk	erase fe000000 fe0fffff
121702e6014SWolfgang Denk	cp.b 20000 fe000000 xxxx
122702e6014SWolfgang Denk
123702e6014SWolfgang DenkYou have to supply the correct byte count with 'xxxx' from the TFTP result log.
124702e6014SWolfgang DenkMaybe 3ffff will work too, that corresponds to the erased sectors.
125702e6014SWolfgang Denk
126702e6014SWolfgang Denk
127702e6014SWolfgang Denk6. Notes
128702e6014SWolfgang Denk	1) The console baudrate for MPC832XEMDS is 115200bps.
129