From patchwork Thu Jan 13 13:36:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: seedshope X-Patchwork-Id: 78756 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 0EC5EB6EF1 for ; Fri, 14 Jan 2011 00:37:36 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 683D8280C0; Thu, 13 Jan 2011 14:37:09 +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 qj844sjyi+rT; Thu, 13 Jan 2011 14:37:09 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6A631280F1; Thu, 13 Jan 2011 14:37:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9E4AC280C0 for ; Thu, 13 Jan 2011 14:36:58 +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 irrNHPoeg8w7 for ; Thu, 13 Jan 2011 14:36:58 +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 mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by theia.denx.de (Postfix) with ESMTP id 0D368280B4 for ; Thu, 13 Jan 2011 14:36:47 +0100 (CET) Received: by mail-iy0-f172.google.com with SMTP id 42so1559674iyi.3 for ; Thu, 13 Jan 2011 05:36:46 -0800 (PST) Received: by 10.231.182.13 with SMTP id ca13mr2410996ibb.57.1294925806654; Thu, 13 Jan 2011 05:36:46 -0800 (PST) Received: from localhost.localdomain ([114.249.232.233]) by mx.google.com with ESMTPS id d21sm60484ibg.15.2011.01.13.05.36.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Jan 2011 05:36:46 -0800 (PST) From: seedshope To: Albert ARIBAUD , Minkyu Kang , Sergei Shtylyov , u-boot@lists.denx.de Date: Thu, 13 Jan 2011 21:36:24 +0800 Message-Id: <1294925784-5042-5-git-send-email-bocui107@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1294925784-5042-1-git-send-email-bocui107@gmail.com> References: <1294925784-5042-1-git-send-email-bocui107@gmail.com> Subject: [U-Boot] [v3 patch 4/4] SMDK6400: Fix SMDK6400 SDRAM init X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Since SDRAM init function have already change, So the SDRAM initial function must be change. Signed-off-by: seedshope diff --git a/board/samsung/smdk6400/smdk6400.c b/board/samsung/smdk6400/smdk6400.c index 35aa40b..043d553 100644 --- a/board/samsung/smdk6400/smdk6400.c +++ b/board/samsung/smdk6400/smdk6400.c @@ -78,10 +78,18 @@ int board_init(void) return 0; } -int dram_init(void) +void dram_init_banksize(void) { + DECLARE_GLOBAL_DATA_PTR; + gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; +} + +int dram_init(void) +{ + gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, \ + PHYS_SDRAM_1_SIZE); return 0; }