From patchwork Fri Nov 16 21:19:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 199737 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 406592C0090 for ; Sat, 17 Nov 2012 08:29:53 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A07084A191; Fri, 16 Nov 2012 22:29:50 +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 F-f+J8PnzhE4; Fri, 16 Nov 2012 22:29:50 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BFCD74A176; Fri, 16 Nov 2012 22:29:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E87424A1BC for ; Fri, 16 Nov 2012 22:28:54 +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 7hOoegQVNV0J for ; Fri, 16 Nov 2012 22:28:54 +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-ee0-f74.google.com (mail-ee0-f74.google.com [74.125.83.74]) by theia.denx.de (Postfix) with ESMTPS id 998264A185 for ; Fri, 16 Nov 2012 22:28:49 +0100 (CET) Received: by mail-ee0-f74.google.com with SMTP id t10so235625eei.3 for ; Fri, 16 Nov 2012 13:28:49 -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=d2BlBA329HLdz7JCvHefLWpgOlED7DmvcKlFOaNpm/U=; b=I8cDnwqU2lUhYblGOX8/UHWVzfz/vQEHlPKlaANAgYvZBawSwzQhd84+nI9yKa5CUf 6EQcS/bR9PhVn5wmq59puLZmFhuHnLL2BVKLs0NPdDwg4tMbfv16RpWdNNDWubbt5iPe iGoRkJsrk4iuozaKg40vL+vatFe0dtFhU2hm9iH2t8mz7MFluRJUqmnrjGBhqXVDP3Eu 6XODfhsSVJgNDM9ZenGjA2cdwyEkHqtUTo5ikiC7uyZ6H2MXn9v+fFdpFY4Y35tehCFt jzZgpOH9+HWpEOZXCdU3KzyaHew/B2KkzxR6dwl+TUhAa9s2ZxoECFeQ8PBJFpAQQtA5 lUFA== Received: by 10.14.204.3 with SMTP id g3mr468079eeo.7.1353101329301; Fri, 16 Nov 2012 13:28:49 -0800 (PST) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id u8si633070een.1.2012.11.16.13.28.49 (version=TLSv1/SSLv3 cipher=AES128-SHA); Fri, 16 Nov 2012 13:28:49 -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 E81E720004E; Fri, 16 Nov 2012 13:28:48 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 29CAC1608CB; Fri, 16 Nov 2012 13:28:48 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Fri, 16 Nov 2012 13:19:54 -0800 Message-Id: <1353100842-20126-10-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1353100842-20126-1-git-send-email-sjg@chromium.org> References: <1353100842-20126-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQnvEffzy7icXwhnWtsK67EyiyJkHFGCpFZaDXTEQa5KkKzO+o3FyQOwf6RH+n3FKhXM0y5L4baTs51+WHyiN6IJdV6Lv3j/zlloFw9nfrb5ihmJML9aRZi4+AeECvLxngNE+xJd04C/poVSF/ZAiyE3ps5W7aYNXk68gQ67+qnw6VpsePaTC3pZXPuCkREJ3DljJ5sl Cc: Tom Rini , Macpaul Lin Subject: [U-Boot] [PATCH 09/57] 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 --- 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);