From patchwork Mon Nov 17 04:00:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 411378 X-Patchwork-Delegate: iwamatsu@nigauri.org 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 7C5AB1400D2 for ; Mon, 17 Nov 2014 15:01:20 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9BBBD4B872; Mon, 17 Nov 2014 05:01:18 +0100 (CET) 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 GfDqPIDEV52o; Mon, 17 Nov 2014 05:01:18 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E77F44B852; Mon, 17 Nov 2014 05:01:17 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AE8A64B85E for ; Mon, 17 Nov 2014 05:01:08 +0100 (CET) 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 H3gi7rOfbMiJ for ; Mon, 17 Nov 2014 05:01:08 +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-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by theia.denx.de (Postfix) with ESMTPS id 7BA744B690 for ; Mon, 17 Nov 2014 05:01:03 +0100 (CET) Received: by mail-pa0-f54.google.com with SMTP id hz1so10267891pad.27 for ; Sun, 16 Nov 2014 20:01:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=xgL/1HbfM7ghwU17rwXxc3hj9GuAfaCR5BowaMuQQio=; b=mS0ZFzVQPRhJJR2qpqhyJ/dB+aRAKyQDVgAY1Wn6paeYzJjjiiCv250jju/XCwfW24 sxP0h+ZYU/nYSEYQdgngnXNnbvU1UTRdwneCCWbfQoUBf4rZnK8RtVfnMUhyWAspjI83 qPCsItv+n2Mn5l7kX/ZGrTgVR/Cit3DSqofDa+og8cgGgZ/0dzInmxEFnsRIuuE3AdF/ Eit+A8WIsYsoUdJMl0BKNDTQQnnU+lnAFUtcWjfL1c5zz/DXfQQQQvpB/RUU5OiK4zDG 6EwcDOOFAQTnhpxf0V9onF/H+FJsLaMOef7UL+ZbAp4S9pVjC5IfUAfpDUdNonJxb0Na kl7w== X-Gm-Message-State: ALoCoQkol87SdW/8g0FkWaMvKuWK9M+P0l8WxebYjELcOhbdbm0cIgY17EW68SOyIiQTnpLQsLZS X-Received: by 10.70.138.104 with SMTP id qp8mr26154314pdb.99.1416196862137; Sun, 16 Nov 2014 20:01:02 -0800 (PST) Received: from xps-iwamatsu.renesas.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id kj9sm33590974pbc.37.2014.11.16.20.00.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Nov 2014 20:01:00 -0800 (PST) From: Nobuhiro Iwamatsu To: u-boot@lists.denx.de, Nobuhiro Iwamatsu Date: Mon, 17 Nov 2014 13:00:43 +0900 Message-Id: <1416196845-8317-2-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1416196845-8317-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> References: <1416196845-8317-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> Cc: Nobuhiro Iwamatsu Subject: [U-Boot] [PATCH 2/4] arm: rmobile: koelsch: Remove dram_init_banksize function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 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 Koesch board is defined CONFIG_SYS_SDRAM_BASE, and this can use a basic function of dram_init_banksize instead. Signed-off-by: Nobuhiro Iwamatsu --- board/renesas/koelsch/koelsch.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/board/renesas/koelsch/koelsch.c b/board/renesas/koelsch/koelsch.c index 908bc60..244bc58 100644 --- a/board/renesas/koelsch/koelsch.c +++ b/board/renesas/koelsch/koelsch.c @@ -90,7 +90,7 @@ void arch_preboot_os(void) int board_init(void) { /* adress of boot parameters */ - gd->bd->bi_boot_params = KOELSCH_SDRAM_BASE + 0x100; + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; /* Init PFC controller */ r8a7791_pinmux_init(); @@ -173,12 +173,6 @@ const struct rmobile_sysinfo sysinfo = { CONFIG_RMOBILE_BOARD_STRING }; -void dram_init_banksize(void) -{ - gd->bd->bi_dram[0].start = KOELSCH_SDRAM_BASE; - gd->bd->bi_dram[0].size = KOELSCH_SDRAM_SIZE; -} - void reset_cpu(ulong addr) { u8 val;