From patchwork Sun Nov 25 11:46:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,18/22] ARM sunxi: SPL support for hyundai A7HD board Date: Sun, 25 Nov 2012 01:46:05 -0000 From: =?utf-8?q?Henrik_Nordstr=C3=B6m_=3Chenrik=40henriknordstrom=2Enet=3E?= X-Patchwork-Id: 201537 Message-Id: <1353843965.17518.30.camel@home.hno.se> To: U-Boot Mailing List Signed-off-by: Luc Verhaegen Signed-off-by: Henrik Nordstrom Signed-off-by: Stefan Roese --- board/sunxi/Makefile | 1 + board/sunxi/dram_hyundai_a7hd.c | 31 +++++++++++++++++++++++++++++++ boards.cfg | 1 + 3 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 board/sunxi/dram_hyundai_a7hd.c diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile index 9c6c875..091db59 100644 --- a/board/sunxi/Makefile +++ b/board/sunxi/Makefile @@ -33,6 +33,7 @@ COBJS-$(CONFIG_CUBIEBOARD_512) += dram_cubieboard_512.o COBJS-$(CONFIG_HACKBERRY) += dram_hackberry.o COBJS-$(CONFIG_MELE_A1000) += dram_mele_a1000.o COBJS-$(CONFIG_MINI_X) += dram_mini_x.o +COBJS-$(CONFIG_A7HD) += dram_hyundai_a7hd.o COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c) diff --git a/board/sunxi/dram_hyundai_a7hd.c b/board/sunxi/dram_hyundai_a7hd.c new file mode 100644 index 0000000..56a9d64 --- /dev/null +++ b/board/sunxi/dram_hyundai_a7hd.c @@ -0,0 +1,31 @@ +/* this file is generated, don't edit it yourself */ + +#include +#include + +static struct dram_para dram_para = { + .clock = 360, + .type = 3, + .rank_num = 1, + .density = 2048, + .io_width = 8, + .bus_width = 32, + .cas = 6, + .zq = 123, + .odt_en = 0, + .size = 1024, + .tpr0 = 0x30926692, + .tpr1 = 0x1090, + .tpr2 = 0x1a0c8, + .tpr3 = 0, + .tpr4 = 0, + .tpr5 = 0, + .emr1 = 0, + .emr2 = 0, + .emr3 = 0, +}; + +int sunxi_dram_init(void) +{ + return dramc_init(&dram_para); +} diff --git a/boards.cfg b/boards.cfg index d9b3d87..b8a5375 100644 --- a/boards.cfg +++ b/boards.cfg @@ -293,6 +293,7 @@ A13_MID arm armv7 sunxi - Cubieboard arm armv7 sunxi - sunxi sun4i:CUBIEBOARD,SPL Cubieboard_512 arm armv7 sunxi - sunxi sun4i:CUBIEBOARD_512,SPL Hackberry arm armv7 sunxi - sunxi sun4i:HACKBERRY,SPL +Hyundai_A7HD arm armv7 sunxi - sunxi sun4i:A7HD,SPL Mele_A1000 arm armv7 sunxi - sunxi sun4i:MELE_A1000,SPL Mini-X arm armv7 sunxi - sunxi sun4i:MINI_X,SPL sun4i arm armv7 sunxi - sunxi sun4i