blob: e86b08e67bd9968f39fabe95963185cf6c688d8f [file] [log] [blame]
Hans de Goede56333be2015-01-21 16:14:00 +01001/* DRAM parameters for auto dram configuration on sun5i and sun7i */
Hans de Goede6c46c8e2015-01-17 22:31:30 +01002
3#include <common.h>
4#include <asm/arch/dram.h>
5
6static struct dram_para dram_para = {
7 .clock = CONFIG_DRAM_CLK,
8 .type = 3,
9 .rank_num = 1,
10 .density = 0,
11 .io_width = 0,
12 .bus_width = 0,
13 .cas = 9,
14 .zq = CONFIG_DRAM_ZQ,
15 .odt_en = 0,
16 .size = 0,
17 .tpr0 = 0x42d899b7,
18 .tpr1 = 0xa090,
19 .tpr2 = 0x22a00,
20 .tpr3 = 0,
21 .tpr4 = 0,
22 .tpr5 = 0,
23 .emr1 = CONFIG_DRAM_EMR1,
24 .emr2 = 0x10,
25 .emr3 = 0,
26};
27
28unsigned long sunxi_dram_init(void)
29{
30 return dramc_init(&dram_para);
31}