1 /* DRAM parameters for auto dram configuration on sun5i and sun7i */
4 #include <asm/arch/dram.h>
6 static struct dram_para dram_para
= {
7 .clock
= CONFIG_DRAM_CLK
,
8 .mbus_clock
= CONFIG_DRAM_MBUS_CLK
,
15 .odt_en
= IS_ENABLED(CONFIG_DRAM_ODT_EN
),
17 #ifdef CONFIG_DRAM_TIMINGS_VENDOR_MAGIC
24 # include "dram_timings_sun4i.h"
25 .active_windowing
= 1,
27 .tpr3
= CONFIG_DRAM_TPR3
,
30 .emr1
= CONFIG_DRAM_EMR1
,
32 .dqs_gating_delay
= CONFIG_DRAM_DQS_GATING_DELAY
,
35 unsigned long sunxi_dram_init(void)
37 return dramc_init(&dram_para
);