xref: /OK3568_Linux_fs/u-boot/board/freescale/bsc9131rdb/README (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunOverview
2*4882a593Smuzhiyun--------
3*4882a593Smuzhiyun- BSC9131 is integrated device that targets Femto base station market.
4*4882a593Smuzhiyun It combines Power Architecture e500v2 and DSP StarCore SC3850 core
5*4882a593Smuzhiyun technologies with MAPLE-B2F baseband acceleration processing elements.
6*4882a593Smuzhiyun- It's MAPLE disabled personality is called 9231.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunThe BSC9131 SoC includes the following function and features:
9*4882a593Smuzhiyun. Power Architecture subsystem including a e500 processor with 256-Kbyte shared
10*4882a593Smuzhiyun  L2 cache
11*4882a593Smuzhiyun. StarCore SC3850 DSP subsystem with a 512-Kbyte private L2 cache
12*4882a593Smuzhiyun. The Multi Accelerator Platform Engine for Femto BaseStation Baseband
13*4882a593Smuzhiyun  Processing (MAPLE-B2F)
14*4882a593Smuzhiyun. A multi-standard baseband algorithm accelerator for Channel Decoding/Encoding,
15*4882a593Smuzhiyun Fourier Transforms, UMTS chip rate processing, LTE UP/DL Channel processing,
16*4882a593Smuzhiyun and CRC algorithms
17*4882a593Smuzhiyun. Consists of accelerators for Convolution, Filtering, Turbo Encoding,
18*4882a593Smuzhiyun Turbo Decoding, Viterbi decoding, Chiprate processing, and Matrix Inversion
19*4882a593Smuzhiyun operations
20*4882a593Smuzhiyun. DDR3/3L memory interface with 32-bit data width without ECC and 16-bit with
21*4882a593Smuzhiyun ECC, up to 400-MHz clock/800 MHz data rate
22*4882a593Smuzhiyun. Dedicated security engine featuring trusted boot
23*4882a593Smuzhiyun. DMA controller
24*4882a593Smuzhiyun. OCNDMA with four bidirectional channels
25*4882a593Smuzhiyun. Interfaces
26*4882a593Smuzhiyun. Two triple-speed Gigabit Ethernet controllers featuring network acceleration
27*4882a593Smuzhiyun  including IEEE 1588. v2 hardware support and virtualization (eTSEC)
28*4882a593Smuzhiyun. eTSEC 1 supports RGMII/RMII
29*4882a593Smuzhiyun. eTSEC 2 supports RGMII
30*4882a593Smuzhiyun. High-speed USB 2.0 host and device controller with ULPI interface
31*4882a593Smuzhiyun. Enhanced secure digital (SD/MMC) host controller (eSDHC)
32*4882a593Smuzhiyun. Antenna interface controller (AIC), supporting three industry standard
33*4882a593Smuzhiyun  JESD207/three custom ADI RF interfaces (two dual port and one single port)
34*4882a593Smuzhiyun  and three MAXIM's MaxPHY serial interfaces
35*4882a593Smuzhiyun. ADI lanes support both full duplex FDD support and half duplex TDD support
36*4882a593Smuzhiyun. Universal Subscriber Identity Module (USIM) interface that facilitates
37*4882a593Smuzhiyun  communication to SIM cards or Eurochip pre-paid phone cards
38*4882a593Smuzhiyun. TDM with one TDM port
39*4882a593Smuzhiyun. Two DUART, four eSPI, and two I2C controllers
40*4882a593Smuzhiyun. Integrated Flash memory controller (IFC)
41*4882a593Smuzhiyun. TDM with 256 channels
42*4882a593Smuzhiyun. GPIO
43*4882a593Smuzhiyun. Sixteen 32-bit timers
44*4882a593Smuzhiyun
45*4882a593SmuzhiyunThe e500 core subsystem within the Power Architecture consists of the following:
46*4882a593Smuzhiyun. 32-Kbyte L1 instruction cache
47*4882a593Smuzhiyun. 32-Kbyte L1 data cache
48*4882a593Smuzhiyun. 256-Kbyte L2 cache/L2 memory/L2 stash
49*4882a593Smuzhiyun. programmable interrupt controller (PIC)
50*4882a593Smuzhiyun. Debug support
51*4882a593Smuzhiyun. Timers
52*4882a593Smuzhiyun
53*4882a593SmuzhiyunThe SC3850 core subsystem consists of the following:
54*4882a593Smuzhiyun. 32 Kbyte 8-way level 1 instruction cache (L1 ICache)
55*4882a593Smuzhiyun. 32 Kbyte 8-way level 1 data cache (L1 DCache)
56*4882a593Smuzhiyun. 512 Kbyte 8-way level 2 unified instruction/data cache (M2 memory)
57*4882a593Smuzhiyun. Memory management unit (MMU)
58*4882a593Smuzhiyun. Enhanced programmable interrupt controller (EPIC)
59*4882a593Smuzhiyun. Debug and profiling unit (DPU)
60*4882a593Smuzhiyun. Two 32-bit timers
61*4882a593Smuzhiyun
62*4882a593SmuzhiyunBSC9131RDB board Overview
63*4882a593Smuzhiyun-------------------------
64*4882a593Smuzhiyun 1Gbyte DDR3 (on board DDR)
65*4882a593Smuzhiyun 128Mbyte 2K page size NAND Flash
66*4882a593Smuzhiyun 256 Kbit M24256 I2C EEPROM
67*4882a593Smuzhiyun 128 Mbit SPI Flash memory
68*4882a593Smuzhiyun USB-ULPI
69*4882a593Smuzhiyun eTSEC1: Connected to RGMII PHY
70*4882a593Smuzhiyun eTSEC2: Connected to RGMII PHY
71*4882a593Smuzhiyun DUART interface: supports one UARTs up to 115200 bps for console display
72*4882a593Smuzhiyun USIM connector
73*4882a593Smuzhiyun
74*4882a593SmuzhiyunFrequency Combinations Supported
75*4882a593Smuzhiyun--------------------------------
76*4882a593SmuzhiyunCore MHz/CCB MHz/DDR(MT/s)
77*4882a593Smuzhiyun1. 1000/500/800
78*4882a593Smuzhiyun2. 800/400/667
79*4882a593Smuzhiyun
80*4882a593SmuzhiyunBoot Methods Supported
81*4882a593Smuzhiyun-----------------------
82*4882a593Smuzhiyun1. NAND Flash
83*4882a593Smuzhiyun2. SPI Flash
84*4882a593Smuzhiyun
85*4882a593SmuzhiyunDefault Boot Method
86*4882a593Smuzhiyun--------------------
87*4882a593SmuzhiyunNAND boot
88*4882a593Smuzhiyun
89*4882a593SmuzhiyunBuilding U-Boot
90*4882a593Smuzhiyun--------------
91*4882a593SmuzhiyunTo build the U-Boot for BSC9131RDB:
92*4882a593Smuzhiyun1. NAND Flash with sysclk 66MHz(J16 on RDB closed, default)
93*4882a593Smuzhiyun	make BSC9131RDB_NAND
94*4882a593Smuzhiyun2. NAND Flash with sysclk 100MHz(J16 on RDB open)
95*4882a593Smuzhiyun	make BSC9131RDB_NAND_SYSCLK100
96*4882a593Smuzhiyun3. SPI Flash with sysclk 66MHz(J16 on RDB closed, default)
97*4882a593Smuzhiyun	make BSC9131RDB_SPIFLASH
98*4882a593Smuzhiyun4. SPI Flash with sysclk 100MHz(J16 on RDB open)
99*4882a593Smuzhiyun	make BSC9131RDB_SPIFLASH_SYSCLK100
100*4882a593Smuzhiyun
101*4882a593SmuzhiyunMemory map
102*4882a593Smuzhiyun-----------
103*4882a593Smuzhiyun 0x0000_0000	0x7FFF_FFFF	DDR			1G cacheable
104*4882a593Smuzhiyun 0xA0000000	0xBFFFFFFF	Shared DSP core L2/M2 space	512M
105*4882a593Smuzhiyun 0xC100_0000	0xC13F_FFFF	MAPLE-2F		4M
106*4882a593Smuzhiyun 0xC1F0_0000	0xC1F3_FFFF	PA SRAM Region 0	256K
107*4882a593Smuzhiyun 0xC1F8_0000	0xC1F9_FFFF	PA SRAM Region 1	128K
108*4882a593Smuzhiyun 0xFED0_0000	0xFED0_3FFF	SEC Secured RAM		16K
109*4882a593Smuzhiyun 0xFEE0_0000	0xFEE0_0FFF	DSP Boot ROM		4K
110*4882a593Smuzhiyun 0xFF60_0000	0xFF6F_FFFF 	DSP CCSR		1M
111*4882a593Smuzhiyun 0xFF70_0000	0xFF7F_FFFF	PA CCSR			1M
112*4882a593Smuzhiyun 0xFF80_0000	0xFFFF_FFFF	Boot Page & NAND Buffer 8M
113*4882a593Smuzhiyun
114*4882a593SmuzhiyunDDR Memory map
115*4882a593Smuzhiyun---------------
116*4882a593Smuzhiyun 0x0000_0000	0x36FF_FFFF	Memory passed onto Linux
117*4882a593Smuzhiyun 0x3700_0000	0x37FF_FFFF	PowerPC-DSP shared control area
118*4882a593Smuzhiyun 0x3800_0000	0x4FFF_FFFF	DSP Private area
119*4882a593Smuzhiyun
120*4882a593Smuzhiyun Out of 880M, passed onto Linux, 1hugetlb page of 256M is reserved for
121*4882a593Smuzhiyun data communcation between PowerPC and DSP core.
122*4882a593Smuzhiyun Rest is PowerPC private area.
123*4882a593Smuzhiyun
124*4882a593SmuzhiyunFlashing Images
125*4882a593Smuzhiyun---------------
126*4882a593SmuzhiyunTo place a new U-Boot image in the NAND flash and then boot
127*4882a593Smuzhiyunwith that new image temporarily, use this:
128*4882a593Smuzhiyun	tftp 1000000 u-boot-nand.bin
129*4882a593Smuzhiyun	nand erase 0 100000
130*4882a593Smuzhiyun	nand write 1000000 0 100000
131*4882a593Smuzhiyun	reset
132*4882a593Smuzhiyun
133*4882a593SmuzhiyunUsing the Device Tree Source File
134*4882a593Smuzhiyun---------------------------------
135*4882a593SmuzhiyunTo create the DTB (Device Tree Binary) image file,
136*4882a593Smuzhiyunuse a command similar to this:
137*4882a593Smuzhiyun
138*4882a593Smuzhiyun	dtc -b 0 -f -I dts -O dtb bsc9131rdb.dts > bsc9131rdb.dtb
139*4882a593Smuzhiyun
140*4882a593SmuzhiyunLikely, that .dts file will come from here;
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun	linux-2.6/arch/powerpc/boot/dts/bsc9131rdb.dts
143*4882a593Smuzhiyun
144*4882a593SmuzhiyunBooting Linux
145*4882a593Smuzhiyun-------------
146*4882a593SmuzhiyunPlace a linux uImage in the TFTP disk area.
147*4882a593Smuzhiyun
148*4882a593Smuzhiyun	tftp 1000000 uImage
149*4882a593Smuzhiyun	tftp 2000000 rootfs.ext2.gz.uboot
150*4882a593Smuzhiyun	tftp c00000 bsc9131rdb.dtb
151*4882a593Smuzhiyun	bootm 1000000 2000000 c00000
152