Re: [PATCH v2 07/28] ram: rockchip: Add rv1126 ddr3 support
On 2022/8/18 22:52, Jagan Teki wrote: Add DDR3 detection timings for Rockchip RV1126 SoC. Signed-off-by: YouMin Chen Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, - Kever --- Changes for v2: - none .../sdram-rv1126-ddr3-detect-1056.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-328.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-396.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-528.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-664.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-784.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-924.inc | 72 +++ 7 files changed, 504 insertions(+) create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-1056.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-328.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-396.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-528.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-664.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-784.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-924.inc diff --git a/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-1056.inc b/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-1056.inc new file mode 100644 index 00..4cde21565b --- /dev/null +++ b/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-1056.inc @@ -0,0 +1,72 @@ +{ + { + { + .rank = 0x1, + .col = 0xC, + .bk = 0x3, + .bw = 0x0, + .dbw = 0x0, + .row_3_4 = 0x0, + .cs0_row = 0x10, + .cs1_row = 0x10, + .cs0_high16bit_row = 0x10, + .cs1_high16bit_row = 0x10, + .ddrconfig = 0 + }, + { + {0x351b1019}, + {0x12030903}, + {0x0002}, + {0x}, + {0x000c}, + {0x}, + 0x00ff + } + }, + { + .ddr_freq = 1056, /* clock rate(MHz) */ + .dramtype = DDR3, + .num_channels = 1, + .stride = 0, + .odt = 1 + }, + { + { + {0x, 0x43042001}, /* MSTR */ + {0x0064, 0x008000b9}, /* RFSHTMG */ + {0x00d0, 0x00020103}, /* INIT0 */ + {0x00d4, 0x0069}, /* INIT1 */ + {0x00d8, 0x0100}, /* INIT2 */ + {0x00dc, 0x01240040}, /* INIT3 */ + {0x00e0, 0x0028}, /* INIT4 */ + {0x00e4, 0x000c}, /* INIT5 */ + {0x00f4, 0x000f011f}, /* RANKCTL */ + {0x0100, 0x0f132414}, /* DRAMTMG0 */ + {0x0104, 0x000d0419}, /* DRAMTMG1 */ + {0x0108, 0x0507050b}, /* DRAMTMG2 */ + {0x010c, 0x00202008}, /* DRAMTMG3 */ + {0x0110, 0x07020408}, /* DRAMTMG4 */ + {0x0114, 0x06060404}, /* DRAMTMG5 */ + {0x0120, 0x0907}, /* DRAMTMG8 */ + {0x0180, 0x00a9002b}, /* ZQCTL0 */ + {0x0184, 0x}, /* ZQCTL1 */ + {0x0190, 0x07050003}, /* DFITMG0 */ + {0x0198, 0x07000101}, /* DFILPCFG0 */ + {0x01a0, 0xc043}, /* DFIUPD0 */ + {0x0240, 0x06000610}, /* ODTCFG */ + {0x0244, 0x0201}, /* ODTMAP */ + {0x0250, 0x1f00}, /* SCHED */ + {0x0490, 0x0001}, /* PCTRL_0 */ + {0x, 0x} + } + }, + { + { + {0x0004, 0x008a}, /* PHYREG01 */ + {0x0014, 0x000e}, /* PHYREG05 */ + {0x0018, 0x}, /* PHYREG06 */ + {0x001c, 0x000a}, /* PHYREG07 */ + {0x, 0x} + } + } +}, diff --git a/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-328.inc b/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-328.inc new file mode 100644 index 00..eef61ab500 --- /dev/null +
[PATCH v2 07/28] ram: rockchip: Add rv1126 ddr3 support
Add DDR3 detection timings for Rockchip RV1126 SoC. Signed-off-by: YouMin Chen Signed-off-by: Jagan Teki --- Changes for v2: - none .../sdram-rv1126-ddr3-detect-1056.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-328.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-396.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-528.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-664.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-784.inc | 72 +++ .../rockchip/sdram-rv1126-ddr3-detect-924.inc | 72 +++ 7 files changed, 504 insertions(+) create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-1056.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-328.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-396.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-528.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-664.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-784.inc create mode 100644 drivers/ram/rockchip/sdram-rv1126-ddr3-detect-924.inc diff --git a/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-1056.inc b/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-1056.inc new file mode 100644 index 00..4cde21565b --- /dev/null +++ b/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-1056.inc @@ -0,0 +1,72 @@ +{ + { + { + .rank = 0x1, + .col = 0xC, + .bk = 0x3, + .bw = 0x0, + .dbw = 0x0, + .row_3_4 = 0x0, + .cs0_row = 0x10, + .cs1_row = 0x10, + .cs0_high16bit_row = 0x10, + .cs1_high16bit_row = 0x10, + .ddrconfig = 0 + }, + { + {0x351b1019}, + {0x12030903}, + {0x0002}, + {0x}, + {0x000c}, + {0x}, + 0x00ff + } + }, + { + .ddr_freq = 1056, /* clock rate(MHz) */ + .dramtype = DDR3, + .num_channels = 1, + .stride = 0, + .odt = 1 + }, + { + { + {0x, 0x43042001}, /* MSTR */ + {0x0064, 0x008000b9}, /* RFSHTMG */ + {0x00d0, 0x00020103}, /* INIT0 */ + {0x00d4, 0x0069}, /* INIT1 */ + {0x00d8, 0x0100}, /* INIT2 */ + {0x00dc, 0x01240040}, /* INIT3 */ + {0x00e0, 0x0028}, /* INIT4 */ + {0x00e4, 0x000c}, /* INIT5 */ + {0x00f4, 0x000f011f}, /* RANKCTL */ + {0x0100, 0x0f132414}, /* DRAMTMG0 */ + {0x0104, 0x000d0419}, /* DRAMTMG1 */ + {0x0108, 0x0507050b}, /* DRAMTMG2 */ + {0x010c, 0x00202008}, /* DRAMTMG3 */ + {0x0110, 0x07020408}, /* DRAMTMG4 */ + {0x0114, 0x06060404}, /* DRAMTMG5 */ + {0x0120, 0x0907}, /* DRAMTMG8 */ + {0x0180, 0x00a9002b}, /* ZQCTL0 */ + {0x0184, 0x}, /* ZQCTL1 */ + {0x0190, 0x07050003}, /* DFITMG0 */ + {0x0198, 0x07000101}, /* DFILPCFG0 */ + {0x01a0, 0xc043}, /* DFIUPD0 */ + {0x0240, 0x06000610}, /* ODTCFG */ + {0x0244, 0x0201}, /* ODTMAP */ + {0x0250, 0x1f00}, /* SCHED */ + {0x0490, 0x0001}, /* PCTRL_0 */ + {0x, 0x} + } + }, + { + { + {0x0004, 0x008a}, /* PHYREG01 */ + {0x0014, 0x000e}, /* PHYREG05 */ + {0x0018, 0x}, /* PHYREG06 */ + {0x001c, 0x000a}, /* PHYREG07 */ + {0x, 0x} + } + } +}, diff --git a/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-328.inc b/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-328.inc new file mode 100644 index 00..eef61ab500 --- /dev/null +++ b/drivers/ram/rockchip/sdram-rv1126-ddr3-detect-328.inc @@ -0,0 +1,72 @@ +{ + { +