Signed-off-by: Aleksei Mamlin <mamli...@gmail.com> --- board/sunxi/Makefile | 1 + board/sunxi/dram_wexler_tab_7200.c | 31 +++++++++++++++++++++++++++++++ boards.cfg | 1 + 3 files changed, 33 insertions(+) create mode 100644 board/sunxi/dram_wexler_tab_7200.c
diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile index f274a1d..33daf11 100644 --- a/board/sunxi/Makefile +++ b/board/sunxi/Makefile @@ -79,5 +79,6 @@ obj-$(CONFIG_POV_PROTAB2_XXL) += dram_pov_protab2_xxl.o obj-$(CONFIG_R7DONGLE) += dram_r7dongle.o obj-$(CONFIG_SANEI_N90) += dram_sanei_n90.o obj-$(CONFIG_UHOST_U1A) += dram_sun4i_360_1024_iow8.o +obj-$(CONFIG_WEXLER_TAB_7200) += dram_wexler_tab_7200.o obj-$(CONFIG_WOBO_I5) += dram_wobo_i5.o obj-$(CONFIG_XZPAD700) += dram_xzpad700.o diff --git a/board/sunxi/dram_wexler_tab_7200.c b/board/sunxi/dram_wexler_tab_7200.c new file mode 100644 index 0000000..8d54543 --- /dev/null +++ b/board/sunxi/dram_wexler_tab_7200.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 = 0x7f, + .odt_en = 1, + .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 dfeb07a..624ece0 100644 --- a/boards.cfg +++ b/boards.cfg @@ -414,6 +414,7 @@ Active arm armv7 sunxi - sunxi Active arm armv7 sunxi - sunxi sun5i_sdcon sun5i:UART0_PORT_F,SUNXI_EMAC - Active arm armv7 sunxi - sunxi sun5i_uart1 sun5i:CONS_INDEX=2,SUNXI_EMAC - Active arm armv7 sunxi - sunxi uhost_u1a sun4i:UHOST_U1A,SPL,STATUSLED=34 - +Active arm armv7 sunxi - sunxi Wexler_TAB_7200 sun7i:WEXLER_TAB_7200,SPL - Active arm armv7 sunxi - sunxi wobo-i5 sun5i:WOBO_I5,SPL,STATUSLED=34 - Active arm armv7 sunxi - sunxi xzpad700 sun5i:XZPAD700,SPL - Active arm armv7 u8500 st-ericsson snowball snowball - Mathieu Poirier <mathieu.poir...@linaro.org> -- 1.8.3.2 -- 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.