1 /* DRAM parameters for auto dram configuration on sun5i and sun7i */
4 #include <asm/arch/dram.h>
5 #include <linux/kconfig.h>
7 static struct dram_para dram_para = {
8 .clock = CONFIG_DRAM_CLK,
9 .mbus_clock = CONFIG_DRAM_MBUS_CLK,
16 .odt_en = IS_ENABLED(CONFIG_DRAM_ODT_EN),
18 #ifdef CONFIG_DRAM_TIMINGS_VENDOR_MAGIC
25 # include "dram_timings_sun4i.h"
26 .active_windowing = 1,
28 .tpr3 = CONFIG_DRAM_TPR3,
31 .emr1 = CONFIG_DRAM_EMR1,
33 .dqs_gating_delay = CONFIG_DRAM_DQS_GATING_DELAY,
36 unsigned long sunxi_dram_init(void)
38 return dramc_init(&dram_para);