From 0dbbe3439154d291c25802b90f95ef9823dc6383 Mon Sep 17 00:00:00 2001 From: tzh <tanzhtanzh@gmail.com> Date: Tue, 23 Jul 2024 03:24:41 +0000 Subject: [PATCH] feat(ddr): modify ddr3 parm --- longan/device/config/chips/a133/configs/c3/sys_config.fex | 137 ++++++++++++++++++++++++++++++++++----------- 1 files changed, 102 insertions(+), 35 deletions(-) diff --git a/longan/device/config/chips/a133/configs/c3/sys_config.fex b/longan/device/config/chips/a133/configs/c3/sys_config.fex index 7f8aa12..96179b5 100755 --- a/longan/device/config/chips/a133/configs/c3/sys_config.fex +++ b/longan/device/config/chips/a133/configs/c3/sys_config.fex @@ -170,47 +170,114 @@ ;select_gpio3 = port:PH0<0><1><default><default> + +[dram_para] +dram_clk = 648 +dram_type = 3 +dram_dx_odt = 0x07070707 +dram_dx_dri = 0x0c0c0c0c +dram_ca_dri = 0x0e0e +dram_para0 = 0x15101212 +dram_para1 = 0x30FA +dram_para2 = 0x0000 +dram_mr0 = 0x840 +dram_mr1 = 0x4 +dram_mr2 = 0x8 +dram_mr3 = 0x0 +dram_mr4 = 0x0 +dram_mr5 = 0x0 +dram_mr6 = 0x0 +dram_mr11 = 0x0 +dram_mr12 = 0x0 +dram_mr13 = 0x0 +dram_mr14 = 0x0 +dram_mr16 = 0x0 +dram_mr17 = 0x0 +dram_mr22 = 0x0 +dram_tpr0 = 0x0 +dram_tpr1 = 0x0 +dram_tpr2 = 0x0 +dram_tpr3 = 0x0 +dram_tpr6 = 0x33808080 +dram_tpr10 = 0x002f7458 +dram_tpr11 = 0x0f0b0e0c +dram_tpr12 = 0x19191818 +dram_tpr13 = 0x00 +dram_tpr14 = 0x26232323 + ;***************************************************************************** ;sdram configuration ; ;***************************************************************************** -[dram_para] -dram_clk = 792 -dram_type = 8 -dram_dx_odt = 0x07070707 -dram_dx_dri = 0x0d0d0d0d -dram_ca_dri = 0x0e0e -dram_para0 = 0x0d0a050c -dram_para1 = 0x30ea -dram_para2 = 0x1000 -dram_mr0 = 0x0 -dram_mr1 = 0x34 -dram_mr2 = 0x1b -dram_mr3 = 0x33 -dram_mr4 = 0x3 -dram_mr5 = 0x0 -dram_mr6 = 0x0 -dram_mr11 = 0x04 -dram_mr12 = 0x72 -dram_mr13 = 0x0 -dram_mr14 = 0x7 -dram_mr16 = 0x0 -dram_mr17 = 0x0 -dram_mr22 = 0x26 -dram_tpr0 = 0x06060606 -dram_tpr1 = 0x04040404 -dram_tpr2 = 0x0 -dram_tpr3 = 0x0 -dram_tpr6 = 0x48010101 -dram_tpr10 = 0x00273333 -dram_tpr11 = 0x241f1923 -dram_tpr12 = 0x14151313 -dram_tpr13 = 0x81d20 -dram_tpr14 = 0x2023211f -test_list = 0x00000000 +;[dram_para] +;dram_clk = 648 +;dram_type = 3 +;dram_dx_odt = 0x03030303 +;dram_dx_dri = 0x0e0e0e0e +;dram_ca_dri = 0x1c12 +;dram_odt_en = 0 +;dram_para1 = 0x30fb +;dram_para2 = 0x0000 +;dram_mr0 = 0x840 +;dram_mr1 = 0x4 +;dram_mr2 = 0x8 +;dram_mr3 = 0x0 +;dram_mr4 = 0x0 +;dram_mr5 = 0x0 +;dram_mr6 = 0x0 +;dram_mr11 = 0x0 +;dram_mr12 = 0x0 +;dram_mr13 = 0x0 +;dram_mr14 = 0x0 +;dram_mr16 = 0x0 +;dram_mr17 = 0x0 +;dram_mr22 = 0x0 +;dram_tpr0 = 0xC0000C05 +;dram_tpr1 = 0x0 +;dram_tpr2 = 0x0 +;dram_tpr3 = 0x0 +;dram_tpr6 = 0x33808080 +;dram_tpr10 = 0x002F0007 +;dram_tpr11 = 0xffffdddd +;dram_tpr12 = 0xfedf7557 +;dram_tpr13 = 0x40 + +;[dram_para] +;dram_clk = 648 +;dram_type = 3 +;dram_dx_odt = 0x07070707 +;dram_dx_dri = 0x0d0d0d0d +;dram_ca_dri = 0x0e0e +;dram_para0 = 0x0d0a050c +;dram_para1 = 0x30ea +;dram_para2 = 0x1000 +;dram_mr0 = 0x0 +;dram_mr1 = 0x34 +;dram_mr2 = 0x1b +;dram_mr3 = 0x33 +;dram_mr4 = 0x3 +;dram_mr5 = 0x0 +;dram_mr6 = 0x0 +;dram_mr11 = 0x04 +;dram_mr12 = 0x72 +;dram_mr13 = 0x0 +;dram_mr14 = 0x7 +;dram_mr16 = 0x0 +;dram_mr17 = 0x0 +;dram_mr22 = 0x26 +;dram_tpr0 = 0x06060606 +;dram_tpr1 = 0x04040404 +;dram_tpr2 = 0x0 +;dram_tpr3 = 0x0 +;dram_tpr6 = 0x48010101 +;dram_tpr10 = 0x00273333 +;dram_tpr11 = 0x241f1923 +;dram_tpr12 = 0x14151313 +;dram_tpr13 = 0x81d20 +;dram_tpr14 = 0x2023211f +;test_list = 0x00000000 [dram_para1] - dram_clk = 672 dram_type = 7 dram_dx_odt = 0x06060606 -- Gitblit v1.6.2