Signed-off-by: Luc Verhaegen <l...@skynet.be> --- board/sunxi/Makefile | 1 + board/sunxi/dram_inet_k70hc.c | 31 +++++++++++++++++++++++++++++++ boards.cfg | 1 + 3 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 board/sunxi/dram_inet_k70hc.c
diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile index 7fefdf0..f274a1d 100644 --- a/board/sunxi/Makefile +++ b/board/sunxi/Makefile @@ -56,6 +56,7 @@ obj-$(CONFIG_HACKBERRY) += dram_hackberry.o obj-$(CONFIG_A7HD) += dram_sun4i_360_1024_iow8.o obj-$(CONFIG_INTERRA3) += dram_mk802ii_a20.o obj-$(CONFIG_INET97F_II) += dram_sun4i_408_512.o +obj-$(CONFIG_INET_K70HC) += dram_inet_k70hc.o obj-$(CONFIG_JESURUN_Q5) += dram_sun4i_312_1024_iow8.o obj-$(CONFIG_K1001L1C) += dram_a20_olinuxino_m.o obj-$(CONFIG_MEFAFEIS_A08) += dram_megafeis_a08.o diff --git a/board/sunxi/dram_inet_k70hc.c b/board/sunxi/dram_inet_k70hc.c new file mode 100644 index 0000000..d5ddc13 --- /dev/null +++ b/board/sunxi/dram_inet_k70hc.c @@ -0,0 +1,31 @@ +/* this file is generated, don't edit it yourself */ + +#include <common.h> +#include <asm/arch/dram.h> + +static struct dram_para dram_para = { + .clock = 384, + .type = 3, + .rank_num = 1, + .density = 4096, + .io_width = 16, + .bus_width = 32, + .cas = 9, + .zq = 0x12331a7f, + .odt_en = 0, + .size = 1024, + .tpr0 = 0x42d899b7, + .tpr1 = 0xa090, + .tpr2 = 0x22a00, + .tpr3 = 0, + .tpr4 = 1, + .tpr5 = 0, + .emr1 = 0x4, + .emr2 = 0x10, + .emr3 = 0, +}; + +unsigned long sunxi_dram_init(void) +{ + return dramc_init(&dram_para); +} diff --git a/boards.cfg b/boards.cfg index 7eeb17a..eda05de 100644 --- a/boards.cfg +++ b/boards.cfg @@ -380,6 +380,7 @@ Active arm armv7 sunxi - sunxi Active arm armv7 sunxi - sunxi Hyundai_A7HD sun4i:A7HD,SPL - Active arm armv7 sunxi - sunxi Interra-3 sun7i:INTERRA3,SPL,SUNXI_GMAC,FAST_MBUS,MMC_SUNXI_SLOT=2 - Active arm armv7 sunxi - sunxi INet97F-II sun4i:INET97F_II,SPL - +Active arm armv7 sunxi - sunxi INet_K70HC sun7i:INET_K70HC,SPL - Active arm armv7 sunxi - sunxi Jesurun-Q5 sun4i:JESURUN_Q5,SPL,SUNXI_EMAC,STATUSLED=244 - Active arm armv7 sunxi - sunxi K1001L1C sun7i:K1001L1C,SPL - Active arm armv7 sunxi - sunxi Marsboard_A10 sun4i:MARSBOARD_A10,SPL,SUNXI_EMAC,NO_AXP - -- 1.7.7 -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.