From: dinguyen at opensource.altera.com Date: Mon, 2 Mar 2015 10:28:08 -0600 Subject: [U-Boot] [PATCHv2 20/20] arm: socfpga: remove the need to map sdram in arch_early_init In-Reply-To: <1425313688-23595-1-git-send-email-dinguyen@opensource.altera.com> References: <1425313688-23595-1-git-send-email-dinguyen@opensource.altera.com> Message-ID: <1425313688-23595-21-git-send-email-dinguyen@opensource.altera.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Dinh Nguyen Since we are already mapping sdram 0x0 in board_init_f, we can remove it here. Signed-off-by: Dinh Nguyen --- 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 */ -- 2.2.1