blob: 4166cc9c57fb89836a21bef44943b5631fa0c34e [file] [log] [blame]
Akshay Bhatff383222016-07-29 11:44:46 -04001/* Calibrations */
2/* ZQ */
3DATA 4, MX6_MMDC_P0_MPZQHWCTRL, 0xa1390003
4/* write leveling */
5DATA 4, MX6_MMDC_P0_MPWLDECTRL0, 0x001F001F
6DATA 4, MX6_MMDC_P0_MPWLDECTRL1, 0x001F001F
7DATA 4, MX6_MMDC_P1_MPWLDECTRL0, 0x001F001F
8DATA 4, MX6_MMDC_P1_MPWLDECTRL1, 0x001F001F
9/* Read DQS Gating calibration */
10DATA 4, MX6_MMDC_P0_MPDGCTRL0, 0x45380544
11DATA 4, MX6_MMDC_P0_MPDGCTRL1, 0x05280530
12DATA 4, MX6_MMDC_P1_MPDGCTRL0, 0x4530053C
13DATA 4, MX6_MMDC_P1_MPDGCTRL1, 0x0530050C
14/* Read calibration */
15DATA 4, MX6_MMDC_P0_MPRDDLCTL, 0x36303032
16DATA 4, MX6_MMDC_P1_MPRDDLCTL, 0x38363042
17/* Write calibration */
18DATA 4, MX6_MMDC_P0_MPWRDLCTL, 0x3A3A423E
19DATA 4, MX6_MMDC_P1_MPWRDLCTL, 0x4A38483E
20/* read data bit delay */
21DATA 4, MX6_MMDC_P0_MPRDDQBY0DL, 0x33333333
22DATA 4, MX6_MMDC_P0_MPRDDQBY1DL, 0x33333333
23DATA 4, MX6_MMDC_P0_MPRDDQBY2DL, 0x33333333
24DATA 4, MX6_MMDC_P0_MPRDDQBY3DL, 0x33333333
25DATA 4, MX6_MMDC_P1_MPRDDQBY0DL, 0x33333333
26DATA 4, MX6_MMDC_P1_MPRDDQBY1DL, 0x33333333
27DATA 4, MX6_MMDC_P1_MPRDDQBY2DL, 0x33333333
28DATA 4, MX6_MMDC_P1_MPRDDQBY3DL, 0x33333333
29
30/* Complete calibration by forced measurment */
31DATA 4, MX6_MMDC_P0_MPMUR0, 0x00000800
32DATA 4, MX6_MMDC_P1_MPMUR0, 0x00000800
33
34/* MMDC init */
35DATA 4, MX6_MMDC_P0_MDPDC, 0x00020036
36DATA 4, MX6_MMDC_P0_MDOTC, 0x09444040
37DATA 4, MX6_MMDC_P0_MDCFG0, 0x8A8F79A4
38DATA 4, MX6_MMDC_P0_MDCFG1, 0xDB538E64
39DATA 4, MX6_MMDC_P0_MDCFG2, 0x01ff00db
40DATA 4, MX6_MMDC_P0_MDMISC, 0x00001740
41DATA 4, MX6_MMDC_P0_MDSCR, 0x00008000
42DATA 4, MX6_MMDC_P0_MDRWD, 0x000026d2
43DATA 4, MX6_MMDC_P0_MDOR, 0x008F1023
44DATA 4, MX6_MMDC_P0_MDASP, 0x00000047
45DATA 4, MX6_MMDC_P0_MDCTL, 0x841a0000
46
47/* Initialize memory */
48DATA 4, MX6_MMDC_P0_MDSCR, 0x04088032
49DATA 4, MX6_MMDC_P0_MDSCR, 0x0408803a
50DATA 4, MX6_MMDC_P0_MDSCR, 0x00008033
51DATA 4, MX6_MMDC_P0_MDSCR, 0x0000803b
52DATA 4, MX6_MMDC_P0_MDSCR, 0x00408031
53DATA 4, MX6_MMDC_P0_MDSCR, 0x00408039
54DATA 4, MX6_MMDC_P0_MDSCR, 0x09408030
55DATA 4, MX6_MMDC_P0_MDSCR, 0x09408038
56DATA 4, MX6_MMDC_P0_MDSCR, 0x04008040
57DATA 4, MX6_MMDC_P0_MDSCR, 0x04008048
58DATA 4, MX6_MMDC_P0_MDREF, 0x00005800
59DATA 4, MX6_MMDC_P0_MPODTCTRL, 0x00011117
60DATA 4, MX6_MMDC_P1_MPODTCTRL, 0x00011117
61DATA 4, MX6_MMDC_P0_MDPDC, 0x00025576
62DATA 4, MX6_MMDC_P0_MAPSR, 0x00011006
63DATA 4, MX6_MMDC_P0_MDSCR, 0x00000000