From patchwork Fri Dec 14 06:48:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 206315 X-Patchwork-Delegate: trini@ti.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 633872C008E for ; Fri, 14 Dec 2012 17:57:13 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EA3EB4A189; Fri, 14 Dec 2012 07:57:04 +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 m82AN6NeYaJD; Fri, 14 Dec 2012 07:57:04 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C33394A18B; Fri, 14 Dec 2012 07:55:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6BC7F4A12E for ; Fri, 14 Dec 2012 07:50:49 +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 HafOu1aYpmx8 for ; Fri, 14 Dec 2012 07:50:48 +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-ea0-f202.google.com (mail-ea0-f202.google.com [209.85.215.202]) by theia.denx.de (Postfix) with ESMTPS id 285E04A126 for ; Fri, 14 Dec 2012 07:50:21 +0100 (CET) Received: by mail-ea0-f202.google.com with SMTP id j12so155704eaa.3 for ; Thu, 13 Dec 2012 22:50:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=EcMSzLGaUK4KYUsthbH7V0lMMXi//stPIXJvC3HxixU=; b=bhYB7Kxhk2HfMX3FoFwsGf2LdsD9UzRxKgTN7jgdPpNUb2R/m3JNOev/HHx2Ouyr8Q IIvOq7ecLvOz4lqo9NpzUryRD+epf87ykrqpcRu0GlKHiZMIVIYeGgNgZaF5OqwhnlTO dCtoYaQk8fCiXQnbmsXPVxNeNtuBNBbSPYwrZp0N6mtE5hjg7GZHmIqV0W6SsOcBFG7F J5msg2jD0lGQjslBzP4UErGA9H5iiz7gJket1zHW0mgDSnyNdoHPGWZoO/3Td8CT1AOW UJuTuvvGBFk44U5JudM2Y5iQp5/EvuKpJok2qgtU9MwsPjRPQeF5nB5ISLTJrsySNp8H C4Xg== Received: by 10.14.201.1 with SMTP id a1mr4624412eeo.3.1355467820762; Thu, 13 Dec 2012 22:50:20 -0800 (PST) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id z44si963822een.0.2012.12.13.22.50.20 (version=TLSv1/SSLv3 cipher=AES128-SHA); Thu, 13 Dec 2012 22:50:20 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by hpza10.eem.corp.google.com (Postfix) with ESMTP id 64E8320005C; Thu, 13 Dec 2012 22:50:20 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 601D6160DFE; Thu, 13 Dec 2012 22:50:19 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Thu, 13 Dec 2012 22:48:38 -0800 Message-Id: <1355467767-29575-10-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1355467767-29575-1-git-send-email-sjg@chromium.org> References: <1355467767-29575-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQn9vt09udVTpWi8fzJYDHnI14urYAAAkvBbcK5f4UbsgpDWa0oTbHX71ncFuNXr7dOAxQ9IQDe6XilxW+LOcxor5jlIqFWwAdxlEc99YSaLgarRhgp/J2vrqIk3Xa3huVZLV0JmYW2Gk5KGMZ/7L/FjCsQ37lGK16cBieyH6DeB02upM2h+hHtHVTip0s+R2yeIJyqb Cc: Tom Rini , Macpaul Lin Subject: [U-Boot] [PATCH v2 09/58] nds32: Drop tlb_addr from global data 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This field doesn't appear to be used for anything important, so drop it. Signed-off-by: Simon Glass --- Changes in v2: None arch/nds32/include/asm/global_data.h | 3 --- arch/nds32/lib/board.c | 11 ----------- 2 files changed, 0 insertions(+), 14 deletions(-) diff --git a/arch/nds32/include/asm/global_data.h b/arch/nds32/include/asm/global_data.h index 475bb44..e693b01 100644 --- a/arch/nds32/include/asm/global_data.h +++ b/arch/nds32/include/asm/global_data.h @@ -62,9 +62,6 @@ typedef struct global_data { unsigned long mon_len; /* monitor len */ unsigned long irq_sp; /* irq stack pointer */ unsigned long start_addr_sp; /* start_addr_stackpointer */ -#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF)) - unsigned long tlb_addr; -#endif void **jt; /* jump table */ char env_buf[32]; /* buffer for getenv() before reloc. */ diff --git a/arch/nds32/lib/board.c b/arch/nds32/lib/board.c index 91395ca..09feaf3 100644 --- a/arch/nds32/lib/board.c +++ b/arch/nds32/lib/board.c @@ -207,17 +207,6 @@ void board_init_f(ulong bootflag) addr = CONFIG_SYS_SDRAM_BASE + gd->ram_size; -#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF)) - /* reserve TLB table */ - addr -= (4096 * 4); - - /* round down to next 64 kB limit */ - addr &= ~(0x10000 - 1); - - gd->tlb_addr = addr; - debug("TLB table at: %08lx\n", addr); -#endif - /* round down to next 4 kB limit */ addr &= ~(4096 - 1); debug("Top of RAM usable for U-Boot at: %08lx\n", addr);