xref: /openbmc/u-boot/doc/README.b4860qds (revision 57dc53a72460e8e301fa1cc7951b41db8e731485)
1b5b06fb7SYork SunOverview
2b5b06fb7SYork Sun--------
3b5b06fb7SYork SunThe B4860QDS is a Freescale reference board that hosts the B4860 SoC (and variants).
4b5b06fb7SYork Sun
5b5b06fb7SYork SunB4860 Overview
6b5b06fb7SYork Sun-------------
7b5b06fb7SYork SunThe B4860 QorIQ Qonverge device is a Freescale high-end, multicore SoC based on
8b5b06fb7SYork SunStarCore and Power Architecture® cores. It targets the broadband wireless
9b5b06fb7SYork Suninfrastructure and builds upon the proven success of the existing multicore
10b5b06fb7SYork SunDSPs and Power CPUs. It is designed to bolster the rapidly changing and
11b5b06fb7SYork Sunexpanding wireless markets, such as 3GLTE (FDD and TDD), LTE-Advanced, and UMTS.
12b5b06fb7SYork Sun
13b5b06fb7SYork SunThe B4860 is a highly-integrated StarCore and Power Architecture processor that
14b5b06fb7SYork Suncontains:
15b5b06fb7SYork Sun. Six fully-programmable StarCore SC3900 FVP subsystems, divided into three
16b5b06fb7SYork Sunclusters-each core runs up to 1.2 GHz, with an architecture highly optimized for
17b5b06fb7SYork Sunwireless base station applications
18b5b06fb7SYork Sun. Four dual-thread e6500 Power Architecture processors organized in one cluster-each
19b5b06fb7SYork Suncore runs up to 1.8 GHz
20b5b06fb7SYork Sun. Two DDR3/3L controllers for high-speed, industry-standard memory interface each
21b5b06fb7SYork Sunruns at up to 1866.67 MHz
22b5b06fb7SYork Sun. MAPLE-B3 hardware acceleration-for forward error correction schemes including
23b5b06fb7SYork SunTurbo or Viterbi decoding, Turbo encoding and rate matching, MIMO MMSE
24b5b06fb7SYork Sunequalization scheme, matrix operations, CRC insertion and check, DFT/iDFT and
25b5b06fb7SYork SunFFT/iFFT calculations, PUSCH/PDSCH acceleration, and UMTS chip rate
26b5b06fb7SYork Sunacceleration
27b5b06fb7SYork Sun. CoreNet fabric that fully supports coherency using MESI protocol between the
28b5b06fb7SYork Sun  e6500 cores, SC3900 FVP cores, memories and external interfaces.
29b5b06fb7SYork Sun  CoreNet fabric interconnect runs at 667 MHz and supports coherent and
30b5b06fb7SYork Sun  non-coherent out of order transactions with prioritization and bandwidth
31b5b06fb7SYork Sun  allocation amongst CoreNet endpoints.
32b5b06fb7SYork Sun. Data Path Acceleration Architecture, which includes the following:
33b5b06fb7SYork Sun. Frame Manager (FMan), which supports in-line packet parsing and general
34b5b06fb7SYork Sun  classification to enable policing and QoS-based packet distribution
35b5b06fb7SYork Sun. Queue Manager (QMan) and Buffer Manager (BMan), which allow offloading
36b5b06fb7SYork Sun  of queue management, task management, load distribution, flow ordering, buffer
37b5b06fb7SYork Sun  management, and allocation tasks from the cores
38b5b06fb7SYork Sun. Security engine (SEC 5.3)-crypto-acceleration for protocols such as IPsec,
39b5b06fb7SYork Sun  SSL, and 802.16
40b5b06fb7SYork Sun. RapidIO manager (RMAN) - Support SRIO types 8, 9, 10, and 11 (inbound and
41b5b06fb7SYork Sun  outbound). Supports types 5, 6 (outbound only)
42b5b06fb7SYork Sun. Large internal cache memory with snooping and stashing capabilities for
43b5b06fb7SYork Sun  bandwidth saving and high utilization of processor elements. The 9856-Kbyte
44b5b06fb7SYork Sun  internal memory space includes the following:
45b5b06fb7SYork Sun. 32 Kbyte L1 ICache per e6500/SC3900 core
46b5b06fb7SYork Sun. 32 Kbyte L1 DCache per e6500/SC3900 core
47b5b06fb7SYork Sun. 2048 Kbyte unified L2 cache for each SC3900 FVP cluster
48b5b06fb7SYork Sun. 2048 Kbyte unified L2 cache for the e6500 cluster
49b5b06fb7SYork Sun. Two 512 Kbyte shared L3 CoreNet platform caches (CPC)
50b5b06fb7SYork Sun. Sixteen 10-GHz SerDes lanes serving:
51b5b06fb7SYork Sun. Two Serial RapidIO interfaces.
52b5b06fb7SYork Sun	- Each supports up to 4 lanes and a total of up to 8 lanes
53b5b06fb7SYork Sun. Up to 8-lanes Common Public Radio Interface (CPRI) controller for glue-less
54b5b06fb7SYork Sun  antenna connection
55b5b06fb7SYork Sun. Two 10-Gbit Ethernet controllers (10GEC)
56b5b06fb7SYork Sun. Six 1G/2.5-Gbit Ethernet controllers for network communications
57b5b06fb7SYork Sun. PCI Express controller
58b5b06fb7SYork Sun. Debug (Aurora)
59b5b06fb7SYork Sun. Two OCeaN DMAs
60b5b06fb7SYork Sun. Various system peripherals
61b5b06fb7SYork Sun. 182 32-bit timers
62b5b06fb7SYork Sun
63b5b06fb7SYork SunB4860QDS Overview
64b5b06fb7SYork Sun------------------
65b5b06fb7SYork Sun- DDRC1: Ten separate DDR3 parts of 16-bit to support 72-bit (ECC) at 1866MT/s, ECC, 4 GB
66b5b06fb7SYork Sun  of memory in two ranks of 2 GB.
67b5b06fb7SYork Sun- DDRC2: Five separate DDR3 parts of 16-bit to support 72-bit (ECC) at 1866MT/s, ECC, 2 GB
68b5b06fb7SYork Sun  of memory. Single rank.
69b5b06fb7SYork Sun- SerDes 1 multiplexing: Two Vitesse (transmit and receive path) cross-point 16x16 switch
70b5b06fb7SYork Sun  VSC3316
71b5b06fb7SYork Sun- SerDes 2 multiplexing: Two Vitesse (transmit and receive path) cross-point 8x8 switch VSC3308
72b5b06fb7SYork Sun- USB 2.0 ULPI PHY USB3315 by SMSC supports USB port in host mode.
73b5b06fb7SYork Sun  B4860 UART port is available over USB-to-UART translator USB2SER or over RS232 flat cable.
74b5b06fb7SYork Sun- A Vitesse dual SGMII phy VSC8662 links the B4860 SGMII lines to 2xRJ-45 copper connectors
75b5b06fb7SYork Sun  for Stand-alone mode and to the 1000Base-X over AMC MicroTCA connector ports 0 and 2 for
76b5b06fb7SYork Sun  AMC mode.
77b5b06fb7SYork Sun- The B4860 configuration may be loaded from nine bits coded reset configuration reset source. The
78b5b06fb7SYork Sun  RCW source is set by appropriate DIP-switches:
79b5b06fb7SYork Sun- 16-bit NOR Flash / PROMJet
80b5b06fb7SYork Sun- QIXIS 8-bit NOR Flash Emulator
81b5b06fb7SYork Sun- 8-bit NAND Flash
82b5b06fb7SYork Sun- 24-bit SPI Flash
83b5b06fb7SYork Sun- Long address I2C EEPROM
84b5b06fb7SYork Sun- Available debug interfaces are:
85b5b06fb7SYork Sun	- On-board eCWTAP controller with ETH and USB I/F
86b5b06fb7SYork Sun	- JTAG/COP 16-pin header for any external TAP controller
87b5b06fb7SYork Sun	- External JTAG source over AMC to support B2B configuration
88b5b06fb7SYork Sun	- 70-pin Aurora debug connector
89b5b06fb7SYork Sun- QIXIS (FPGA) logic:
90b5b06fb7SYork Sun	- 2 KB internal memory space including
91b5b06fb7SYork Sun- IDT840NT4 clock synthesizer provides B4860 essential clocks : SYSCLK, DDRCLK1,2 and
92b5b06fb7SYork Sun  RTCCLK.
93b5b06fb7SYork Sun- Two 8T49N222A SerDes ref clock devices support two SerDes port clock frequency - total four
94b5b06fb7SYork Sun  refclk, including CPRI clock scheme.
95b5b06fb7SYork Sun
96b5b06fb7SYork SunB4420 Personality
97b5b06fb7SYork Sun--------------------
98b5b06fb7SYork Sun
99b5b06fb7SYork SunB4420 Personality
100b5b06fb7SYork Sun--------------------
101b5b06fb7SYork SunB4420 is a reduced personality of B4860 with less core/clusters(both SC3900 and e6500), less DDR
102b5b06fb7SYork Suncontrollers, less serdes lanes, less SGMII interfaces and reduced target frequencies.
103b5b06fb7SYork Sun
104b5b06fb7SYork SunKey differences between B4860 and B4420
105b5b06fb7SYork Sun----------------------------------------
106b5b06fb7SYork Sun
107b5b06fb7SYork SunB4420 has:
108b5b06fb7SYork Sun1. Less e6500 cores: 1 cluster with 2 e6500 cores
109b5b06fb7SYork Sun2. Less SC3900 cores/clusters: 1 cluster with 2 SC3900 cores per cluster.
110b5b06fb7SYork Sun3. Single DDRC
111b5b06fb7SYork Sun4. 2X 4 lane serdes
112b5b06fb7SYork Sun5. 3 SGMII interfaces
113b5b06fb7SYork Sun6. no sRIO
114b5b06fb7SYork Sun7. no 10G
115b5b06fb7SYork Sun
116b5b06fb7SYork SunB4860QDS Default Settings
117b5b06fb7SYork Sun-------------------------
118b5b06fb7SYork Sun
119b5b06fb7SYork SunSwitch Settings
120b5b06fb7SYork Sun----------------
121b5b06fb7SYork Sun
12276a4c438SRaghav DograSW1	OFF [0]	OFF [0]	OFF [0]	OFF [0]	OFF [0]	OFF [0]	OFF [0]	OFF [0]
123b5b06fb7SYork SunSW2	ON	ON	ON	ON	ON	ON	OFF	OFF
124b5b06fb7SYork SunSW3	OFF	OFF	OFF	ON	OFF	OFF	ON	OFF
125b5b06fb7SYork SunSW5	OFF	OFF	OFF	OFF	OFF	OFF	ON	ON
126b5b06fb7SYork Sun
127b5b06fb7SYork SunNote: PCIe slots modes: All the PCIe devices work as Root Complex.
128b5b06fb7SYork SunNote: Boot location: NOR flash.
129b5b06fb7SYork Sun
130b5b06fb7SYork SunSysClk/Core(e6500)/CCB/DDR/FMan/DDRCLK/StarCore/CPRI-Maple/eTVPE-Maple/ULB-Maple
131b5b06fb7SYork Sun66MHz/1.6GHz/667MHz/1.6GHz data rate/667MHz/133MHz/1200MHz/500MHz/800MHz/667MHz
132b5b06fb7SYork Sun
133b5b06fb7SYork Suna) NAND boot
134b5b06fb7SYork Sun	SW1 [1.1] = 0
135b5b06fb7SYork Sun	SW2 [1.1] = 1
136b5b06fb7SYork Sun	SW3 [1:4] = 0001
137b5b06fb7SYork Sunb) NOR boot
138b5b06fb7SYork Sun	SW1 [1.1] = 1
139b5b06fb7SYork Sun	SW2 [1.1] = 0
140b5b06fb7SYork Sun	SW3 [1:4] = 1000.
141b5b06fb7SYork Sun
142b5b06fb7SYork SunB4420QDS Default Settings
143b5b06fb7SYork Sun-------------------------
144b5b06fb7SYork Sun
145b5b06fb7SYork SunSwitch Settings
146b5b06fb7SYork Sun----------------
147b5b06fb7SYork SunSW1	OFF[0]	OFF [0]	OFF [0]	OFF [0]	OFF [0]	OFF [0]	OFF [0]	OFF [0]
148b5b06fb7SYork SunSW2	ON	OFF	ON	OFF	ON	ON	OFF	OFF
149b5b06fb7SYork SunSW3	OFF	OFF	OFF	ON	OFF	OFF	ON	OFF
150b5b06fb7SYork SunSW5	OFF	OFF	OFF	OFF	OFF	OFF	ON	ON
151b5b06fb7SYork Sun
152b5b06fb7SYork SunNote: PCIe slots modes: All the PCIe devices work as Root Complex.
153b5b06fb7SYork SunNote: Boot location: NOR flash.
154b5b06fb7SYork Sun
155b5b06fb7SYork SunSysClk/Core(e6500)/CCB/DDR/FMan/DDRCLK/StarCore/CPRI-Maple/eTVPE-Maple/ULB-Maple
156b5b06fb7SYork Sun66MHz/1.6GHz/667MHz/1.6GHz data rate/667MHz/133MHz/1200MHz/500MHz/800MHz/667MHz
157b5b06fb7SYork Sun
158b5b06fb7SYork Suna) NAND boot
159b5b06fb7SYork Sun	SW1 [1.1] = 0
160b5b06fb7SYork Sun	SW2 [1.1] = 1
161b5b06fb7SYork Sun	SW3 [1:4] = 0001
162b5b06fb7SYork Sunb) NOR boot
163b5b06fb7SYork Sun	SW1 [1.1] = 1
164b5b06fb7SYork Sun	SW2 [1.1] = 0
165b5b06fb7SYork Sun	SW3 [1:4] = 1000.
166b5b06fb7SYork Sun
167b5b06fb7SYork SunMemory map on B4860QDS
168b5b06fb7SYork Sun----------------------
169b5b06fb7SYork SunThe addresses in brackets are physical addresses.
170b5b06fb7SYork Sun
171b5b06fb7SYork SunStart Address	End Address	Description	Size
172b5b06fb7SYork Sun0xF_FFDF_1000 	0xF_FFFF_FFFF	Free		2 MB
173b5b06fb7SYork Sun0xF_FFDF_0000 	0xF_FFDF_0FFF	IFC - FPGA 	4 KB
174b5b06fb7SYork Sun0xF_FF81_0000 	0xF_FFDE_FFFF	Free		5 MB
175b5b06fb7SYork Sun0xF_FF80_0000	0xF_FF80_FFFF	IFC NAND Flash	64 KB
176b5b06fb7SYork Sun0xF_FF00_0000	0xF_FF7F_FFFF	Free		8 MB
177b5b06fb7SYork Sun0xF_FE00_0000 	0xF_FEFF_FFFF	CCSRBAR		16 MB
178b5b06fb7SYork Sun0xF_F801_0000 	0xF_FDFF_FFFF	Free		95 MB
179b5b06fb7SYork Sun0xF_F800_0000	0xF_F800_FFFF	PCIe I/O Space 	64 KB
180b5b06fb7SYork Sun0xF_F600_0000 	0xF_F7FF_FFFF	QMAN s/w portal	32 MB
181b5b06fb7SYork Sun0xF_F400_0000 	0xF_F5FF_FFFF	BMAN s/w portal	32 MB
182b5b06fb7SYork Sun0xF_F000_0000 	0xF_F3FF_FFFF	Free		64 MB
183b5b06fb7SYork Sun0xF_E800_0000 	0xF_EFFF_FFFF	IFC  NOR Flash 	128 MB
184b5b06fb7SYork Sun0xF_E000_0000	0xF_E7FF_FFFF	Promjet		128 MB
185b5b06fb7SYork Sun0xF_A0C0_0000 	0xF_DFFF_FFFF	Free		1012 MB
186b5b06fb7SYork Sun0xF_A000_0000 	0xF_A0BF_FFFF	MAPLE0/1/2	12 MB
187b5b06fb7SYork Sun0xF_0040_0000 	0xF_9FFF_FFFF	Free		12 GB
18849e946cbSStephen George0xF_0000_0000 	0xF_01FF_FFFF	DCSR		32 MB
189b5b06fb7SYork Sun0xC_4000_0000 	0xE_FFFF_FFFF	Free		11 GB
190b5b06fb7SYork Sun0xC_3000_0000 	0xC_3FFF_FFFF	sRIO-2 I/O 	256 MB
191b5b06fb7SYork Sun0xC_2000_0000 	0xC_2FFF_FFFF	sRIO-1 I/O  	256 MB
192b5b06fb7SYork Sun0xC_0000_0000	0xC_1FFF_FFFF	PCIe Mem Space 	512 MB
193b5b06fb7SYork Sun0x1_0000_0000 	0xB_FFFF_FFFF	Free		44 GB
194b5b06fb7SYork Sun0x0_8000_0000 	0x0_FFFF_FFFF	DDRC1		2 GB
195b5b06fb7SYork Sun0x0_0000_0000 	0x0_7FFF_FFFF	DDRC2	  	2 GB
196b5b06fb7SYork Sun
197b5b06fb7SYork SunMemory map on B4420QDS
198b5b06fb7SYork Sun----------------------
199b5b06fb7SYork SunThe addresses in brackets are physical addresses.
200b5b06fb7SYork Sun
201b5b06fb7SYork SunStart Address	End Address	Description	Size
202b5b06fb7SYork Sun0xF_FFDF_1000 	0xF_FFFF_FFFF	Free		2 MB
203b5b06fb7SYork Sun0xF_FFDF_0000 	0xF_FFDF_0FFF	IFC - FPGA 	4 KB
204b5b06fb7SYork Sun0xF_FF81_0000 	0xF_FFDE_FFFF	Free		5 MB
205b5b06fb7SYork Sun0xF_FF80_0000	0xF_FF80_FFFF	IFC NAND Flash	64 KB
206b5b06fb7SYork Sun0xF_FF00_0000	0xF_FF7F_FFFF	Free		8 MB
207b5b06fb7SYork Sun0xF_FE00_0000 	0xF_FEFF_FFFF	CCSRBAR		16 MB
208b5b06fb7SYork Sun0xF_F801_0000 	0xF_FDFF_FFFF	Free		95 MB
209b5b06fb7SYork Sun0xF_F800_0000	0xF_F800_FFFF	PCIe I/O Space 	64 KB
210b5b06fb7SYork Sun0xF_F600_0000 	0xF_F7FF_FFFF	QMAN s/w portal	32 MB
211b5b06fb7SYork Sun0xF_F400_0000 	0xF_F5FF_FFFF	BMAN s/w portal	32 MB
212b5b06fb7SYork Sun0xF_F000_0000 	0xF_F3FF_FFFF	Free		64 MB
213b5b06fb7SYork Sun0xF_E800_0000 	0xF_EFFF_FFFF	IFC  NOR Flash 	128 MB
214b5b06fb7SYork Sun0xF_E000_0000	0xF_E7FF_FFFF	Promjet		128 MB
215b5b06fb7SYork Sun0xF_A0C0_0000 	0xF_DFFF_FFFF	Free		1012 MB
216b5b06fb7SYork Sun0xF_A000_0000 	0xF_A0BF_FFFF	MAPLE0/1/2	12 MB
217b5b06fb7SYork Sun0xF_0040_0000 	0xF_9FFF_FFFF	Free		12 GB
21849e946cbSStephen George0xF_0000_0000 	0xF_01FF_FFFF	DCSR		32 MB
219b5b06fb7SYork Sun0xC_4000_0000 	0xE_FFFF_FFFF	Free		11 GB
220b5b06fb7SYork Sun0xC_3000_0000 	0xC_3FFF_FFFF	sRIO-2 I/O 	256 MB
221b5b06fb7SYork Sun0xC_2000_0000 	0xC_2FFF_FFFF	sRIO-1 I/O  	256 MB
222b5b06fb7SYork Sun0xC_0000_0000	0xC_1FFF_FFFF	PCIe Mem Space 	512 MB
223b5b06fb7SYork Sun0x1_0000_0000 	0xB_FFFF_FFFF	Free		44 GB
224b5b06fb7SYork Sun0x0_0000_0000 	0x0_FFFF_FFFF	DDRC1		4 GB
225b5b06fb7SYork Sun
226b5b06fb7SYork Sun
227b5b06fb7SYork SunNOR Flash memory Map on B4860 and B4420QDS
228b5b06fb7SYork Sun------------------------------------------
229b5b06fb7SYork Sun Start		 End		Definition			Size
230*a187559eSBin Meng0xEFF40000	0xEFFFFFFF	U-Boot (current bank)		768KB
231*a187559eSBin Meng0xEFF20000	0xEFF3FFFF	U-Boot env (current bank)	128KB
232e222b1f3SPrabhakar Kushwaha0xEFF00000	0xEFF1FFFF	FMAN Ucode (current bank)	128KB
233e7222b5fSPrabhakar Kushwaha0xEF300000	0xEFEFFFFF	rootfs (alternate bank)		12MB
234b5b06fb7SYork Sun0xEE800000	0xEE8FFFFF	device tree (alternate bank)	1MB
235b5b06fb7SYork Sun0xEE020000	0xEE6FFFFF	Linux.uImage (alternate bank)	6MB+896KB
236b5b06fb7SYork Sun0xEE000000	0xEE01FFFF	RCW (alternate bank)		128KB
237*a187559eSBin Meng0xEDF40000	0xEDFFFFFF	U-Boot (alternate bank)		768KB
238*a187559eSBin Meng0xEDF20000	0xEDF3FFFF	U-Boot env (alternate bank)	128KB
239e222b1f3SPrabhakar Kushwaha0xEDF00000	0xEDF1FFFF	FMAN ucode (alternate bank)	128KB
240e7222b5fSPrabhakar Kushwaha0xED300000	0xEDEFFFFF	rootfs (current bank)		12MB
241b5b06fb7SYork Sun0xEC800000	0xEC8FFFFF	device tree (current bank)	1MB
242b5b06fb7SYork Sun0xEC020000	0xEC6FFFFF	Linux.uImage (current bank)	6MB+896KB
243b5b06fb7SYork Sun0xEC000000	0xEC01FFFF	RCW (current bank)		128KB
244b5b06fb7SYork Sun
245b5b06fb7SYork SunVarious Software configurations/environment variables/commands
246b5b06fb7SYork Sun--------------------------------------------------------------
247b5b06fb7SYork SunThe below commands apply to both B4860QDS and B4420QDS.
248b5b06fb7SYork Sun
249*a187559eSBin Meng1. U-Boot environment variable hwconfig
250b5b06fb7SYork Sun   The default hwconfig is:
251b5b06fb7SYork Sun	hwconfig=fsl_ddr:ctlr_intlv=null,bank_intlv=cs0_cs1;usb1:
252b5b06fb7SYork Sun					dr_mode=host,phy_type=ulpi
253b5b06fb7SYork Sun   Note: For USB gadget set "dr_mode=peripheral"
254b5b06fb7SYork Sun
255b5b06fb7SYork Sun2. FMAN Ucode versions
256b5b06fb7SYork Sun   fsl_fman_ucode_B4860_106_3_6.bin
257b5b06fb7SYork Sun
258b5b06fb7SYork Sun3. Switching to alternate bank
259b5b06fb7SYork Sun   Commands for switching to alternate bank.
260b5b06fb7SYork Sun
261b5b06fb7SYork Sun	1. To change from vbank0 to vbank2
262b5b06fb7SYork Sun		=> qixis_reset altbank (it will boot using vbank2)
263b5b06fb7SYork Sun
264b5b06fb7SYork Sun	2.To change from vbank2 to vbank0
265b5b06fb7SYork Sun		=> qixis reset (it will boot using vbank0)
266b5b06fb7SYork Sun
267b5b06fb7SYork Sun4. To change personality of board
268b5b06fb7SYork Sun   For changing personality from B4860 to B4420
269b5b06fb7SYork Sun	1)Boot from vbank0
270*a187559eSBin Meng	2)Flash vbank2 with b4420 rcw and U-Boot
271b5b06fb7SYork Sun	3)Give following commands to uboot prompt
272b5b06fb7SYork Sun	   => mw.b ffdf0040 0x30;
273b5b06fb7SYork Sun	   => mw.b ffdf0010 0x00;
274b5b06fb7SYork Sun	   => mw.b ffdf0062 0x02;
275b5b06fb7SYork Sun	   => mw.b ffdf0050 0x02;
276b5b06fb7SYork Sun	   => mw.b ffdf0010 0x30;
277b5b06fb7SYork Sun	   => reset
278b5b06fb7SYork Sun
279b5b06fb7SYork Sun   Note: Power off cycle will lead to default switch settings.
280b5b06fb7SYork Sun   Note: 0xffdf0000 is the address of the QIXIS FPGA.
281b5b06fb7SYork Sun
282b5b06fb7SYork Sun5. Switching between NOR and NAND boot(RCW src changed from NOR <-> NAND)
283b5b06fb7SYork Sun
284b5b06fb7SYork Sun   To change from NOR to NAND boot give following command on uboot prompt
285b5b06fb7SYork Sun	=> mw.b ffdf0040 0x30
286b5b06fb7SYork Sun	=> mw.b ffdf0010 0x00
287b5b06fb7SYork Sun	=> mw.b 0xffdf0050 0x08
288b5b06fb7SYork Sun	=> mw.b 0xffdf0060 0x82
289b5b06fb7SYork Sun	=> mw.b ffdf0061 0x00
290b5b06fb7SYork Sun	=> mw.b ffdf0010 0x30
291b5b06fb7SYork Sun	=> reset
292b5b06fb7SYork Sun
293b5b06fb7SYork Sun   To change from NAND to NOR boot give following command on uboot prompt:
294b5b06fb7SYork Sun	=> mw.b ffdf0040 0x30
295b5b06fb7SYork Sun	=> mw.b ffdf0010 0x00
296b5b06fb7SYork Sun	=> mw.b 0xffdf0050 0x00(for vbank0) or (mw.b 0xffdf0050 0x02 for vbank2)
297b5b06fb7SYork Sun	=> mw.b 0xffdf0060 0x12
298b5b06fb7SYork Sun	=> mw.b ffdf0061 0x01
299b5b06fb7SYork Sun	=> mw.b ffdf0010 0x30
300b5b06fb7SYork Sun	=> reset
301b5b06fb7SYork Sun
302b5b06fb7SYork Sun   Note: Power off cycle will lead to default switch settings.
303b5b06fb7SYork Sun   Note: 0xffdf0000 is the address of the QIXIS FPGA.
304b5b06fb7SYork Sun
305b5b06fb7SYork Sun6.  Ethernet interfaces for B4860QDS
306b5b06fb7SYork Sun   Serdes protocosl tested:
307b5b06fb7SYork Sun   0x2a, 0x8d (serdes1, serdes2) [DEFAULT]
308b5b06fb7SYork Sun   0x2a, 0xb2 (serdes1, serdes2)
309b5b06fb7SYork Sun
310b5b06fb7SYork Sun   When using [DEFAULT] RCW, which including 2 * 1G SGMII on board and 2 * 1G
311b5b06fb7SYork Sun   SGMII on SGMII riser card.
312*a187559eSBin Meng   Under U-Boot these network interfaces are recognized as:
313b5b06fb7SYork Sun   FM1@DTSEC3, FM1@DTSEC4, FM1@DTSEC5 and FM1@DTSEC6.
314b5b06fb7SYork Sun
315b5b06fb7SYork Sun   On Linux the interfaces are renamed as:
316b5b06fb7SYork Sun	. eth2 -> fm1-gb2
317b5b06fb7SYork Sun	. eth3 -> fm1-gb3
318b5b06fb7SYork Sun	. eth4 -> fm1-gb4
319b5b06fb7SYork Sun	. eth5 -> fm1-gb5
320b5b06fb7SYork Sun
321b5b06fb7SYork Sun7. RCW and Ethernet interfaces for B4420QDS
322b5b06fb7SYork Sun   Serdes protocosl tested:
323b5b06fb7SYork Sun   0x18, 0x9e (serdes1, serdes2)
324b5b06fb7SYork Sun
325*a187559eSBin Meng   Under U-Boot these network interfaces are recognized as:
326b5b06fb7SYork Sun   FM1@DTSEC3, FM1@DTSEC4 and  e1000#0.
327b5b06fb7SYork Sun
328b5b06fb7SYork Sun   On Linux the interfaces are renamed as:
329b5b06fb7SYork Sun	. eth2 -> fm1-gb2
330b5b06fb7SYork Sun	. eth3 -> fm1-gb3
331c5dfe6ecSPrabhakar Kushwaha
332c5dfe6ecSPrabhakar KushwahaNAND boot with 2 Stage boot loader
333c5dfe6ecSPrabhakar Kushwaha----------------------------------
334c5dfe6ecSPrabhakar KushwahaPBL initialise the internal SRAM and copy SPL(160KB) in SRAM.
335c5dfe6ecSPrabhakar KushwahaSPL further initialise DDR using SPD and environment variables and copy
336*a187559eSBin MengU-Boot(768 KB) from flash to DDR.
337*a187559eSBin MengFinally SPL transer control to U-Boot for futher booting.
338c5dfe6ecSPrabhakar Kushwaha
339c5dfe6ecSPrabhakar KushwahaSPL has following features:
340c5dfe6ecSPrabhakar Kushwaha - Executes within 256K
341c5dfe6ecSPrabhakar Kushwaha - No relocation required
342c5dfe6ecSPrabhakar Kushwaha
343c5dfe6ecSPrabhakar Kushwaha Run time view of SPL framework during  boot :-
344c5dfe6ecSPrabhakar Kushwaha -----------------------------------------------
345c5dfe6ecSPrabhakar Kushwaha Area        | Address                         |
346c5dfe6ecSPrabhakar Kushwaha-----------------------------------------------
347c5dfe6ecSPrabhakar Kushwaha Secure boot | 0xFFFC0000 (32KB)               |
348c5dfe6ecSPrabhakar Kushwaha headers     |                                 |
349c5dfe6ecSPrabhakar Kushwaha -----------------------------------------------
350c5dfe6ecSPrabhakar Kushwaha GD, BD      | 0xFFFC8000 (4KB)                |
351c5dfe6ecSPrabhakar Kushwaha -----------------------------------------------
352c5dfe6ecSPrabhakar Kushwaha ENV         | 0xFFFC9000 (8KB)                |
353c5dfe6ecSPrabhakar Kushwaha -----------------------------------------------
354c5dfe6ecSPrabhakar Kushwaha HEAP        | 0xFFFCB000 (30KB)               |
355c5dfe6ecSPrabhakar Kushwaha -----------------------------------------------
356c5dfe6ecSPrabhakar Kushwaha STACK       | 0xFFFD8000 (22KB)               |
357c5dfe6ecSPrabhakar Kushwaha -----------------------------------------------
358*a187559eSBin Meng U-Boot SPL  | 0xFFFD8000 (160KB)              |
359c5dfe6ecSPrabhakar Kushwaha -----------------------------------------------
360c5dfe6ecSPrabhakar Kushwaha
361c5dfe6ecSPrabhakar KushwahaNAND Flash memory Map on B4860 and B4420QDS
362c5dfe6ecSPrabhakar Kushwaha------------------------------------------
363c5dfe6ecSPrabhakar Kushwaha Start		 End		Definition			Size
364*a187559eSBin Meng0x000000	0x0FFFFF	U-Boot                          1MB
365*a187559eSBin Meng0x140000	0x15FFFF	U-Boot env                      128KB
366c5dfe6ecSPrabhakar Kushwaha0x1A0000	0x1BFFFF	FMAN Ucode                      128KB
367