From patchwork Mon Jul 7 05:19:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 367421 X-Patchwork-Delegate: albert.aribaud@free.fr 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 43746140087 for ; Mon, 7 Jul 2014 15:38:34 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 111374A051; Mon, 7 Jul 2014 07:38:30 +0200 (CEST) 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 ICiNvwOKQ3to; Mon, 7 Jul 2014 07:38:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 400D04A033; Mon, 7 Jul 2014 07:38:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 82C614A047 for ; Mon, 7 Jul 2014 07:23:03 +0200 (CEST) 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 zKgIvXxZLFef for ; Mon, 7 Jul 2014 07:23:01 +0200 (CEST) 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-bn1lp0141.outbound.protection.outlook.com [207.46.163.141]) by theia.denx.de (Postfix) with ESMTPS id AA8964A033 for ; Mon, 7 Jul 2014 07:22:56 +0200 (CEST) Received: from BN3PR0301CA0073.namprd03.prod.outlook.com (25.160.152.169) by BY2PR03MB347.namprd03.prod.outlook.com (10.141.139.16) with Microsoft SMTP Server (TLS) id 15.0.980.8; Mon, 7 Jul 2014 05:22:52 +0000 Received: from BL2FFO11FD019.protection.gbl (2a01:111:f400:7c09::179) by BN3PR0301CA0073.outlook.office365.com (2a01:111:e400:401e::41) with Microsoft SMTP Server (TLS) id 15.0.980.8 via Frontend Transport; Mon, 7 Jul 2014 05:22:51 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD019.mail.protection.outlook.com (10.173.161.37) with Microsoft SMTP Server (TLS) id 15.0.980.11 via Frontend Transport; Mon, 7 Jul 2014 05:22:51 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s675MkCb024566; Sun, 6 Jul 2014 22:22:48 -0700 From: Xiubo Li To: , Date: Mon, 7 Jul 2014 13:19:11 +0800 Message-ID: <1404710351-37250-1-git-send-email-Li.Xiubo@freescale.com> X-Mailer: git-send-email 1.8.5 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(189002)(199002)(99396002)(26826002)(104166001)(85306003)(92566001)(81156004)(50986999)(47776003)(36756003)(64706001)(6806004)(19580405001)(83322001)(4396001)(44976005)(69596002)(77156001)(19580395003)(79102001)(20776003)(31966008)(68736004)(107046002)(105606002)(74502001)(88136002)(48376002)(89996001)(97736001)(46102001)(80022001)(81342001)(77982001)(86362001)(102836001)(95666004)(85852003)(104016002)(50466002)(106466001)(87936001)(229853001)(92726001)(74662001)(50226001)(81542001)(83072002)(84676001)(87286001)(76482001)(62966002)(93916002)(21056001); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB347; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02652BD10A Received-SPF: Fail (: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=Li.Xiubo@freescale.com; X-OriginatorOrg: freescale.com X-Mailman-Approved-At: Mon, 07 Jul 2014 07:38:24 +0200 Cc: b44548@freescale.com, b46683@freescale.com, b35083@freescale.com, Xiubo Li , R64188@freescale.com, b47053@freescale.com Subject: [U-Boot] [PATCH] arch/arm: Add individual TLB size support. 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This adds CONFIG_TLB_SIZE for individual board, whose TLB size maybe larger than PGTABLE_SIZE. Signed-off-by: Xiubo Li --- arch/arm/lib/board.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index dc34190..b7327ce 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -353,7 +353,11 @@ void board_init_f(ulong bootflag) #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF)) /* reserve TLB table */ +#ifdef CONFIG_TLB_SIZE + gd->arch.tlb_size = CONFIG_TLB_SIZE; +#else gd->arch.tlb_size = PGTABLE_SIZE; +#endif addr -= gd->arch.tlb_size; /* round down to next 64 kB limit */