From patchwork Sun Nov 25 11:45:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Henrik_Nordstr=C3=B6m?= X-Patchwork-Id: 201534 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 15D592C008D for ; Sun, 25 Nov 2012 22:58:13 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7D8BF4A0BD; Sun, 25 Nov 2012 12:57:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iqc0Z-IUOoNw; Sun, 25 Nov 2012 12:57:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3BC2B4A0F6; Sun, 25 Nov 2012 12:56:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 90C0F4A0B6 for ; Sun, 25 Nov 2012 12:56:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a4cJN4ayuH2E for ; Sun, 25 Nov 2012 12:56:35 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from vps1.hno.se (vps1.hno.se [31.192.227.87]) by theia.denx.de (Postfix) with ESMTPS id 9CBFD4A0A2 for ; Sun, 25 Nov 2012 12:56:24 +0100 (CET) Received: from home.hno.se (home.hno.se [IPv6:2001:470:df90::1]) (authenticated bits=128) by vps1.hno.se (8.14.4/8.14.4) with ESMTP id qAPBuJ0q014236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 25 Nov 2012 12:56:23 +0100 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by home.hno.se (8.14.5/8.14.5) with ESMTP id qAPBjehK016016 for ; Sun, 25 Nov 2012 12:45:40 +0100 Message-ID: <1353843940.17518.28.camel@home.hno.se> From: Henrik =?ISO-8859-1?Q?Nordstr=F6m?= To: U-Boot Mailing List Date: Sun, 25 Nov 2012 12:45:40 +0100 In-Reply-To: References: X-Mailer: Evolution 3.2.3 (3.2.3-3.fc16) Mime-Version: 1.0 Subject: [U-Boot] [PATCH 16/22] ARM sunxi: SPL support for a13_mid board X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Jari Helaakoski Signed-off-by: Jari Helaakoski Signed-off-by: Henrik Nordstrom --- board/sunxi/Makefile | 1 + board/sunxi/dram_a13_mid.c | 31 +++++++++++++++++++++++++++++++ boards.cfg | 1 + 3 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 board/sunxi/dram_a13_mid.c diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile index e8b9ef8..f6a836f 100644 --- a/board/sunxi/Makefile +++ b/board/sunxi/Makefile @@ -27,6 +27,7 @@ LIB := $(obj)lib$(BOARD).o COBJS-y := board.o COBJS-$(CONFIG_A13_OLINUXINO) += dram_a13_olinuxino.o +COBJS-$(CONFIG_A13_MID) += dram_a13_mid.o COBJS-$(CONFIG_CUBIEBOARD) += dram_cubieboard.o COBJS-$(CONFIG_CUBIEBOARD_512) += dram_cubieboard_512.o COBJS-$(CONFIG_HACKBERRY) += dram_hackberry.o diff --git a/board/sunxi/dram_a13_mid.c b/board/sunxi/dram_a13_mid.c new file mode 100644 index 0000000..3b0e595 --- /dev/null +++ b/board/sunxi/dram_a13_mid.c @@ -0,0 +1,31 @@ +/* this file is generated, don't edit it yourself */ + +#include +#include + +static struct dram_para dram_para = { + .clock = 408, + .type = 3, + .rank_num = 1, + .density = 2048, + .io_width = 8, + .bus_width = 16, + .cas = 9, + .zq = 123, + .odt_en = 1, + .size = 512, + .tpr0 = 0x42d899b7, + .tpr1 = 0xa090, + .tpr2 = 0x22a00, + .tpr3 = 0, + .tpr4 = 0, + .tpr5 = 0, + .emr1 = 0x4, + .emr2 = 0x10, + .emr3 = 0, +}; + +int sunxi_dram_init(void) +{ + return dramc_init(&dram_para); +} diff --git a/boards.cfg b/boards.cfg index 08ded68..0a8b938 100644 --- a/boards.cfg +++ b/boards.cfg @@ -289,6 +289,7 @@ colibri_t20_iris arm armv7:arm720t colibri_t20_iris toradex u8500_href arm armv7 u8500 st-ericsson u8500 snowball arm armv7 snowball st-ericsson u8500 A13-OLinuXino arm armv7 sunxi - sunxi sun5i:A13_OLINUXINO,SPL +A13_MID arm armv7 sunxi - sunxi sun5i:A13_MID,SPL 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