MT7620 PROGRAMMING GUIDE
Integrated 802.11n MAC/BBP and 2.4 GHz RF/FEM Router-on-a-Chip
2.15.5 DDR Initialization Sequence
DDR devices require an initialization sequence before they are ready for re-write access.
The initialization sequence is described below.
1. Wait for 200 μs to set bit[10] to 0 in address 0x1000_0034.
2. Read bit[21] of DDR_CFG1 and wait for it to become 1.
3. Set DDR size and data width in DDR_CFG1 (Please refer to the table).
For DDR Performance, follow the settings provided in these two tables for DDR_CFG0 and DDR_CFG1
according to their DDR sizes. The tables are based on a DDR frequency of 193 MHz.
DDR1: DDR_CFG0/1
DDR2: DDR_CFG0/1
DDR1: DDR_CFG2: 32’h28000033
DDR2: DDR_CFG2: 32’h68000C43
DDR1: DDR_CFG3: 32’h00000002
DDR2: DDR_CFG3: 32’h00000416
DDR1:DDR_CFG4:32’h00000000
DDR2:DDR_CFG4:32’h0000000A