|
7 | 7 | * STM32MP25 LPDDR4 board configuration
|
8 | 8 | * LPDDR4 1x16Gbits 1x32bits 1200MHz
|
9 | 9 | *
|
10 |
| - * version 1 |
| 10 | + * version 2 |
11 | 11 | * memclk 1200MHz (2x DFI clock)
|
12 | 12 | * width 32 32: full width / 16: half width
|
13 | 13 | * ranks 1 Single or Dual rank
|
|
46 | 46 | #define DDR_INIT3 0x00C40024
|
47 | 47 | #define DDR_INIT4 0x00310008
|
48 | 48 | #define DDR_INIT5 0x00100004
|
49 |
| -#define DDR_INIT6 0x00660050 |
50 |
| -#define DDR_INIT7 0x00050019 |
| 49 | +#define DDR_INIT6 0x00660047 |
| 50 | +#define DDR_INIT7 0x00050047 |
51 | 51 | #define DDR_DIMMCTL 0x00000000
|
52 | 52 | #define DDR_RANKCTL 0x0000066F
|
| 53 | +#define DDR_RANKCTL1 0x00000011 |
53 | 54 | #define DDR_DRAMTMG0 0x1718141A
|
54 | 55 | #define DDR_DRAMTMG1 0x00050524
|
55 | 56 | #define DDR_DRAMTMG2 0x060C1111
|
|
95 | 96 | #define DDR_ADDRMAP11 0x00000007
|
96 | 97 | #define DDR_ODTCFG 0x04000400
|
97 | 98 | #define DDR_ODTMAP 0x00000000
|
98 |
| -#define DDR_SCHED 0x00001B00 |
| 99 | +#define DDR_SCHED 0x80001B00 |
99 | 100 | #define DDR_SCHED1 0x00000000
|
100 | 101 | #define DDR_PERFHPR1 0x04000200
|
101 | 102 | #define DDR_PERFLPR1 0x08000080
|
102 | 103 | #define DDR_PERFWR1 0x08000400
|
| 104 | +#define DDR_SCHED3 0x04040208 |
| 105 | +#define DDR_SCHED4 0x08400810 |
103 | 106 | #define DDR_DBG0 0x00000000
|
104 | 107 | #define DDR_DBG1 0x00000000
|
105 | 108 | #define DDR_DBGCMD 0x00000000
|
106 | 109 | #define DDR_SWCTL 0x00000000
|
| 110 | +#define DDR_SWCTLSTATIC 0x00000000 |
107 | 111 | #define DDR_POISONCFG 0x00000000
|
108 | 112 | #define DDR_PCCFG 0x00000000
|
109 |
| -#define DDR_PCFGR_0 0x00004100 |
| 113 | +#define DDR_PCFGR_0 0x00704100 |
110 | 114 | #define DDR_PCFGW_0 0x00004100
|
111 | 115 | #define DDR_PCTRL_0 0x00000000
|
112 | 116 | #define DDR_PCFGQOS0_0 0x0021000C
|
113 | 117 | #define DDR_PCFGQOS1_0 0x01000080
|
114 | 118 | #define DDR_PCFGWQOS0_0 0x01100C07
|
115 | 119 | #define DDR_PCFGWQOS1_0 0x04000200
|
116 |
| -#define DDR_PCFGR_1 0x00004100 |
| 120 | +#define DDR_PCFGR_1 0x00704100 |
117 | 121 | #define DDR_PCFGW_1 0x00004100
|
118 | 122 | #define DDR_PCTRL_1 0x00000000
|
119 | 123 | #define DDR_PCFGQOS0_1 0x00100007
|
|
148 | 152 | #define DDR_UIA_EXTCALRESVAL 0x00000000
|
149 | 153 | #define DDR_UIA_IS2TTIMING_0 0x00000000
|
150 | 154 | #define DDR_UIA_ODTIMPEDANCE_0 0x00000035
|
151 |
| -#define DDR_UIA_TXIMPEDANCE_0 0x0000003C |
152 |
| -#define DDR_UIA_ATXIMPEDANCE 0x0000001E |
| 155 | +#define DDR_UIA_TXIMPEDANCE_0 0x00000028 |
| 156 | +#define DDR_UIA_ATXIMPEDANCE 0x00000028 |
153 | 157 | #define DDR_UIA_MEMALERTEN 0x00000000
|
154 | 158 | #define DDR_UIA_MEMALERTPUIMP 0x00000000
|
155 | 159 | #define DDR_UIA_MEMALERTVREFLEVEL 0x00000000
|
156 | 160 | #define DDR_UIA_MEMALERTSYNCBYPASS 0x00000000
|
157 | 161 | #define DDR_UIA_DISDYNADRTRI_0 0x00000001
|
158 | 162 | #define DDR_UIA_PHYMSTRTRAININTERVAL_0 0x0000000A
|
159 | 163 | #define DDR_UIA_PHYMSTRMAXREQTOACK_0 0x00000005
|
160 |
| -#define DDR_UIA_WDQSEXT 0x00000000 |
| 164 | +#define DDR_UIA_WDQSEXT 0x00000001 |
161 | 165 | #define DDR_UIA_CALINTERVAL 0x00000009
|
162 | 166 | #define DDR_UIA_CALONCE 0x00000000
|
163 | 167 | #define DDR_UIA_LP4RL_0 0x00000004
|
|
193 | 197 | #define DDR_UIM_MR5_0 0x00000000
|
194 | 198 | #define DDR_UIM_MR6_0 0x00000000
|
195 | 199 | #define DDR_UIM_MR11_0 0x00000066
|
196 |
| -#define DDR_UIM_MR12_0 0x00000050 |
| 200 | +#define DDR_UIM_MR12_0 0x00000047 |
197 | 201 | #define DDR_UIM_MR13_0 0x00000008
|
198 |
| -#define DDR_UIM_MR14_0 0x00000019 |
| 202 | +#define DDR_UIM_MR14_0 0x00000047 |
199 | 203 | #define DDR_UIM_MR22_0 0x00000005
|
200 | 204 |
|
201 | 205 | #define DDR_UIS_SWIZZLE_0 0x00000003
|
|
0 commit comments