From patchwork Mon Mar 2 16:28:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 445352 X-Patchwork-Delegate: marek.vasut@gmail.com 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 E1B561400DE for ; Tue, 3 Mar 2015 03:37:24 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 13DE5AB67B; Mon, 2 Mar 2015 17:35:57 +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 ex0sEZwNwIIf; Mon, 2 Mar 2015 17:35:56 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EE940A7440; Mon, 2 Mar 2015 17:35:02 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AC0F94B715 for ; Mon, 2 Mar 2015 17:34:56 +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 LMhwmlq-kLVL for ; Mon, 2 Mar 2015 17:34:56 +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 na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0073.outbound.protection.outlook.com [157.56.111.73]) by theia.denx.de (Postfix) with ESMTPS id A142BA741C for ; Mon, 2 Mar 2015 17:34:33 +0100 (CET) Received: from BY1PR0301MB1192.namprd03.prod.outlook.com (25.160.195.150) by BY1PR0301MB1173.namprd03.prod.outlook.com (25.160.195.144) with Microsoft SMTP Server (TLS) id 15.1.93.16; Mon, 2 Mar 2015 16:34:27 +0000 Received: from linux-builds1.altera.com (64.129.157.38) by BY1PR0301MB1192.namprd03.prod.outlook.com (25.160.195.150) with Microsoft SMTP Server (TLS) id 15.1.93.16; Mon, 2 Mar 2015 16:34:15 +0000 From: To: , , , , , Date: Mon, 2 Mar 2015 10:28:08 -0600 Message-ID: <1425313688-23595-21-git-send-email-dinguyen@opensource.altera.com> X-Mailer: git-send-email 2.2.1 In-Reply-To: <1425313688-23595-1-git-send-email-dinguyen@opensource.altera.com> References: <1425313688-23595-1-git-send-email-dinguyen@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR08CA0057.namprd08.prod.outlook.com (10.141.200.37) To BY1PR0301MB1192.namprd03.prod.outlook.com (25.160.195.150) Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; X-Microsoft-Antispam: UriScan:;UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1192; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006); SRVR:BY1PR0301MB1192; X-Forefront-PRVS: 0503FF9A3E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(66066001)(50986999)(229853001)(33646002)(19580395003)(122386002)(76176999)(50226001)(48376002)(86362001)(50466002)(62966003)(42186005)(40100003)(53416004)(2201001)(19580405001)(46102003)(77156002)(86152002)(87976001)(92566002)(2950100001)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0301MB1192; H:linux-builds1.altera.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:; SRVR:BY1PR0301MB1192; X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2015 16:34:15.9450 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB1192 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1173; X-OriginatorOrg: opensource.altera.com Cc: u-boot@lists.denx.de, dinh.linux@gmail.com Subject: [U-Boot] [PATCHv2 20/20] arm: socfpga: remove the need to map sdram in arch_early_init X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Dinh Nguyen Since we are already mapping sdram 0x0 in board_init_f, we can remove it here. Signed-off-by: Dinh Nguyen Reviewed-by: Marek Vasut --- arch/arm/cpu/armv7/socfpga/misc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/cpu/armv7/socfpga/misc.c b/arch/arm/cpu/armv7/socfpga/misc.c index 7873c38..3cee6ff 100644 --- a/arch/arm/cpu/armv7/socfpga/misc.c +++ b/arch/arm/cpu/armv7/socfpga/misc.c @@ -205,9 +205,6 @@ int arch_early_init_r(void) /* Configure the L2 controller to make SDRAM start at 0 */ #ifdef CONFIG_SOCFPGA_VIRTUAL_TARGET writel(0x2, &nic301_regs->remap); -#else - writel(0x1, &nic301_regs->remap); /* remap.mpuzero */ - writel(0x1, &pl310->pl310_addr_filter_start); #endif /* Add device descriptor to FPGA device table */