Hello,

  I want to share what I found, mading some experiment with dram setting, 
following the A10_DRAM_Controller_Calibration on the wiki.

  First of all, I've patched the a10-dram-timings-calculator, adding the 
definition for olinuxino-a20-micro in the a10-dram-info.rb:

        "A20-OLinuXino-Micro" => {
            url:       "http://linux-sunxi.org/Olimex_A20-OLinuXino-Micro";,
            dram_size: 1024,
            dram_chip: MEM4G16D3EABG_125,
            dram_para: {
                zq:     0x7f,
                odt_en: 0,
                tpr3:   0,
                tpr4:   0,
                emr1:   0x4,
            }

And I hope is correct, because I just looked at the others definition and guess 
the right value :-). Dram chip is the same of the lime version, so should be 
right. The other values were copied from fex file.

  Then I used the program for calculate dram setting, and tested them with 
a10-tpr3-scan program, using u-boot-sunxi (ssvb github repo, missed definition 
for olimex boards).

  After some days of testing, I found a stable dram setting at 432Mhz:

static struct dram_para dram_para = { /* DRAM timings: 7-6-6-16 (432 MHz) */
        .clock     = 432,
        .type      = 3,
        .rank_num  = 1,
        .density   = 4096,
        .io_width  = 16,
        .bus_width = 32,
        .cas       = 7,
        .zq        = 0x7f,
        .odt_en    = 0,
        .tpr0      = 0x2a906690,
        .tpr1      = 0xa068,
        .tpr2      = 0x22e00,
        .tpr3      = 0x21111,
        .tpr4      = 0x0,
        .tpr5      = 0x0,
        .emr1      = 0x4,
        .emr2      = 0x8,
        .emr3      = 0x0,
};

  I've also tried 456Mhz, with no lucks. Seems to find a stable ragion around 
tpr3=0x71111, but still sometimes crash with lima-tester when it tried the 100 
loops test.

  If someone needs it, I can upload somewhere the report.hml of this tests.

-- 
Diego Roversi <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to