Message ID | 1464003511-19262-1-git-send-email-Zhiqiang.Hou@nxp.com |
---|---|
State | Superseded |
Delegated to: | York Sun |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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 3rD3CJ4Wzbz9t4c for <incoming@patchwork.ozlabs.org>; Tue, 24 May 2016 01:59:55 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C5008A75C6; Mon, 23 May 2016 17:59:51 +0200 (CEST) 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 cEW0IwtKzTCa; Mon, 23 May 2016 17:59:51 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 12BF3A7528; Mon, 23 May 2016 17:59:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D63B1A7514 for <u-boot@lists.denx.de>; Mon, 23 May 2016 14:03:05 +0200 (CEST) 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 mKI68zP9ZvSz for <u-boot@lists.denx.de>; Mon, 23 May 2016 14:03:05 +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-bl2-obe.outbound.protection.outlook.com (mail-bl2on0075.outbound.protection.outlook.com [65.55.169.75]) by theia.denx.de (Postfix) with ESMTPS id 23F35A74D0 for <u-boot@lists.denx.de>; Mon, 23 May 2016 14:03:02 +0200 (CEST) Received: from DM2PR03CA0030.namprd03.prod.outlook.com (10.141.96.29) by BY2PR03MB473.namprd03.prod.outlook.com (10.141.141.143) with Microsoft SMTP Server (TLS) id 15.1.492.11; Mon, 23 May 2016 11:48:37 +0000 Received: from BY2FFO11FD028.protection.gbl (2a01:111:f400:7c0c::163) by DM2PR03CA0030.outlook.office365.com (2a01:111:e400:2428::29) with Microsoft SMTP Server (TLS) id 15.1.501.7 via Frontend Transport; Mon, 23 May 2016 11:48:36 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD028.mail.protection.outlook.com (10.1.15.217) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Mon, 23 May 2016 11:48:30 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u4NBmPIR006721; Mon, 23 May 2016 04:48:27 -0700 From: Zhiqiang Hou <Zhiqiang.Hou@nxp.com> To: <u-boot@lists.denx.de>, <albert.u.boot@aribaud.net>, <scottwood@freescale.com>, <Mingkai.hu@freescale.com>, <yorksun@freescale.com>, <leoli@freescale.com>, <prabhakar@freescale.com>, <bhupesh.sharma@freescale.com>, <zhiqiang.hou@nxp.com> Date: Mon, 23 May 2016 19:38:25 +0800 Message-ID: <1464003511-19262-1-git-send-email-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131084777160737267; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(19580405001)(77096005)(4326007)(19580395003)(106466001)(189998001)(86362001)(87936001)(47776003)(36756003)(105606002)(85426001)(50986999)(8676002)(1220700001)(104016004)(8936002)(586003)(92566002)(5008740100001)(81166006)(5001770100001)(229853001)(48376002)(2201001)(50466002)(6806005)(2906002)(5003940100001)(50226002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB473; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD028; 1:B8dRcKyJceLmf0dcaiP+eZFzsnaZIZj/3HUqAvb3e9BP8uGtiF+yGLOsuGknk9Y8af7/MddkbfXkRtSS5lDT3KHSRBceuxoeW3R2++pQ0e5pTrmgsrLCwGviSCkMfxrOI0jzCRqg3pFbryAJs1PgwlfgyXRhIz9wLAQvvdiL2Qj11+8uSXtz17xTP144ZImGshCUpp2fM1BcnzyNvkrdsfH0Ed5IwsWKGR/Nxv+/NDg5yqryrpYTVSvkUCFZfby0MgVs8CRe/vQrJwgke+LoYr/EDgyZTFy7q/dKpLN8TVzuDXWdJXHu0Q3Sax2ferjiabg//4VIdBDch13gHj4RNnv3i7Yu6fX/i8DkjM2hQJHj6Jaor2x8ZE0QWZIxDbxYpNHK/lWwpSatdBNNnNj2Z7ys43aLeRFNI2EupQFKRTk3Q3hIBzliDoqkY+BaGAg96+fqdSL3eNVvAEoOvZzz4WIIugCMkktnX9e5QtDeKGp1I5SZrIZNRsB55wCx62GTx+jWYvQWgVM8aRUHtdY1rlOdSa198aDvumJ1LbFhazRUAaoRZCEcLK15ia0J6/uFS9UYi65wmkqIvTcPu+hD45tyYZ03ZSsaaEBVx5lOOeC3BKp8dWR2nKLQC5c/TTxfSJPXu2FwNdNxt5BPeEfQLKUGKpzGBdpzypVYfmmZJdzpnzWJy7GUpx07yp51dMBcCeaUQNv0UlHOJcfJX5TAM5i3GY6PLOavMAg5MrkD9HQ= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: b9edddf8-9e46-4560-2092-08d383002c95 X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB473; 2:857vOeCGAJ36eth8Pu+ngf9m4t8fWo0r4SCSfit2FR/PaJ1O/9QFEeD5K2KXi/G8L02S8FjTucmi/6lYt4tf6BKMNZ/+ZmauHP4pPyDWSm1fZxC7mSI1XOxvjx/fJD8MS6Nnv2hAoIQNP4VZw5tpyj3aV9HfILWQJh5hY5FWl+ZXLQBWBsPcrQiuYwozR3OW; 3:vSLPJhRHp2dwxiCoXQxN8NCm+vT+PQXUPys4AU5wkpoe6HC/QlJY6OxY528UAE8nzjfNDsPuQI9AZRq3Vdb0HRhlp7lcP/Oo23LIer1YgcnAFnmn+RJJ8jgWkLcUlCZbXkjYuXfmqcR8AtgoK+WWZI2MtjDDSD9DXTWGDoChOUTSLrAkF1HNzn9Ne9jniJJ4Tj3g4j6KC/d40muiTZcw61lB+mKeNqlCGzuXDCQHhe8=; 25:vwyTBYOHzSnVm6DT3mLK21tmkcLsFc/EOa31RTddue8Li0V380N3F/3fcP3SpaxfgyeuTxdHtYKPJvSONuAmHlLE5cwZCbX3DbBEmHtRdWylX+7QeknA/QvscnIo2ucGqOsvKTSQaYAuG4BQifAN/ujbNGZ6m7EYaswXjTzXSxfi/aL9v38wHjU0OHJ8VYEUL7Rgp2FBr3dRVvU9Qka3wUycb7DGuG0Ed8TwtdLytiS54OGRp3+LEpCW+6IoBadQVfAB26g8fYVE/RlKYG1B7/PtQdYaXw17dTm8BU9peuJho6c72r+GkUzBg2T3qljsQvdoaszLG0lFYMPcvrQJdhP0NL6FQ+hIN+HQsd5HyRd06M4oKn+YpggYSdfSUG9dRNo4FTZ/sDXr+KXRTww8QVPMRrMdDj12vS8QWShI2QI= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB473; X-Microsoft-Antispam-PRVS: <BY2PR03MB473603664EC89D796D474DD844E0@BY2PR03MB473.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13024025)(13023025)(13018025)(13017025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:BY2PR03MB473; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB473; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB473; 4:emtc8w/SSlXjUi0o1f1nFd3vi5iTiEb0o0W43IK3pIvwOuGD/FcbqvnfHMsAOz8iHoynBPPMdpOvFAq+KAHwjkTKWvlT6rzwn4g9VJbMq3jwf0mYmLY2INTSNO9Rrgw+TMhmUwX3sA0gptY+42qL/hyswRGkozsj1Y9lbYXPkuPupP78FcAj72iVFpQPe7uNrMKqMXpkq63+AR/6JDfBwoYD+OknPtKpS0yg7RdnVYTGV4uz+o7CVrs+CMtjObQIM4X7+FtdCjb2yChNqOvu9u42gIxn2DEn7qagfDupkxenZ0BxsVs50ajHDBzM+Gui14OExzmACBfuQsVD5jCdJ2Qy5NEFdsf0sWVAXL4H/mW0/cunCHIHWW0fmShqYl1Yo2KDT+u1RvAHC6X/VEnIsytKJlERMyrJC+89an2jAeEuYkFKv8A0rPgUChFojnM9i4iM+MT6I+e6SBTB0Y7LZ4h1XoQfNqHMO4/HClmB0r0= X-Forefront-PRVS: 0951AB0A30 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB473; 23:jlFla3Q7DRf5e4xuzQuZ/7OjmRAlJw5wndgJgZgW3h?= =?us-ascii?Q?6lOaRa2MyDTHG1fg38Bidp+Jj7b6uXZLKZMNKXNKAAQMrt5RpLyWRyvoZt/S?= =?us-ascii?Q?D4BtsFQ0NEFJrf2Sy+gUaQLLuBGANgYTEafV3BEPZjUeYsegY/NR18cgulBj?= =?us-ascii?Q?0UqfLRYTWTaRiPB3gkOo1o0JnRyQ1IRZKwKzpHcBlJLwAbRqt78nJ/EBzUUE?= =?us-ascii?Q?ohQiZ2a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sJZKG5TtcH2+lyu/Kca/3HOAZRjS1hsTKY0THYJzUns30iZrbwy+UEQLgo2KD+jvhgqCHKd+rl6TvqzP5KPmMw3kTn2QOrdLlFXetrCf9bH/IJpNCdXnF4xlOg9U82Iwdtzj7FG7MjyV172U8=; 24:deccP0Ja5UXAzNRLCyEZFnh1G8vnH9SJVa5I3SlFCaomSKSogCGGrjDxgVdBEgm+h7djqf9sVTVwxQXIcXgPSbDCthEdZJ7EdzRJGeOLIZA=; 7:KEuWq5A3e52skXimdx+Lg3RTeCVZUq2Mxe2L7Q610JVizCso8a2Jk99Euvai/g+6IxFmMzbvPhjjz4WKnMigHX4ouOkWFPWxWbecCJofmKxNdho5bMp5tDd9YutyvYWEiI+2d1s7f28frtUdEKm5MkxHrNPsH7YxpgBuy2bQUwKsyNa92sPARkxQ3PXPOqEw SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2016 11:48:30.8788 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB473 X-Mailman-Approved-At: Mon, 23 May 2016 17:59:49 +0200 Cc: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Subject: [U-Boot] [PATCHv4 1/7] armv8: fsl-layerscape: add i/d-cache enable function to enable_caches X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <http://lists.denx.de/mailman/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <http://lists.denx.de/mailman/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c index d939900..672a453 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c @@ -425,15 +425,21 @@ int arch_cpu_init(void) return 0; } +void mmu_setup(void) +{ + final_mmu_setup(); +} + /* - * This function is called from lib/board.c. - * It recreates MMU table in main memory. MMU and d-cache are enabled earlier. - * There is no need to disable d-cache for this operation. + * This function is called from common/board_r.c. + * It recreates MMU table in main memory. */ void enable_caches(void) { - final_mmu_setup(); + mmu_setup(); __asm_invalidate_tlb_all(); + icache_enable(); + dcache_enable(); } #endif