xref: /OK3568_Linux_fs/u-boot/board/freescale/t208xrdb/README (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunT2080PCIe-RDB is a Freescale Reference Design Board that hosts the T2080 SoC.
2*4882a593SmuzhiyunIt can work in two mode: standalone mode and PCIe endpoint mode.
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunT2080 SoC Overview
5*4882a593Smuzhiyun------------------
6*4882a593SmuzhiyunThe T2080 QorIQ multicore processor combines four dual-threaded e6500 Power
7*4882a593SmuzhiyunArchitecture processor cores with high-performance datapath acceleration
8*4882a593Smuzhiyunlogic and network and peripheral bus interfaces required for networking,
9*4882a593Smuzhiyuntelecom/datacom, wireless infrastructure, and mil/aerospace applications.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunT2080 includes the following functions and features:
12*4882a593Smuzhiyun - Four dual-threads 64-bit Power architecture e6500 cores, up to 1.8GHz
13*4882a593Smuzhiyun - 2MB L2 cache and 512KB CoreNet platform cache (CPC)
14*4882a593Smuzhiyun - Hierarchical interconnect fabric
15*4882a593Smuzhiyun - One 32-/64-bit DDR3/3L SDRAM memory controllers with ECC and interleaving
16*4882a593Smuzhiyun - Data Path Acceleration Architecture (DPAA) incorporating acceleration
17*4882a593Smuzhiyun - 16 SerDes lanes up to 10.3125 GHz
18*4882a593Smuzhiyun - 8 Ethernet interfaces, supporting combinations of the following:
19*4882a593Smuzhiyun   - Up to four 10 Gbps Ethernet MACs
20*4882a593Smuzhiyun   - Up to eight 1 Gbps Ethernet MACs
21*4882a593Smuzhiyun   - Up to four 2.5 Gbps Ethernet MACs
22*4882a593Smuzhiyun - High-speed peripheral interfaces
23*4882a593Smuzhiyun   - Four PCI Express controllers (two PCIe 2.0 and two PCIe 3.0 with SR-IOV)
24*4882a593Smuzhiyun   - Two Serial RapidIO 2.0 controllers/ports running at up to 5 GHz
25*4882a593Smuzhiyun - Additional peripheral interfaces
26*4882a593Smuzhiyun   - Two serial ATA (SATA 2.0) controllers
27*4882a593Smuzhiyun   - Two high-speed USB 2.0 controllers with integrated PHY
28*4882a593Smuzhiyun   - Enhanced secure digital host controller (SD/SDHC/SDXC/eMMC)
29*4882a593Smuzhiyun   - Enhanced serial peripheral interface (eSPI)
30*4882a593Smuzhiyun   - Four I2C controllers
31*4882a593Smuzhiyun   - Four 2-pin UARTs or two 4-pin UARTs
32*4882a593Smuzhiyun   - Integrated Flash Controller supporting NAND and NOR flash
33*4882a593Smuzhiyun - Three eight-channel DMA engines
34*4882a593Smuzhiyun - Support for hardware virtualization and partitioning enforcement
35*4882a593Smuzhiyun - QorIQ Platform's Trust Architecture 2.0
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunDifferences between T2080 and T2081
38*4882a593Smuzhiyun-----------------------------------
39*4882a593Smuzhiyun  Feature		T2080	 T2081
40*4882a593Smuzhiyun  1G Ethernet numbers:  8	 6
41*4882a593Smuzhiyun  10G Ethernet numbers: 4	 2
42*4882a593Smuzhiyun  SerDes lanes:		16	 8
43*4882a593Smuzhiyun  Serial RapidIO,RMan:  2	 no
44*4882a593Smuzhiyun  SATA Controller:	2	 no
45*4882a593Smuzhiyun  Aurora:		yes	 no
46*4882a593Smuzhiyun  SoC Package:		896-pins 780-pins
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunT2080PCIe-RDB board Overview
50*4882a593Smuzhiyun----------------------------
51*4882a593Smuzhiyun - SERDES Configuration
52*4882a593Smuzhiyun     - SerDes-1 Lane A-B: to two 10G XFI fiber (MAC9 & MAC10)
53*4882a593Smuzhiyun     - SerDes-1 Lane C-D: to two 10G Base-T (MAC1 & MAC2)
54*4882a593Smuzhiyun     - SerDes-1 Lane E-H: to PCIe Goldfinger (PCIe4 x4, Gen3)
55*4882a593Smuzhiyun     - SerDes-2 Lane A-D: to PCIe Slot (PCIe1 x4, Gen2)
56*4882a593Smuzhiyun     - SerDes-2 Lane E-F: to C293 secure co-processor (PCIe2 x2)
57*4882a593Smuzhiyun     - SerDes-2 Lane G-H: to SATA1 & SATA2
58*4882a593Smuzhiyun - Ethernet
59*4882a593Smuzhiyun     - Two on-board 10M/100M/1G RGMII ethernet ports
60*4882a593Smuzhiyun     - Two on-board 10Gbps XFI fiber ports
61*4882a593Smuzhiyun     - Two on-board 10Gbps Base-T copper ports
62*4882a593Smuzhiyun - DDR Memory
63*4882a593Smuzhiyun     - Supports 72bit 4GB DDR3-LP SODIMM
64*4882a593Smuzhiyun - PCIe
65*4882a593Smuzhiyun     - One PCIe x4 gold-finger
66*4882a593Smuzhiyun     - One PCIe x4 connector
67*4882a593Smuzhiyun     - One PCIe x2 end-point device (C293 Crypto co-processor)
68*4882a593Smuzhiyun - IFC/Local Bus
69*4882a593Smuzhiyun     - NOR:  128MB 16-bit NOR Flash
70*4882a593Smuzhiyun     - NAND: 1GB 8-bit NAND flash
71*4882a593Smuzhiyun     - CPLD: for system controlling with programable header on-board
72*4882a593Smuzhiyun - SATA
73*4882a593Smuzhiyun     - Two SATA 2.0 onnectors on-board
74*4882a593Smuzhiyun - USB
75*4882a593Smuzhiyun     - Supports two USB 2.0 ports with integrated PHYs
76*4882a593Smuzhiyun     - Two type A ports with 5V@1.5A per port.
77*4882a593Smuzhiyun - SDHC
78*4882a593Smuzhiyun     - one TF-card connector on-board
79*4882a593Smuzhiyun - SPI
80*4882a593Smuzhiyun     -  On-board 64MB SPI flash
81*4882a593Smuzhiyun - Other
82*4882a593Smuzhiyun     - Two Serial ports
83*4882a593Smuzhiyun     - Four I2C ports
84*4882a593Smuzhiyun
85*4882a593Smuzhiyun
86*4882a593SmuzhiyunSystem Memory map
87*4882a593Smuzhiyun-----------------
88*4882a593SmuzhiyunStart Address  End Address      Description			Size
89*4882a593Smuzhiyun0xF_FFDF_0000  0xF_FFDF_0FFF    IFC - CPLD			4KB
90*4882a593Smuzhiyun0xF_FF80_0000  0xF_FF80_FFFF    IFC - NAND Flash		64KB
91*4882a593Smuzhiyun0xF_FE00_0000  0xF_FEFF_FFFF    CCSRBAR				16MB
92*4882a593Smuzhiyun0xF_F803_0000  0xF_F803_FFFF    PCI Express 4 I/O Space		64KB
93*4882a593Smuzhiyun0xF_F802_0000  0xF_F802_FFFF    PCI Express 3 I/O Space		64KB
94*4882a593Smuzhiyun0xF_F801_0000  0xF_F801_FFFF    PCI Express 2 I/O Space		64KB
95*4882a593Smuzhiyun0xF_F800_0000  0xF_F800_FFFF    PCI Express 1 I/O Space		64KB
96*4882a593Smuzhiyun0xF_F600_0000  0xF_F7FF_FFFF    Queue manager software portal	32MB
97*4882a593Smuzhiyun0xF_F400_0000  0xF_F5FF_FFFF    Buffer manager software portal	32MB
98*4882a593Smuzhiyun0xF_E800_0000  0xF_EFFF_FFFF    IFC - NOR Flash			128MB
99*4882a593Smuzhiyun0xF_0000_0000  0xF_003F_FFFF    DCSR				4MB
100*4882a593Smuzhiyun0xC_4000_0000  0xC_4FFF_FFFF    PCI Express 4 Mem Space		256MB
101*4882a593Smuzhiyun0xC_3000_0000  0xC_3FFF_FFFF    PCI Express 3 Mem Space		256MB
102*4882a593Smuzhiyun0xC_2000_0000  0xC_2FFF_FFFF    PCI Express 2 Mem Space		256MB
103*4882a593Smuzhiyun0xC_0000_0000  0xC_1FFF_FFFF    PCI Express 1 Mem Space		512MB
104*4882a593Smuzhiyun0x0_0000_0000  0x0_ffff_ffff    DDR				4GB
105*4882a593Smuzhiyun
106*4882a593Smuzhiyun
107*4882a593Smuzhiyun128M NOR Flash memory Map
108*4882a593Smuzhiyun-------------------------
109*4882a593SmuzhiyunStart Address   End Address	Definition			Max size
110*4882a593Smuzhiyun0xEFF40000	0xEFFFFFFF	U-Boot (current bank)		768KB
111*4882a593Smuzhiyun0xEFF20000	0xEFF3FFFF	U-Boot env (current bank)	128KB
112*4882a593Smuzhiyun0xEFF00000	0xEFF1FFFF	FMAN Ucode (current bank)	128KB
113*4882a593Smuzhiyun0xEFE00000	0xEFE3FFFF	PHY CS4315 firmware		256KB
114*4882a593Smuzhiyun0xED300000	0xEFEFFFFF	rootfs (alt bank)		44MB
115*4882a593Smuzhiyun0xEC800000	0xEC8FFFFF	Hardware device tree (alt bank)	1MB
116*4882a593Smuzhiyun0xEC020000	0xEC7FFFFF	Linux.uImage (alt bank)		7MB + 875KB
117*4882a593Smuzhiyun0xEC000000	0xEC01FFFF	RCW (alt bank)			128KB
118*4882a593Smuzhiyun0xEBF40000	0xEBFFFFFF	U-Boot (alt bank)		768KB
119*4882a593Smuzhiyun0xEBF20000	0xEBF3FFFF	U-Boot env (alt bank)		128KB
120*4882a593Smuzhiyun0xEBF00000	0xEBF1FFFF	FMAN ucode (alt bank)		128KB
121*4882a593Smuzhiyun0xEBE00000	0xEBE3FFFF	PHY CS4315 firmware (alt bank)	256KB
122*4882a593Smuzhiyun0xE9300000	0xEBEFFFFF	rootfs (current bank)		44MB
123*4882a593Smuzhiyun0xE8800000	0xE88FFFFF	Hardware device tree (cur bank)	1MB
124*4882a593Smuzhiyun0xE8020000	0xE86FFFFF	Linux.uImage (current bank)	7MB + 875KB
125*4882a593Smuzhiyun0xE8000000	0xE801FFFF	RCW (current bank)		128KB
126*4882a593Smuzhiyun
127*4882a593Smuzhiyun
128*4882a593SmuzhiyunT2080PCIe-RDB Ethernet Port Map
129*4882a593Smuzhiyun-------------------------------
130*4882a593SmuzhiyunLabel    In Uboot      In Linux     FMan Address   Comments    PHY
131*4882a593SmuzhiyunETH0     FM1@GTEC1     fm1-mac9     0xfe4f0000     10G SFP+   (CS4315)
132*4882a593SmuzhiyunETH1     FM1@GTEC2     fm1-mac10    0xfe4f2000     10G SFP+   (CS4315)
133*4882a593SmuzhiyunETH2     FM1@GTEC3     fm1-mac1     0xfe4e0000     10G Base-T (AQ1202)
134*4882a593SmuzhiyunETH3     FM1@GTEC4     fm1-mac2     0xfe4e2000     10G Base-T (AQ1202)
135*4882a593SmuzhiyunETH4     FM1@DTSEC3    fm1-mac3     0xfe4e4000     1G  RGMII  (RTL8211E)
136*4882a593SmuzhiyunETH5     FM1@DTSEC4    fm1-mac4     0xfe4e6000     1G  RGMII  (RTL8211E)
137*4882a593Smuzhiyun
138*4882a593Smuzhiyun
139*4882a593SmuzhiyunT2080PCIe-RDB Default DIP-Switch setting
140*4882a593Smuzhiyun----------------------------------------
141*4882a593SmuzhiyunSW1[1:8] = '00010011'
142*4882a593SmuzhiyunSW2[1:8] = '10111111'
143*4882a593SmuzhiyunSW3[1:8] = '11100001'
144*4882a593Smuzhiyun
145*4882a593SmuzhiyunSoftware configurations and board settings
146*4882a593Smuzhiyun------------------------------------------
147*4882a593Smuzhiyun1. NOR boot:
148*4882a593Smuzhiyun   a. build NOR boot image
149*4882a593Smuzhiyun	$ make T2080RDB_config
150*4882a593Smuzhiyun	$ make
151*4882a593Smuzhiyun   b. program u-boot.bin image to NOR flash
152*4882a593Smuzhiyun	=> tftp 1000000 u-boot.bin
153*4882a593Smuzhiyun	=> pro off all;era eff40000 efffffff;cp.b 1000000 eff40000 $filesize
154*4882a593Smuzhiyun	set SW1[1:8] = '00010011', SW2[1] = '1', SW3[4] = '0' for NOR boot
155*4882a593Smuzhiyun
156*4882a593Smuzhiyun   Switching between default bank and alternate bank on NOR flash
157*4882a593Smuzhiyun   To change boot source to vbank4:
158*4882a593Smuzhiyun	via software:   run command 'cpld reset altbank' in U-Boot.
159*4882a593Smuzhiyun	via DIP-switch: set SW3[5:7] = '100'
160*4882a593Smuzhiyun
161*4882a593Smuzhiyun   To change boot source to vbank0:
162*4882a593Smuzhiyun	via software:   run command 'cpld reset' in U-Boot.
163*4882a593Smuzhiyun	via DIP-Switch: set SW3[5:7] = '000'
164*4882a593Smuzhiyun
165*4882a593Smuzhiyun2. NAND Boot:
166*4882a593Smuzhiyun   a. build PBL image for NAND boot
167*4882a593Smuzhiyun	$ make T2080RDB_NAND_config
168*4882a593Smuzhiyun	$ make
169*4882a593Smuzhiyun   b. program u-boot-with-spl-pbl.bin to NAND flash
170*4882a593Smuzhiyun	=> tftp 1000000 u-boot-with-spl-pbl.bin
171*4882a593Smuzhiyun	=> nand erase 0 d0000
172*4882a593Smuzhiyun	=> nand write 1000000 0 $filesize
173*4882a593Smuzhiyun	set SW1[1:8] = '10000010', SW2[1] = '1', SW3[4] = '1' for NAND boot
174*4882a593Smuzhiyun
175*4882a593Smuzhiyun3. SPI Boot:
176*4882a593Smuzhiyun   a. build PBL image for SPI boot
177*4882a593Smuzhiyun	$ make T2080RDB_SPIFLASH_config
178*4882a593Smuzhiyun	$ make
179*4882a593Smuzhiyun   b. program u-boot-with-spl-pbl.bin to SPI flash
180*4882a593Smuzhiyun	=> tftp 1000000 u-boot-with-spl-pbl.bin
181*4882a593Smuzhiyun	=> sf probe 0
182*4882a593Smuzhiyun	=> sf erase 0 d0000
183*4882a593Smuzhiyun	=> sf write 1000000 0 $filesize
184*4882a593Smuzhiyun	set SW1[1:8] = '00100010', SW2[1] ='1' for SPI boot
185*4882a593Smuzhiyun
186*4882a593Smuzhiyun4. SD Boot:
187*4882a593Smuzhiyun   a. build PBL image for SD boot
188*4882a593Smuzhiyun	$ make T2080RDB_SDCARD_config
189*4882a593Smuzhiyun	$ make
190*4882a593Smuzhiyun   b. program u-boot-with-spl-pbl.bin to micro-SD/TF card
191*4882a593Smuzhiyun	=> tftp 1000000 u-boot-with-spl-pbl.bin
192*4882a593Smuzhiyun	=> mmc write 1000000 8 0x800
193*4882a593Smuzhiyun	set SW1[1:8] = '00100000', SW2[1] = '0' for SD boot
194*4882a593Smuzhiyun
195*4882a593Smuzhiyun
196*4882a593Smuzhiyun2-stage NAND/SPI/SD boot loader
197*4882a593Smuzhiyun-------------------------------
198*4882a593SmuzhiyunPBL initializes the internal CPC-SRAM and copy SPL(160K) to SRAM.
199*4882a593SmuzhiyunSPL further initializes DDR using SPD and environment variables
200*4882a593Smuzhiyunand copy U-Boot(768 KB) from NAND/SPI/SD device to DDR.
201*4882a593SmuzhiyunFinally SPL transers control to U-Boot for futher booting.
202*4882a593Smuzhiyun
203*4882a593SmuzhiyunSPL has following features:
204*4882a593Smuzhiyun - Executes within 256K
205*4882a593Smuzhiyun - No relocation required
206*4882a593Smuzhiyun
207*4882a593SmuzhiyunRun time view of SPL framework
208*4882a593Smuzhiyun-------------------------------------------------
209*4882a593Smuzhiyun|Area		   | Address			|
210*4882a593Smuzhiyun-------------------------------------------------
211*4882a593Smuzhiyun|SecureBoot header | 0xFFFC0000 (32KB)		|
212*4882a593Smuzhiyun-------------------------------------------------
213*4882a593Smuzhiyun|GD, BD		   | 0xFFFC8000 (4KB)		|
214*4882a593Smuzhiyun-------------------------------------------------
215*4882a593Smuzhiyun|ENV		   | 0xFFFC9000 (8KB)		|
216*4882a593Smuzhiyun-------------------------------------------------
217*4882a593Smuzhiyun|HEAP		   | 0xFFFCB000 (50KB)		|
218*4882a593Smuzhiyun-------------------------------------------------
219*4882a593Smuzhiyun|STACK		   | 0xFFFD8000 (22KB)		|
220*4882a593Smuzhiyun-------------------------------------------------
221*4882a593Smuzhiyun|U-Boot SPL	   | 0xFFFD8000 (160KB)		|
222*4882a593Smuzhiyun-------------------------------------------------
223*4882a593Smuzhiyun
224*4882a593SmuzhiyunNAND Flash memory Map on T2080RDB
225*4882a593Smuzhiyun--------------------------------------------------------------
226*4882a593SmuzhiyunStart		End		Definition	Size
227*4882a593Smuzhiyun0x000000	0x0FFFFF	U-Boot img	1MB  (2 blocks)
228*4882a593Smuzhiyun0x100000	0x17FFFF	U-Boot env	512KB (1 block)
229*4882a593Smuzhiyun0x180000	0x1FFFFF	FMAN ucode	512KB (1 block)
230*4882a593Smuzhiyun0x200000	0x27FFFF	CS4315 ucode	512KB (1 block)
231*4882a593Smuzhiyun
232*4882a593Smuzhiyun
233*4882a593SmuzhiyunMicro SD Card memory Map on T2080RDB
234*4882a593Smuzhiyun----------------------------------------------------
235*4882a593SmuzhiyunBlock		#blocks		Definition	Size
236*4882a593Smuzhiyun0x008		2048		U-Boot img	1MB
237*4882a593Smuzhiyun0x800		0016		U-Boot env	8KB
238*4882a593Smuzhiyun0x820		0128		FMAN ucode	64KB
239*4882a593Smuzhiyun0x8a0		0512		CS4315 ucode	256KB
240*4882a593Smuzhiyun
241*4882a593Smuzhiyun
242*4882a593SmuzhiyunSPI Flash memory Map on T2080RDB
243*4882a593Smuzhiyun----------------------------------------------------
244*4882a593SmuzhiyunStart		End		Definition	Size
245*4882a593Smuzhiyun0x000000	0x0FFFFF	U-Boot img	1MB
246*4882a593Smuzhiyun0x100000	0x101FFF	U-Boot env	8KB
247*4882a593Smuzhiyun0x110000	0x11FFFF	FMAN ucode	64KB
248*4882a593Smuzhiyun0x120000        0x15FFFF        CS4315 ucode	256KB
249*4882a593Smuzhiyun
250*4882a593Smuzhiyun
251*4882a593SmuzhiyunHow to update the ucode of Cortina CS4315/CS4340 10G PHY
252*4882a593Smuzhiyun--------------------------------------------------------
253*4882a593Smuzhiyun=> tftp 1000000 CS4315-CS4340-PHY-ucode.txt
254*4882a593Smuzhiyun=> pro off all;era 0xefe00000 0xefefffff;cp.b 1000000 0xefe00000 $filesize
255*4882a593Smuzhiyun
256*4882a593Smuzhiyun
257*4882a593SmuzhiyunHow to update the ucode of Freescale FMAN
258*4882a593Smuzhiyun-----------------------------------------
259*4882a593Smuzhiyun=> tftp 1000000 fsl_fman_ucode_t2080_r1.0.bin
260*4882a593Smuzhiyun=> pro off all;erase 0xeff00000 0xeff1ffff;cp 1000000 0xeff00000 $filesize
261*4882a593Smuzhiyun
262*4882a593Smuzhiyun
263*4882a593SmuzhiyunFor more details, please refer to T2080PCIe-RDB User Guide and access
264*4882a593Smuzhiyunwebsite www.freescale.com and Freescale QorIQ SDK Infocenter document.
265