2 #include <asm/arch/dram.h>
3 #include <linux/kconfig.h>
5 static struct dram_para dram_para = {
6 .clock = CONFIG_DRAM_CLK,
13 .odt_en = IS_ENABLED(CONFIG_DRAM_ODT_EN),
15 #ifdef CONFIG_DRAM_TIMINGS_VENDOR_MAGIC
22 # include "dram_timings_sun4i.h"
23 .active_windowing = 1,
25 .tpr3 = CONFIG_DRAM_TPR3,
28 .emr1 = CONFIG_DRAM_EMR1,
30 .dqs_gating_delay = CONFIG_DRAM_DQS_GATING_DELAY,
33 unsigned long sunxi_dram_init(void)
35 return dramc_init(&dram_para);