diff options
author | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-04-24 14:39:44 +0200 |
---|---|---|
committer | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-04-30 13:18:43 +0200 |
commit | 85f6551b230771849c959f67779d719794be7e49 (patch) | |
tree | 5287b4b943029c68dd3e838245271e4242ea866e /arch/arm | |
parent | 174758ba8511f68e331d586a8643d96835cbfd33 (diff) |
rk3399: New DMC (denali) driver.
The upstream dynamic memory controller driver suffers
from being:
* unreliable (we have a drop-out rate of about 10%
for 2GB 1600 Micron RAM)
* non-maintainable (the RAM description in the DTS
is register contents to write)
* incorrect (it does not follow the specified initialisation
sequence from the RAM specification)
To address this issues, the patch introduces a new SPD data
based driver.
Tested on RK3399-Q7 with several RAM chip vendors (Micron,
Issi, Nanya) and speed grades (1600 and 1866).
This patch is based on ba29f7b1 of ptomsich/denali-neuronsw.
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/dts/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/dts/rk3399-puma-ddr1600-4gb.dts | 10 | ||||
-rw-r--r-- | arch/arm/dts/rk3399-puma-ddr1866-4gb.dts | 11 | ||||
-rw-r--r-- | arch/arm/dts/rk3399-sdram-ddr3-1600-4gb.dtsi | 140 | ||||
-rw-r--r-- | arch/arm/dts/rk3399-sdram-ddr3-1600.dtsi | 1631 | ||||
-rw-r--r-- | arch/arm/dts/rk3399-sdram-ddr3-1866-4gb.dtsi | 141 | ||||
-rw-r--r-- | arch/arm/dts/rk3399-sdram-ddr3-1866.dtsi | 1629 | ||||
-rw-r--r-- | arch/arm/include/asm/arch-rockchip/sdram_rk3399.h | 2 |
8 files changed, 540 insertions, 3026 deletions
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 0e2ffdb87f..16595a95c8 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -89,7 +89,9 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \ rk3399-gru-bob.dtb \ rk3399-puma-ddr1333.dtb \ rk3399-puma-ddr1600.dtb \ + rk3399-puma-ddr1600-4gb.dtb \ rk3399-puma-ddr1866.dtb \ + rk3399-puma-ddr1866-4gb.dtb \ rk3399-rock960.dtb \ rv1108-elgin-r1.dtb \ rv1108-evb.dtb diff --git a/arch/arm/dts/rk3399-puma-ddr1600-4gb.dts b/arch/arm/dts/rk3399-puma-ddr1600-4gb.dts new file mode 100644 index 0000000000..ff2f878fd4 --- /dev/null +++ b/arch/arm/dts/rk3399-puma-ddr1600-4gb.dts @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ OR X11 +/* + * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH + */ + +/dts-v1/; + +#include "rk3399-puma.dtsi" +#include "rk3399-sdram-ddr3-1600-4gb.dtsi" + diff --git a/arch/arm/dts/rk3399-puma-ddr1866-4gb.dts b/arch/arm/dts/rk3399-puma-ddr1866-4gb.dts new file mode 100644 index 0000000000..81223a309b --- /dev/null +++ b/arch/arm/dts/rk3399-puma-ddr1866-4gb.dts @@ -0,0 +1,11 @@ +/* + * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH + * + * SPDX-License-Identifier: GPL-2.0+ X11 + */ + +/dts-v1/; + +#include "rk3399-puma.dtsi" +#include "rk3399-sdram-ddr3-1866-4gb.dtsi" + diff --git a/arch/arm/dts/rk3399-sdram-ddr3-1600-4gb.dtsi b/arch/arm/dts/rk3399-sdram-ddr3-1600-4gb.dtsi new file mode 100644 index 0000000000..afee3df325 --- /dev/null +++ b/arch/arm/dts/rk3399-sdram-ddr3-1600-4gb.dtsi @@ -0,0 +1,140 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) 2019 Theobroma Systems Design und Consulting GmbH + */ + +&dmc { + /* This SPD models a DDR3-1866M speed-bin. */ + theobroma-systems,spd-data = /bits/ 8 < + 0x01 /* CRC covers 0~125, 128 bytes data */ + 0x10 /* revision level 1.0 */ + 0x0b /* DDR3 SDRAM */ + 0x0b /* module-specific section (bytes 60 ~ 116): LRDIMM */ + 0x35 /* 8 banks, 8 Gb devices */ + 0x21 /* 16 rows, 10 columns */ + 0x03 /* 1.35V and 1.5V operable */ + 0x02 /* 1 rank, x16 device-width */ + 0x02 /* 32 bit (primary) bus-width */ + 0x11 /* fine timebase: 1/1 = 1ps */ + 0x01 /* medium timebase dividend */ + 0x08 /* medium timebase divisor */ + 0x09 /* tCKmin(MTB) .. DDR-1866 */ + 0x00 /* */ + 0x54 /* CAS supported: CL=10, CL=8, CL=6 */ + 0x02 /* CAS supported: CL=13 */ + 0x70 /* tAAmin(MTB) */ + 0x78 /* tWRmin(MTB) */ + 0x70 /* tRCDmin(MTB) */ + 0x30 /* tRRDmin(MTB): 6.0 ns */ + 0x70 /* tRPmin(MTB) */ + 0x11 /* upper nibble for tRC (bits 7~4) and tRAS bits (3~0) */ + 0x10 /* tRASmin(MTB), LSB */ + 0x80 /* tRCmin(MTB), LSB */ + 0xF0 /* tRFCmin(MTB), LSB */ + 0x0A /* tRFCmin(MTB), MSB */ + 0x3C /* tWTRmin(MTB) */ + 0x3C /* tRTPmin(MTB) */ + 0x01 /* upper nibble for tFAWmin */ + 0x18 /* tFAWmin(MTB), LSB */ + 0x00 /* optional features: no DLL-Off, no RZQ/7, no RZQ/6 */ + 0x05 /* thermal/refresh: ASR, 85-95 @ 2x refresh, 0-95 degC */ + 0x00 /* no thermal sensor */ + 0x10 /* stacking/signal-loading: not specified */ + 0xca /* tCKmin(FTB) */ + 0xa6 /* tAAmin(FTB) */ + 0xa6 /* tRCDmin(FTB) */ + 0xa6 /* tRPmin(FTB) */ + 0xa6 /* tRCmin */ + 0x00 /* MAC: tMAW = 8192*tREFI, untested MAC */ + 0x00 /* reserved -- 39 */ + 0x00 /* reserved -- 40 */ + 0x00 /* reserved -- byte 42 */ + 0x00 /* reserved -- byte 43 */ + 0x00 /* reserved -- byte 44 */ + 0x00 /* reserved -- byte 45 */ + 0x00 /* reserved -- byte 46 */ + 0x00 /* reserved -- byte 47 */ + 0x00 /* reserved -- byte 48 */ + 0x00 /* reserved -- byte 49 */ + 0x00 /* reserved -- byte 50 */ + 0x00 /* reserved -- byte 51 */ + 0x00 /* reserved -- byte 52 */ + 0x00 /* reserved -- byte 53 */ + 0x00 /* reserved -- byte 54 */ + 0x00 /* reserved -- byte 55 */ + 0x00 /* reserved -- byte 56 */ + 0x00 /* reserved -- byte 57 */ + 0x00 /* reserved -- byte 58 */ + 0x00 /* reserved -- byte 59 */ + 0x00 /* 60 */ + 0x00 /* 61 */ + 0x1F /* not based on a JEDEC card reference design */ + 0x00 /* 63 */ + 0x00 /* 64 */ + 0x00 /* 65 */ + 0x00 /* 66 */ + 0x00 /* 67 */ + 0x00 /* 68 */ + 0x00 /* 69 */ + 0x00 /* 70 */ + 0x00 /* 71 */ + 0x16 /* 72: DDR3-800 and DDR3-1066: 34ohm drive-strength, 240ohm ODT */ + 0x33 /* 73: DDR3-800 and DDR3-1066: QxODT Control, enable for rank 1 */ + 0x00 /* 74 */ + 0x00 /* 75 */ + 0x00 /* 76 */ + 0x05 /* 77: MR1,2 for 800 & 1066: 60ohm Rtt_Nom, 34ohm drive */ + 0x00 /* 78 */ + 0x00 /* 79 */ + 0x00 /* 80 */ + 0x00 /* 81 */ + 0x00 /* 82 */ + 0x05 /* 83: MR1,2 for 1333 & 1600: 60ohm Rtt_Nom, 34ohm drive */ + 0x84 /* 84 */ + 0x85 /* 85 */ + 0x86 /* 86 */ + 0x87 /* 87 */ + 0x88 /* 88 */ + 0x05 /* 89: MR1,2 for 1866 & 2133: 60ohm Rtt_Nom, 34ohm drive */ + 0x90 + >; + + rockchip,sdram-params = < + 0x1 /* ch0: rank */ + 0xa /* ch0: col */ + 0x3 /* ch0: bk */ + 0x2 /* ch0: bw */ + 0x1 /* ch0: dbw */ + 0x0 /* ch0: row_3_4 */ + 0x10 /* ch0: cs0_row */ + 0x10 /* ch0: cs1_row */ + 1 /* ch0: ddrconfig */ + 0x80151015 /* ch0: ddrtiminga0 */ + 0x14040902 /* ch0: ddrtimingb0 */ + 0x00000002 /* ch0: ddrtimingc0 */ + 0x00006346 /* ch0: devtodev0 */ + 0x0000004c /* ch0: ddrmode */ + 0x00000000 /* ch0: agingx0 */ + 0x1 + 0xa + 0x3 + 0x2 + 0x1 + 0x0 + 0x10 + 0x10 + 1 + 0x80151015 + 0x14040902 + 0x00000002 + 0x00006346 + 0x0000004c + 0x00000000 + 800 /* base: ddr_freq */ + 3 /* base: dramtype */ + 2 /* base: num_channels */ + 13 /* base: stride */ + 1 /* base: odt */ + >; +}; + diff --git a/arch/arm/dts/rk3399-sdram-ddr3-1600.dtsi b/arch/arm/dts/rk3399-sdram-ddr3-1600.dtsi index fcd01f8b46..6fa4dd9ac6 100644 --- a/arch/arm/dts/rk3399-sdram-ddr3-1600.dtsi +++ b/arch/arm/dts/rk3399-sdram-ddr3-1600.dtsi @@ -1,25 +1,120 @@ // SPDX-License-Identifier: GPL-2.0+ /* - * (C) 2017 Theobroma Systems Design und Consulting GmbH + * (C) 2019 Theobroma Systems Design und Consulting GmbH */ &dmc { - rockchip,sdram-params = < - 0x1 - 0xa - 0x3 - 0x2 - 0x1 - 0x0 - 0xf - 0xf - 1 - 0x80151015 - 0x14040902 - 0x00000002 - 0x00006346 - 0x0000004c - 0x00000000 + /* This SPD models a DDR3-1866M speed-bin. */ + theobroma-systems,spd-data = /bits/ 8 < + 0x01 /* CRC covers 0~125, 128 bytes data */ + 0x10 /* revision level 1.0 */ + 0x0b /* DDR3 SDRAM */ + 0x0b /* module-specific section (bytes 60 ~ 116): LRDIMM */ + 0x34 /* 8 banks, 4 Gb devices */ + 0x19 /* 15 rows, 10 columns */ + 0x03 /* 1.35V and 1.5V operable */ + 0x02 /* 1 rank, x16 device-width */ + 0x02 /* 32 bit (primary) bus-width */ + 0x11 /* fine timebase: 1/1 = 1ps */ + 0x01 /* medium timebase dividend */ + 0x08 /* medium timebase divisor */ + 0x09 /* tCKmin(MTB) .. DDR-1866 */ + 0x00 /* */ + 0x54 /* CAS supported: CL=10, CL=8, CL=6 */ + 0x02 /* CAS supported: CL=13 */ + 0x70 /* tAAmin(MTB) */ + 0x78 /* tWRmin(MTB) */ + 0x70 /* tRCDmin(MTB) */ + 0x30 /* tRRDmin(MTB): 6.0 ns */ + 0x70 /* tRPmin(MTB) */ + 0x11 /* upper nibble for tRC (bits 7~4) and tRAS bits (3~0) */ + 0x10 /* tRASmin(MTB), LSB */ + 0x80 /* tRCmin(MTB), LSB */ + 0xF0 /* tRFCmin(MTB), LSB */ + 0x0A /* tRFCmin(MTB), MSB */ + 0x3C /* tWTRmin(MTB) */ + 0x3C /* tRTPmin(MTB) */ + 0x01 /* upper nibble for tFAWmin */ + 0x18 /* tFAWmin(MTB), LSB */ + 0x00 /* optional features: no DLL-Off, no RZQ/7, no RZQ/6 */ + 0x05 /* thermal/refresh: ASR, 85-95 @ 2x refresh, 0-95 degC */ + 0x00 /* no thermal sensor */ + 0x10 /* stacking/signal-loading: not specified */ + 0xca /* tCKmin(FTB) */ + 0xa6 /* tAAmin(FTB) */ + 0xa6 /* tRCDmin(FTB) */ + 0xa6 /* tRPmin(FTB) */ + 0xa6 /* tRCmin */ + 0x00 /* MAC: tMAW = 8192*tREFI, untested MAC */ + 0x00 /* reserved -- 39 */ + 0x00 /* reserved -- 40 */ + 0x00 /* reserved -- byte 42 */ + 0x00 /* reserved -- byte 43 */ + 0x00 /* reserved -- byte 44 */ + 0x00 /* reserved -- byte 45 */ + 0x00 /* reserved -- byte 46 */ + 0x00 /* reserved -- byte 47 */ + 0x00 /* reserved -- byte 48 */ + 0x00 /* reserved -- byte 49 */ + 0x00 /* reserved -- byte 50 */ + 0x00 /* reserved -- byte 51 */ + 0x00 /* reserved -- byte 52 */ + 0x00 /* reserved -- byte 53 */ + 0x00 /* reserved -- byte 54 */ + 0x00 /* reserved -- byte 55 */ + 0x00 /* reserved -- byte 56 */ + 0x00 /* reserved -- byte 57 */ + 0x00 /* reserved -- byte 58 */ + 0x00 /* reserved -- byte 59 */ + 0x00 /* 60 */ + 0x00 /* 61 */ + 0x1F /* not based on a JEDEC card reference design */ + 0x00 /* 63 */ + 0x00 /* 64 */ + 0x00 /* 65 */ + 0x00 /* 66 */ + 0x00 /* 67 */ + 0x00 /* 68 */ + 0x00 /* 69 */ + 0x00 /* 70 */ + 0x00 /* 71 */ + 0x16 /* 72: DDR3-800 and DDR3-1066: 34ohm drive-strength, 240ohm ODT */ + 0x33 /* 73: DDR3-800 and DDR3-1066: QxODT Control, enable for rank 1 */ + 0x00 /* 74 */ + 0x00 /* 75 */ + 0x00 /* 76 */ + 0x05 /* 77: MR1,2 for 800 & 1066: 60ohm Rtt_Nom, 34ohm drive */ + 0x00 /* 78 */ + 0x00 /* 79 */ + 0x00 /* 80 */ + 0x00 /* 81 */ + 0x00 /* 82 */ + 0x05 /* 83: MR1,2 for 1333 & 1600: 60ohm Rtt_Nom, 34ohm drive */ + 0x84 /* 84 */ + 0x85 /* 85 */ + 0x86 /* 86 */ + 0x87 /* 87 */ + 0x88 /* 88 */ + 0x05 /* 89: MR1,2 for 1866 & 2133: 60ohm Rtt_Nom, 34ohm drive */ + 0x90 + >; + + rockchip,sdram-params = < + 0x1 /* ch0: rank */ + 0xa /* ch0: col */ + 0x3 /* ch0: bk */ + 0x2 /* ch0: bw */ + 0x1 /* ch0: dbw */ + 0x0 /* ch0: row_3_4 */ + 0xf /* ch0: cs0_row */ + 0xf /* ch0: cs1_row */ + 1 /* ch0: ddrconfig */ + 0x80151015 /* ch0: ddrtiminga0 */ + 0x14040902 /* ch0: ddrtimingb0 */ + 0x00000002 /* ch0: ddrtimingc0 */ + 0x00006346 /* ch0: devtodev0 */ + 0x0000004c /* ch0: ddrmode */ + 0x00000000 /* ch0: agingx0 */ 0x1 0xa 0x3 @@ -35,1501 +130,11 @@ 0x00006346 0x0000004c 0x00000000 - 800 - 3 - 2 - 9 - 1 - 0x00000600 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000008 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000008 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000008 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00000000 - 0x00000101 - 0x00020100 - 0x00027100 - 0x00061a80 - 0x02000200 - 0x08160200 - 0x00081600 - 0x04000816 - 0x26050004 - 0x1c0b061c - 0x1c260500 - 0x001c0b06 - 0x061c2605 - 0x06001c0b - 0x00000c04 - 0x0400db60 - 0x0c040605 - 0x0400db60 - 0x0c040605 - 0x0400db60 - 0x02030005 - 0x0b0c0b00 - 0x000c0b0c - 0x14000a0a - 0x00000a0a - 0x00010000 - 0x03171717 - 0x000b0b0b - 0x00000000 - 0x03010000 - 0x18580118 - 0x18580118 - 0x18580118 - 0x00000000 - 0x00050005 - 0x00140005 - 0x00140014 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x02000000 - 0x02000120 - 0x02000120 - 0x00000120 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000301 - 0x00000001 - 0x00000000 - 0x00000000 - 0x01000000 - 0x80104002 - 0x00040003 - 0x00040005 - 0x00030000 - 0x00050004 - 0x00000004 - 0x00040003 - 0x00040005 - 0x61600000 - 0x000030b0 - 0x30b06160 - 0x61600000 - 0x000030b0 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x08080800 - 0x00080808 - 0x00030200 - 0x00040700 - 0x00000302 - 0x02000407 - 0x00000003 - 0x00030f04 - 0x00070004 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00010000 - 0x00010000 - 0x20040020 - 0x00200400 - 0x01000400 - 0x00000b80 - 0x00000000 - 0x00000001 - 0x00000002 - 0x0000000e - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00a00000 - 0x00c80050 - 0x00c80000 - 0x005000a0 - 0x000000c8 - 0x00a000c8 - 0x00c80050 - 0x00c80000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00420c70 - 0x0c700018 - 0x00180042 - 0x00420c70 - 0x00000018 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00420c70 - 0x0c700018 - 0x00180042 - 0x00420c70 - 0x00000018 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00000000 - 0x00000000 - 0x18151100 - 0x0000000c - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00020003 - 0x00400100 - 0x00000000 - 0x01000200 - 0x00000040 - 0x00020000 - 0x00400100 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01010100 - 0x00000202 - 0x0a000001 - 0x01000f0f - 0x00000000 - 0x00000000 - 0x00010003 - 0x00000c03 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00010000 - 0x00000001 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00010000 - 0x07070702 - 0x01010606 - 0x00000001 - 0x03030300 - 0x03080808 - 0x03050303 - 0x03050303 - 0x00050303 - 0x00020202 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x0d000001 - 0x00010028 - 0x00010000 - 0x00000003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00010100 - 0x01000000 - 0x00000001 - 0x00000303 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x000556aa - 0x000aaaaa - 0x000aa955 - 0x00055555 - 0x000b3133 - 0x0004cd33 - 0x0004cecc - 0x000b32cc - 0x00010300 - 0x03000100 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00ffff00 - 0x15150000 - 0x08000015 - 0x000030b0 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x000030b0 - 0x0001e6e0 - 0x30b00709 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x000030b0 - 0x0001e6e0 - 0x30b00709 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x000030b0 - 0x0001e6e0 - 0x02020709 - 0x03030202 - 0x00000014 - 0x00000000 - 0x00000000 - 0x00001403 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00030000 - 0x00060018 - 0x00060018 - 0x00060018 - 0x00000000 - 0x00000000 - 0x01000000 - 0x02060206 - 0x00050206 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01000100 - 0x01010101 - 0x01000101 - 0x01000100 - 0x00010001 - 0x00010002 - 0x00020100 - 0x00000002 - 0x00000600 - 0x00000000 - 0x00006160 - 0x000030b0 - 0x00006160 - 0x000030b0 - 0x00006160 - 0x30b030b0 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x000030b0 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x000030b0 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00010000 - 0x00000007 - 0x110f0001 - 0x3c020000 - 0x3fffffff - 0x3c030000 - 0x1dc0ffff - 0x3c010000 - 0x1dc0ffff - 0x3c000000 - 0x1dc0ffff - 0x3c300400 - 0x1dc7ffff - 0x3c000000 - 0x00000000 - 0x3c000000 - 0x00000000 - 0x3c000000 - 0x00000000 - 0x03000101 - 0x00242424 - 0x08160008 - 0x00081600 - 0x00000016 - 0x18580118 - 0x18580118 - 0x18580118 - 0x00000500 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04040000 - 0x0d000004 - 0x00000128 - 0x00000000 - 0x00030003 - 0x00000014 - 0x00000000 - 0x00000000 - 0x07060002 - 0x07010701 - 0x00060601 - 0x00020001 - 0x00080004 - 0x00000000 - 0x00000000 - 0x03030300 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00030300 - 0x00000014 - 0x00000000 - 0x01010300 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00000101 - 0x55555a5a - 0x55555a5a - 0x55555a5a - 0x55555a5a - 0x09090001 - 0x07070009 - 0x02020007 - 0x00000102 - 0x00030000 - 0x17030000 - 0x00060018 - 0x00060018 - 0x00060018 - 0x00000000 - 0x00000000 - 0x00000000 - 0x140a0000 - 0x000a000a - 0x00000a00 - 0x010a000a - 0x00000100 - 0x01000000 - 0x00000000 - 0x00000100 - 0x1e1a0000 - 0x10010204 - 0x07070705 - 0x20000202 - 0x00201000 - 0x00201000 - 0x04041000 - 0x10100100 - 0x00010110 - 0x004b004a - 0x1a030000 - 0x0102041e - 0x34000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00004200 - 0x00000018 - 0x004d4d00 - 0x00180042 - 0x4d000000 - 0x0000424d - 0x00000018 - 0x004d4d00 - 0x00180042 - 0x4d000000 - 0x0000424d - 0x00000018 - 0x004d4d00 - 0x00180042 - 0x4d000000 - 0x0042004d - 0x00000018 - 0x004d4d00 - 0x00180042 - 0x4d000000 - 0x0000424d - 0x00000018 - 0x004d4d00 - 0x00180042 - 0x4d000000 - 0x0000424d - 0x00000018 - 0x004d4d00 - 0x00180042 - 0x4d000000 - 0x0000004d - 0x00c800c8 - 0x060400c8 - 0x0c060b0b - 0x1c00d92e - 0x08042000 - 0x0b0b060c - 0x00000c06 - 0x1c00d92e - 0x08042000 - 0x0b0b060c - 0x00000c06 - 0x1c00d92e - 0x08042000 - 0x0200020c - 0x02000200 - 0x02000200 - 0x02000200 - 0x02000200 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01000300 - 0x0030b000 - 0x0001e6e0 - 0x000030b0 - 0x0001e6e0 - 0x000030b0 - 0x0001e6e0 - 0x08000000 - 0x00000100 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000001 - 0x76543210 - 0x0004c008 - 0x00000099 - 0x00000000 - 0x00000000 - 0x00010000 - 0x01665555 - 0x00665555 - 0x00010f00 - 0x05010200 - 0x00000001 - 0x001700c0 - 0x00cc0001 - 0x00000066 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04080000 - 0x04080400 - 0x08000000 - 0x0c00c007 - 0x00000100 - 0x00000100 - 0x55555555 - 0xaaaaaaaa - 0x55555555 - 0xaaaaaaaa - 0x00005555 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00200000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x02800280 - 0x02800280 - 0x02800280 - 0x02800280 - 0x00000280 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00990080 - 0x00000001 - 0x00000000 - 0x00000000 - 0x00000200 - 0x00000000 - 0x51313152 - 0x80013130 - 0x02000080 - 0x00100001 - 0x07054208 - 0x000f0c0f - 0x01000140 - 0x00000c20 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x76543210 - 0x0004c008 - 0x00000099 - 0x00000000 - 0x00000000 - 0x00010000 - 0x01665555 - 0x00665555 - 0x00010f00 - 0x05010200 - 0x00000001 - 0x001700c0 - 0x00cc0001 - 0x00000066 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04080000 - 0x04080400 - 0x08000000 - 0x0c00c007 - 0x00000100 - 0x00000100 - 0x55555555 - 0xaaaaaaaa - 0x55555555 - 0xaaaaaaaa - 0x00005555 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00200000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x02800280 - 0x02800280 - 0x02800280 - 0x02800280 - 0x00000280 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00990080 - 0x00000001 - 0x00000000 - 0x00000000 - 0x00000200 - 0x00000000 - 0x51313152 - 0x80013130 - 0x02000080 - 0x00100001 - 0x07054208 - 0x000f0c0f - 0x01000140 - 0x00000c20 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x76543210 - 0x0004c008 - 0x00000099 - 0x00000000 - 0x00000000 - 0x00010000 - 0x01665555 - 0x00665555 - 0x00010f00 - 0x05010200 - 0x00000001 - 0x001700c0 - 0x00cc0001 - 0x00000066 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04080000 - 0x04080400 - 0x08000000 - 0x0c00c007 - 0x00000100 - 0x00000100 - 0x55555555 - 0xaaaaaaaa - 0x55555555 - 0xaaaaaaaa - 0x00005555 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00200000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x02800280 - 0x02800280 - 0x02800280 - 0x02800280 - 0x00000280 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00990080 - 0x00000001 - 0x00000000 - 0x00000000 - 0x00000200 - 0x00000000 - 0x51313152 - 0x80013130 - 0x02000080 - 0x00100001 - 0x07054208 - 0x000f0c0f - 0x01000140 - 0x00000c20 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x76543210 - 0x0004c008 - 0x00000099 - 0x00000000 - 0x00000000 - 0x00010000 - 0x01665555 - 0x00665555 - 0x00010f00 - 0x05010200 - 0x00000001 - 0x001700c0 - 0x00cc0001 - 0x00000066 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04080000 - 0x04080400 - 0x08000000 - 0x0c00c007 - 0x00000100 - 0x00000100 - 0x55555555 - 0xaaaaaaaa - 0x55555555 - 0xaaaaaaaa - 0x00005555 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00200000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x02800280 - 0x02800280 - 0x02800280 - 0x02800280 - 0x00000280 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00990080 - 0x00000001 - 0x00000000 - 0x00000000 - 0x00000200 - 0x00000000 - 0x51313152 - 0x80013130 - 0x02000080 - 0x00100001 - 0x07054208 - 0x000f0c0f - 0x01000140 - 0x00000c20 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00400320 - 0x00000040 - 0x00dcba98 - 0x00000000 - 0x00dcba98 - 0x01000000 - 0x00020003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x0000002a - 0x00000015 - 0x00000015 - 0x0000002a - 0x00000033 - 0x0000000c - 0x0000000c - 0x00000033 - 0x0a418820 - 0x103f0000 - 0x0000003f - 0x00030055 - 0x03000300 - 0x03000300 - 0x00000300 - 0x42080010 - 0x00000003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00400320 - 0x00000040 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00020003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x0000002a - 0x00000015 - 0x00000015 - 0x0000002a - 0x00000033 - 0x0000000c - 0x0000000c - 0x00000033 - 0x16a4a0e6 - 0x103f0000 - 0x0000003f - 0x00030055 - 0x03000300 - 0x03000300 - 0x00000300 - 0x42080010 - 0x00000003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00400320 - 0x00000040 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00020003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x0000002a - 0x00000015 - 0x00000015 - 0x0000002a - 0x00000033 - 0x0000000c - 0x0000000c - 0x00000033 - 0x1ee6b16a - 0x103f0000 - 0x0000003f - 0x00030055 - 0x03000300 - 0x03000300 - 0x00000300 - 0x42080010 - 0x00000003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000001 - 0x00000000 - 0x01000005 - 0x04000f00 - 0x00020040 - 0x00020055 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00010100 - 0x00000601 - 0x00000000 - 0x00006400 - 0x01221102 - 0x00000000 - 0x00031f00 - 0x031f031f - 0x031f031f - 0x00030003 - 0x03000300 - 0x00000300 - 0x01221102 - 0x00000000 - 0x00000000 - 0x03020000 - 0x00000001 - 0x00008011 - 0x00000011 - 0x00000440 - 0x00000040 - 0x00004011 - 0x00004011 - 0x00004410 - 0x00004410 - 0x00004410 - 0x00004410 - 0x00004410 - 0x00004011 - 0x00004410 - 0x00004011 - 0x00004410 - 0x00004011 - 0x00004410 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04000000 - 0x00000000 - 0x00000000 - 0x00000508 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0xe4000000 - 0x00000000 - 0x00000000 - 0x01010000 - 0x00000000 + 800 /* base: ddr_freq */ + 3 /* base: dramtype */ + 2 /* base: num_channels */ + 9 /* base: stride */ + 1 /* base: odt */ >; }; + diff --git a/arch/arm/dts/rk3399-sdram-ddr3-1866-4gb.dtsi b/arch/arm/dts/rk3399-sdram-ddr3-1866-4gb.dtsi new file mode 100644 index 0000000000..8fdf514679 --- /dev/null +++ b/arch/arm/dts/rk3399-sdram-ddr3-1866-4gb.dtsi @@ -0,0 +1,141 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) 2019 Theobroma Systems Design und Consulting GmbH + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +&dmc { + theobroma-systems,spd-data = /bits/ 8 < + 0x01 /* CRC covers 0~125, 128 bytes data */ + 0x10 /* revision level 1.0 */ + 0x0b /* DDR3 SDRAM */ + 0x0b /* module-specific section (bytes 60 ~ 116): LRDIMM */ + 0x35 /* 8 banks, 8 Gb devices */ + 0x21 /* 16 rows, 10 columns */ + 0x03 /* 1.35V and 1.5V operable */ + 0x02 /* 1 rank, x16 device-width */ + 0x02 /* 32 bit (primary) bus-width */ + 0x11 /* fine timebase: 1/1 = 1ps */ + 0x01 /* medium timebase dividend */ + 0x08 /* medium timebase divisor */ + 0x09 /* tCKmin(MTB) .. DDR-1866 */ + 0x00 /* */ + 0x54 /* CAS supported: CL=10, CL=8, CL=6 */ + 0x02 /* CAS supported: CL=13 */ + 0x70 /* tAAmin(MTB) */ + 0x78 /* tWRmin(MTB) */ + 0x70 /* tRCDmin(MTB) */ + 0x30 /* tRRDmin(MTB): 6.0 ns */ + 0x70 /* tRPmin(MTB) */ + 0x11 /* upper nibble for tRC (bits 7~4) and tRAS bits (3~0) */ + 0x10 /* tRASmin(MTB), LSB */ + 0x80 /* tRCmin(MTB), LSB */ + 0xF0 /* tRFCmin(MTB), LSB */ + 0x0A /* tRFCmin(MTB), MSB */ + 0x3C /* tWTRmin(MTB) */ + 0x3C /* tRTPmin(MTB) */ + 0x01 /* upper nibble for tFAWmin */ + 0x18 /* tFAWmin(MTB), LSB */ + 0x00 /* optional features: no DLL-Off, no RZQ/7, no RZQ/6 */ + 0x05 /* thermal/refresh: ASR, 85-95 @ 2x refresh, 0-95 degC */ + 0x00 /* no thermal sensor */ + 0x10 /* stacking/signal-loading: not specified */ + 0xca /* tCKmin(FTB) */ + 0xa6 /* tAAmin(FTB) */ + 0xa6 /* tRCDmin(FTB) */ + 0xa6 /* tRPmin(FTB) */ + 0xa6 /* tRCmin */ + 0x00 /* MAC: tMAW = 8192*tREFI, untested MAC */ + 0x00 /* reserved -- 39 */ + 0x00 /* reserved -- 40 */ + 0x00 /* reserved -- byte 42 */ + 0x00 /* reserved -- byte 43 */ + 0x00 /* reserved -- byte 44 */ + 0x00 /* reserved -- byte 45 */ + 0x00 /* reserved -- byte 46 */ + 0x00 /* reserved -- byte 47 */ + 0x00 /* reserved -- byte 48 */ + 0x00 /* reserved -- byte 49 */ + 0x00 /* reserved -- byte 50 */ + 0x00 /* reserved -- byte 51 */ + 0x00 /* reserved -- byte 52 */ + 0x00 /* reserved -- byte 53 */ + 0x00 /* reserved -- byte 54 */ + 0x00 /* reserved -- byte 55 */ + 0x00 /* reserved -- byte 56 */ + 0x00 /* reserved -- byte 57 */ + 0x00 /* reserved -- byte 58 */ + 0x00 /* reserved -- byte 59 */ + 0x00 /* 60 */ + 0x00 /* 61 */ + 0x1F /* not based on a JEDEC card reference design */ + 0x00 /* 63 */ + 0x00 /* 64 */ + 0x00 /* 65 */ + 0x00 /* 66 */ + 0x00 /* 67 */ + 0x00 /* 68 */ + 0x00 /* 69 */ + 0x00 /* 70 */ + 0x00 /* 71 */ + 0x16 /* 72: DDR3-800 and DDR3-1066: 34ohm drive-strength, 240ohm ODT */ + 0x33 /* 73: DDR3-800 and DDR3-1066: QxODT Control, enable for rank 1 */ + 0x00 /* 74 */ + 0x00 /* 75 */ + 0x00 /* 76 */ + 0x05 /* 77: MR1,2 for 800 & 1066: 60ohm Rtt_Nom, 34ohm drive */ + 0x00 /* 78 */ + 0x00 /* 79 */ + 0x00 /* 80 */ + 0x00 /* 81 */ + 0x00 /* 82 */ + 0x05 /* 83: MR1,2 for 1333 & 1600: 60ohm Rtt_Nom, 34ohm drive */ + 0x84 /* 84 */ + 0x85 /* 85 */ + 0x86 /* 86 */ + 0x87 /* 87 */ + 0x88 /* 88 */ + 0x05 /* 89: MR1,2 for 1866 & 2133: 60ohm Rtt_Nom, 34ohm drive */ + 0x90 + >; + + rockchip,sdram-params = < + 0x1 /* ch0: rank */ + 0xa /* ch0: col */ + 0x3 /* ch0: bk */ + 0x2 /* ch0: bw */ + 0x1 /* ch0: dbw */ + 0x0 /* ch0: row_3_4 */ + 0x10 /* ch0: cs0_row */ + 0x10 /* ch0: cs1_row */ + 1 /* ch0: ddrconfig */ + 0x80181219 /* ch0: ddrtiminga0 */ + 0x17050a03 /* ch0: ddrtimingb0 */ + 0x00000002 /* ch0: ddrtimingc0 */ + 0x00006456 /* ch0: devtodev0 */ + 0x0000004c /* ch0: ddrmode */ + 0x00000000 /* ch0: agingx0 */ + 0x1 + 0xa + 0x3 + 0x2 + 0x1 + 0x0 + 0x10 + 0x10 + 1 + 0x80181219 + 0x17050a03 + 0x00000002 + 0x00006456 + 0x0000004c + 0x00000000 + 933 /* base: ddr_freq */ + 3 /* base: dramtype */ + 2 /* base: num_channels */ + 13 /* base: stride */ + 1 /* base: odt */ + >; +}; + diff --git a/arch/arm/dts/rk3399-sdram-ddr3-1866.dtsi b/arch/arm/dts/rk3399-sdram-ddr3-1866.dtsi index c46c1996be..f3c1039f87 100644 --- a/arch/arm/dts/rk3399-sdram-ddr3-1866.dtsi +++ b/arch/arm/dts/rk3399-sdram-ddr3-1866.dtsi @@ -1,25 +1,119 @@ // SPDX-License-Identifier: GPL-2.0+ /* - * (C) 2017 Theobroma Systems Design und Consulting GmbH + * (C) 2019 Theobroma Systems Design und Consulting GmbH */ &dmc { - rockchip,sdram-params = < - 0x1 - 0xa - 0x3 - 0x2 - 0x1 - 0x0 - 0xf - 0xf - 1 - 0x80181219 - 0x17050a03 - 0x00000002 - 0x00006456 - 0x0000004c - 0x00000000 + theobroma-systems,spd-data = /bits/ 8 < + 0x01 /* CRC covers 0~125, 128 bytes data */ + 0x10 /* revision level 1.0 */ + 0x0b /* DDR3 SDRAM */ + 0x0b /* module-specific section (bytes 60 ~ 116): LRDIMM */ + 0x34 /* 8 banks, 4 Gb devices */ + 0x19 /* 15 rows, 10 columns */ + 0x03 /* 1.35V and 1.5V operable */ + 0x02 /* 1 rank, x16 device-width */ + 0x02 /* 32 bit (primary) bus-width */ + 0x11 /* fine timebase: 1/1 = 1ps */ + 0x01 /* medium timebase dividend */ + 0x08 /* medium timebase divisor */ + 0x09 /* tCKmin(MTB) .. DDR-1866 */ + 0x00 /* */ + 0x54 /* CAS supported: CL=10, CL=8, CL=6 */ + 0x02 /* CAS supported: CL=13 */ + 0x70 /* tAAmin(MTB) */ + 0x78 /* tWRmin(MTB) */ + 0x70 /* tRCDmin(MTB) */ + 0x30 /* tRRDmin(MTB): 6.0 ns */ + 0x70 /* tRPmin(MTB) */ + 0x11 /* upper nibble for tRC (bits 7~4) and tRAS bits (3~0) */ + 0x10 /* tRASmin(MTB), LSB */ + 0x80 /* tRCmin(MTB), LSB */ + 0xF0 /* tRFCmin(MTB), LSB */ + 0x0A /* tRFCmin(MTB), MSB */ + 0x3C /* tWTRmin(MTB) */ + 0x3C /* tRTPmin(MTB) */ + 0x01 /* upper nibble for tFAWmin */ + 0x18 /* tFAWmin(MTB), LSB */ + 0x00 /* optional features: no DLL-Off, no RZQ/7, no RZQ/6 */ + 0x05 /* thermal/refresh: ASR, 85-95 @ 2x refresh, 0-95 degC */ + 0x00 /* no thermal sensor */ + 0x10 /* stacking/signal-loading: not specified */ + 0xca /* tCKmin(FTB) */ + 0xa6 /* tAAmin(FTB) */ + 0xa6 /* tRCDmin(FTB) */ + 0xa6 /* tRPmin(FTB) */ + 0xa6 /* tRCmin */ + 0x00 /* MAC: tMAW = 8192*tREFI, untested MAC */ + 0x00 /* reserved -- 39 */ + 0x00 /* reserved -- 40 */ + 0x00 /* reserved -- byte 42 */ + 0x00 /* reserved -- byte 43 */ + 0x00 /* reserved -- byte 44 */ + 0x00 /* reserved -- byte 45 */ + 0x00 /* reserved -- byte 46 */ + 0x00 /* reserved -- byte 47 */ + 0x00 /* reserved -- byte 48 */ + 0x00 /* reserved -- byte 49 */ + 0x00 /* reserved -- byte 50 */ + 0x00 /* reserved -- byte 51 */ + 0x00 /* reserved -- byte 52 */ + 0x00 /* reserved -- byte 53 */ + 0x00 /* reserved -- byte 54 */ + 0x00 /* reserved -- byte 55 */ + 0x00 /* reserved -- byte 56 */ + 0x00 /* reserved -- byte 57 */ + 0x00 /* reserved -- byte 58 */ + 0x00 /* reserved -- byte 59 */ + 0x00 /* 60 */ + 0x00 /* 61 */ + 0x1F /* not based on a JEDEC card reference design */ + 0x00 /* 63 */ + 0x00 /* 64 */ + 0x00 /* 65 */ + 0x00 /* 66 */ + 0x00 /* 67 */ + 0x00 /* 68 */ + 0x00 /* 69 */ + 0x00 /* 70 */ + 0x00 /* 71 */ + 0x16 /* 72: DDR3-800 and DDR3-1066: 34ohm drive-strength, 240ohm ODT */ + 0x33 /* 73: DDR3-800 and DDR3-1066: QxODT Control, enable for rank 1 */ + 0x00 /* 74 */ + 0x00 /* 75 */ + 0x00 /* 76 */ + 0x05 /* 77: MR1,2 for 800 & 1066: 60ohm Rtt_Nom, 34ohm drive */ + 0x00 /* 78 */ + 0x00 /* 79 */ + 0x00 /* 80 */ + 0x00 /* 81 */ + 0x00 /* 82 */ + 0x05 /* 83: MR1,2 for 1333 & 1600: 60ohm Rtt_Nom, 34ohm drive */ + 0x84 /* 84 */ + 0x85 /* 85 */ + 0x86 /* 86 */ + 0x87 /* 87 */ + 0x88 /* 88 */ + 0x05 /* 89: MR1,2 for 1866 & 2133: 60ohm Rtt_Nom, 34ohm drive */ + 0x90 + >; + + rockchip,sdram-params = < + 0x1 /* ch0: rank */ + 0xa /* ch0: col */ + 0x3 /* ch0: bk */ + 0x2 /* ch0: bw */ + 0x1 /* ch0: dbw */ + 0x0 /* ch0: row_3_4 */ + 0xf /* ch0: cs0_row */ + 0xf /* ch0: cs1_row */ + 1 /* ch0: ddrconfig */ + 0x80181219 /* ch0: ddrtiminga0 */ + 0x17050a03 /* ch0: ddrtimingb0 */ + 0x00000002 /* ch0: ddrtimingc0 */ + 0x00006456 /* ch0: devtodev0 */ + 0x0000004c /* ch0: ddrmode */ + 0x00000000 /* ch0: agingx0 */ 0x1 0xa 0x3 @@ -35,1502 +129,11 @@ 0x00006456 0x0000004c 0x00000000 - 933 - 3 - 2 - 9 - 1 - 0x00000600 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x0000000a - 0x00000000 - 0x00000000 - 0x00000000 - 0x0000000a - 0x00000000 - 0x00000000 - 0x00000000 - 0x0000000a - 0x00000000 - 0x00000000 - 0x01000000 - 0x00000000 - 0x00000101 - 0x00020100 - 0x0002d976 - 0x00071fa6 - 0x02000200 - 0x091a0200 - 0x00091a00 - 0x0400091a - 0x2c060004 - 0x210c0820 - 0x202c0600 - 0x00210c08 - 0x08202c06 - 0x0800210c - 0x00000f04 - 0x0501000a - 0x0f040805 - 0x0501000a - 0x0f040805 - 0x0501000a - 0x02030005 - 0x0c0f0c00 - 0x000f0c0f - 0x14000a0a - 0x00000a0a - 0x00010000 - 0x031c1c1c - 0x000c0c0c - 0x00000000 - 0x03010000 - 0x1c6a0147 - 0x1c6a0147 - 0x1c6a0147 - 0x00000000 - 0x00060006 - 0x00170006 - 0x00170017 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x02000000 - 0x02000151 - 0x02000151 - 0x00000151 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000301 - 0x00000001 - 0x00000000 - 0x00000000 - 0x01000000 - 0x80104002 - 0x00040003 - 0x00040005 - 0x00030000 - 0x00050004 - 0x00000004 - 0x00040003 - 0x00040005 - 0x71a80000 - 0x000038d4 - 0x38d471a8 - 0x71a80000 - 0x000038d4 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x0a0a0a00 - 0x000a0a0a - 0x00030200 - 0x00040700 - 0x00000302 - 0x02000407 - 0x00000003 - 0x00030f04 - 0x00070004 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00010000 - 0x00010000 - 0x20040020 - 0x00200400 - 0x01000400 - 0x00000b80 - 0x00000000 - 0x00000001 - 0x00000002 - 0x0000000e - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00bb0000 - 0x00ea005e - 0x00ea0000 - 0x005e00bb - 0x000000ea - 0x00bb00ea - 0x00ea005e - 0x00ea0000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00420014 - 0x00140020 - 0x00200042 - 0x00420014 - 0x00000020 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00420014 - 0x00140020 - 0x00200042 - 0x00420014 - 0x00000020 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00000000 - 0x00000000 - 0x18151100 - 0x0000000c - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00025603 - 0x004b012b - 0x00000000 - 0x012b0256 - 0x0000004b - 0x00025600 - 0x004b012b - 0x00000000 - 0x00000000 - 0x00000000 - 0x01010100 - 0x00000202 - 0x0a000001 - 0x01000f0f - 0x00000000 - 0x00000000 - 0x00010003 - 0x00000c03 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00010000 - 0x00000001 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00010000 - 0x08080802 - 0x01010606 - 0x00000001 - 0x04040400 - 0x03080808 - 0x03050303 - 0x03050303 - 0x00050303 - 0x00020202 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x0d000001 - 0x00010028 - 0x00010000 - 0x00000003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00010100 - 0x01000000 - 0x00000001 - 0x00000303 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x000556aa - 0x000aaaaa - 0x000aa955 - 0x00055555 - 0x000b3133 - 0x0004cd33 - 0x0004cecc - 0x000b32cc - 0x00010300 - 0x03000100 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00ffff00 - 0x15150000 - 0x08000015 - 0x000038d4 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x000038d4 - 0x00023848 - 0x38d4080b - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x000038d4 - 0x00023848 - 0x38d4080b - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x000038d4 - 0x00023848 - 0x0202080b - 0x03030202 - 0x00000014 - 0x00000000 - 0x00000000 - 0x00001403 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00030000 - 0x00060018 - 0x00060018 - 0x00060018 - 0x00000000 - 0x00000000 - 0x01000000 - 0x03080308 - 0x00050308 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01000100 - 0x01010101 - 0x01000101 - 0x01000100 - 0x00010001 - 0x00010002 - 0x00020100 - 0x00000002 - 0x00000600 - 0x00000000 - 0x000071a8 - 0x000038d4 - 0x000071a8 - 0x000038d4 - 0x000071a8 - 0x38d438d4 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x000038d4 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x000038d4 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00000200 - 0x00010000 - 0x00000007 - 0x110f0001 - 0x3c020000 - 0x3fffffff - 0x3c030000 - 0x1dc0ffff - 0x3c010000 - 0x1dc0ffff - 0x3c000000 - 0x1dc0ffff - 0x3c300400 - 0x1dc7ffff - 0x3c000000 - 0x00000000 - 0x3c000000 - 0x00000000 - 0x3c000000 - 0x00000000 - 0x03000101 - 0x00262626 - 0x091a0009 - 0x00091a00 - 0x0000001a - 0x1c6a0147 - 0x1c6a0147 - 0x1c6a0147 - 0x00000500 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04040000 - 0x0d000004 - 0x00000128 - 0x00000000 - 0x00030003 - 0x00000014 - 0x00000000 - 0x00000000 - 0x08060002 - 0x08010801 - 0x00060601 - 0x00020001 - 0x00080004 - 0x00000000 - 0x00000000 - 0x04040400 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00030300 - 0x00000014 - 0x00000000 - 0x01010300 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00000101 - 0x55555a5a - 0x55555a5a - 0x55555a5a - 0x55555a5a - 0x0b0b0001 - 0x0808000b - 0x03030008 - 0x00000103 - 0x00030000 - 0x17030000 - 0x00060018 - 0x00060018 - 0x00060018 - 0x00000000 - 0x00000000 - 0x00000000 - 0x140a0000 - 0x000a000a - 0x00000a00 - 0x010a000a - 0x00000100 - 0x01000000 - 0x00000000 - 0x00000100 - 0x1e1a0000 - 0x10010204 - 0x07070705 - 0x20000202 - 0x00201000 - 0x00201000 - 0x04041000 - 0x12120100 - 0x00010112 - 0x004b004a - 0x1a030000 - 0x0102041e - 0x34000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00004200 - 0x00000020 - 0x004d4d00 - 0x00200042 - 0x4d000000 - 0x0000424d - 0x00000020 - 0x004d4d00 - 0x00200042 - 0x4d000000 - 0x0000424d - 0x00000020 - 0x004d4d00 - 0x00200042 - 0x4d000000 - 0x0042004d - 0x00000020 - 0x004d4d00 - 0x00200042 - 0x4d000000 - 0x0000424d - 0x00000020 - 0x004d4d00 - 0x00200042 - 0x4d000000 - 0x0000424d - 0x00000020 - 0x004d4d00 - 0x00200042 - 0x4d000000 - 0x0000004d - 0x00ea00ea - 0x080400ea - 0x0f080c0c - 0x2000fd7a - 0x0a042000 - 0x0c0c080f - 0x00000f08 - 0x2000fd7a - 0x0a042000 - 0x0c0c080f - 0x00000f08 - 0x2000fd7a - 0x0a042000 - 0x0200020f - 0x02000200 - 0x02000200 - 0x02000200 - 0x02000200 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01000300 - 0x0038d400 - 0x00023848 - 0x000038d4 - 0x00023848 - 0x000038d4 - 0x00023848 - 0x08000000 - 0x00000100 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000001 - 0x76543210 - 0x0004c008 - 0x000000de - 0x00000000 - 0x00000000 - 0x00010000 - 0x01665555 - 0x00665555 - 0x00010f00 - 0x06010200 - 0x00000001 - 0x001700c0 - 0x00cc0001 - 0x00000066 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04080000 - 0x04080400 - 0x08000000 - 0x0c00c007 - 0x00000100 - 0x00000100 - 0x55555555 - 0xaaaaaaaa - 0x55555555 - 0xaaaaaaaa - 0x00005555 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00200000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x02800280 - 0x02800280 - 0x02800280 - 0x02800280 - 0x00000280 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00de0080 - 0x00000001 - 0x00000000 - 0x00000000 - 0x00000200 - 0x00000000 - 0x51313152 - 0x80013130 - 0x02000080 - 0x00100001 - 0x07064208 - 0x000f0c0f - 0x01000140 - 0x00000c20 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x76543210 - 0x0004c008 - 0x000000de - 0x00000000 - 0x00000000 - 0x00010000 - 0x01665555 - 0x00665555 - 0x00010f00 - 0x06010200 - 0x00000001 - 0x001700c0 - 0x00cc0001 - 0x00000066 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04080000 - 0x04080400 - 0x08000000 - 0x0c00c007 - 0x00000100 - 0x00000100 - 0x55555555 - 0xaaaaaaaa - 0x55555555 - 0xaaaaaaaa - 0x00005555 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00200000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x02800280 - 0x02800280 - 0x02800280 - 0x02800280 - 0x00000280 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00de0080 - 0x00000001 - 0x00000000 - 0x00000000 - 0x00000200 - 0x00000000 - 0x51313152 - 0x80013130 - 0x02000080 - 0x00100001 - 0x07064208 - 0x000f0c0f - 0x01000140 - 0x00000c20 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x76543210 - 0x0004c008 - 0x000000de - 0x00000000 - 0x00000000 - 0x00010000 - 0x01665555 - 0x00665555 - 0x00010f00 - 0x06010200 - 0x00000001 - 0x001700c0 - 0x00cc0001 - 0x00000066 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04080000 - 0x04080400 - 0x08000000 - 0x0c00c007 - 0x00000100 - 0x00000100 - 0x55555555 - 0xaaaaaaaa - 0x55555555 - 0xaaaaaaaa - 0x00005555 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00200000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x02800280 - 0x02800280 - 0x02800280 - 0x02800280 - 0x00000280 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00de0080 - 0x00000001 - 0x00000000 - 0x00000000 - 0x00000200 - 0x00000000 - 0x51313152 - 0x80013130 - 0x02000080 - 0x00100001 - 0x07064208 - 0x000f0c0f - 0x01000140 - 0x00000c20 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x76543210 - 0x0004c008 - 0x000000de - 0x00000000 - 0x00000000 - 0x00010000 - 0x01665555 - 0x00665555 - 0x00010f00 - 0x06010200 - 0x00000001 - 0x001700c0 - 0x00cc0001 - 0x00000066 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04080000 - 0x04080400 - 0x08000000 - 0x0c00c007 - 0x00000100 - 0x00000100 - 0x55555555 - 0xaaaaaaaa - 0x55555555 - 0xaaaaaaaa - 0x00005555 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00200000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x02800280 - 0x02800280 - 0x02800280 - 0x02800280 - 0x00000280 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00800080 - 0x00de0080 - 0x00000001 - 0x00000000 - 0x00000000 - 0x00000200 - 0x00000000 - 0x51313152 - 0x80013130 - 0x02000080 - 0x00100001 - 0x07064208 - 0x000f0c0f - 0x01000140 - 0x00000c20 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00400320 - 0x00000040 - 0x00dcba98 - 0x00000000 - 0x00dcba98 - 0x01000000 - 0x00020003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x0000002a - 0x00000015 - 0x00000015 - 0x0000002a - 0x00000033 - 0x0000000c - 0x0000000c - 0x00000033 - 0x0a418820 - 0x103f0000 - 0x0000003f - 0x00030055 - 0x03000300 - 0x03000300 - 0x00000300 - 0x42080010 - 0x00000003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00400320 - 0x00000040 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00020003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x0000002a - 0x00000015 - 0x00000015 - 0x0000002a - 0x00000033 - 0x0000000c - 0x0000000c - 0x00000033 - 0x16a4a0e6 - 0x103f0000 - 0x0000003f - 0x00030055 - 0x03000300 - 0x03000300 - 0x00000300 - 0x42080010 - 0x00000003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00800000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00400320 - 0x00000040 - 0x00000000 - 0x00000000 - 0x00000000 - 0x01000000 - 0x00020003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x0000002a - 0x00000015 - 0x00000015 - 0x0000002a - 0x00000033 - 0x0000000c - 0x0000000c - 0x00000033 - 0x1ee6b16a - 0x103f0000 - 0x0000003f - 0x00030055 - 0x03000300 - 0x03000300 - 0x00000300 - 0x42080010 - 0x00000003 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000001 - 0x00000000 - 0x01000005 - 0x04000f00 - 0x00020040 - 0x00020055 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00010100 - 0x00000601 - 0x00000000 - 0x00006400 - 0x01221102 - 0x00000000 - 0x00031f00 - 0x031f031f - 0x031f031f - 0x00030003 - 0x03000300 - 0x00000300 - 0x01221102 - 0x00000000 - 0x00000000 - 0x04020000 - 0x00000001 - 0x00008011 - 0x00000011 - 0x00000440 - 0x00000040 - 0x00004011 - 0x00004011 - 0x00004410 - 0x00004410 - 0x00004410 - 0x00004410 - 0x00004410 - 0x00004011 - 0x00004410 - 0x00004011 - 0x00004410 - 0x00004011 - 0x00004410 - 0x00000000 - 0x00000000 - 0x00000000 - 0x04000000 - 0x00000000 - 0x00000000 - 0x00000508 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0x00000000 - 0xe4000000 - 0x00000000 - 0x00000000 - 0x01010000 - 0x00000000 + 933 /* base: ddr_freq */ + 3 /* base: dramtype */ + 2 /* base: num_channels */ + 9 /* base: stride */ + 1 /* base: odt */ >; }; diff --git a/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h b/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h index c6a260bad8..378bb20205 100644 --- a/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h +++ b/arch/arm/include/asm/arch-rockchip/sdram_rk3399.h @@ -103,9 +103,11 @@ struct rk3399_base_params { struct rk3399_sdram_params { struct rk3399_sdram_channel ch[2]; struct rk3399_base_params base; +#if 0 // TODO: revert, once completely split struct rk3399_ddr_pctl_regs pctl_regs; struct rk3399_ddr_pi_regs pi_regs; struct rk3399_ddr_publ_regs phy_regs; +#endif }; #define PI_CA_TRAINING (1 << 0) |