Message ID | 1465108175-35114-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 3rNspb6nWzz9s9Z for <incoming@patchwork.ozlabs.org>; Tue, 7 Jun 2016 10:27:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6674FA763F; Tue, 7 Jun 2016 02:27:32 +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 zBMz_hfd0Spu; Tue, 7 Jun 2016 02:27:32 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C0B10A7621; Tue, 7 Jun 2016 02:27:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2600B4B660 for <u-boot@lists.denx.de>; Sun, 5 Jun 2016 08:40:03 +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 GIXCqMCvlQQS for <u-boot@lists.denx.de>; Sun, 5 Jun 2016 08:40:03 +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-bl2on0094.outbound.protection.outlook.com [65.55.169.94]) by theia.denx.de (Postfix) with ESMTPS id 6EAAD4A01C for <u-boot@lists.denx.de>; Sun, 5 Jun 2016 08:39:58 +0200 (CEST) Received: from DM2PR03CA0037.namprd03.prod.outlook.com (10.141.96.36) by BL2PR03MB194.namprd03.prod.outlook.com (10.255.230.142) with Microsoft SMTP Server (TLS) id 15.1.497.12; Sun, 5 Jun 2016 06:39:56 +0000 Received: from BN1BFFO11FD021.protection.gbl (2a01:111:f400:7c10::1:184) by DM2PR03CA0037.outlook.office365.com (2a01:111:e400:2428::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.8 via Frontend Transport; Sun, 5 Jun 2016 06:39:55 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=none action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD021.mail.protection.outlook.com (10.58.144.84) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Sun, 5 Jun 2016 06:39:49 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u556diMM019299; Sat, 4 Jun 2016 23:39:45 -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: Sun, 5 Jun 2016 14:29:30 +0800 Message-ID: <1465108175-35114-1-git-send-email-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131095823952130347; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(8676002)(77096005)(87936001)(5003940100001)(92566002)(5008740100001)(8936002)(19580395003)(5001770100001)(104016004)(81166006)(86362001)(85426001)(6806005)(4326007)(36756003)(19580405001)(50986999)(2906002)(50226002)(229853001)(47776003)(2201001)(8666004)(48376002)(586003)(50466002)(189998001)(106466001)(105606002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB194; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD021; 1:owwjPK1aTfZhmTQOMMIvEt6sTSnxqFHNGVUTaMIUbadJllAHm8jl/goiYV09PPjVEurZkdp3Ui2k6DupG9GFAEH8xZqKl0NPObVIyZ7/R+uSFGvZPTbvwHXZ8uH3kMozn/k7ppOJ2lyJdcL1jqU4EO9qovHIcuEZrm+mJ5yME2emKq77DOxIOebmraQUrHwyfhN96hwQ0LmgjRxuWgLt1YSg+n/Y8Y8w8udBXF95yGRZv3lEHCZmSCpl4xGMFkO8bYHWbrTUkXs8hX70zEF3Ax3s03qD+y/7O+m2Lk/WtJPQLB4UciBsnkfEAWCrTSuS98FEFCvY4gMD0oK3VJBPzwSJ8cSi2X7pp0CuESP+UsM0vluKt7J6WAGtWrMb/IwTPddcP1Yq1V8o5RPZjp+VnG+lKt0ipjlomP/7f6MZgKaWf9+qbpoOykTRGSotscu64iGPQBz95OrPukmI1PjofVW82fAL5S4E4N5b1oDBlSDPCDQdosX6Lt84bUz4KcJgGkI4Y5xj+mGREM3WTJTkfyt2D7egdwqvUAeCGNaXQE3nmqdboRcnANLKZFlSznVSYo5BXjkKxMDkgRYDEorD7p6ze149PM9f6iqwfnDyD7MABnajtfKvSzAmZMw1XalEfD57HA282abT+a/du9AL37QzosvM/TVoRUsR9h4GGMpGS2/Oj9S0Q4gbS9unoIG8WIP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; X-Microsoft-Antispam-PRVS: <BL2PR03MB194D57C154F26504062FE4F845B0@BL2PR03MB194.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13015025)(13023025)(13018025)(13024025)(13017025)(5005006)(3002001)(10201501046)(6055026); SRVR:BL2PR03MB194; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB194; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB194; 4:XJAKLPFgDwGEdZSUz2kwlOhqeZls+QBDJPZVQjU+me+NkLkoxG0VCqkpVDAi1TvLMd81uKEzKfDRWidAidj99IJxn1++ajnquYcYz9YQT4hVj8uD+jWUI/O35p2qYLPjlVN96/9Sjj14a4UUjhxDeh4x+Da5PNTEo2Buv8eINH2XU1QagbyKx/YSYWemU74TG+KnROs22RTuQ51Zyzp/PlXd91C3W2LtulVHnFP8CeAb/eohR+UnWP+gzcZ6ExP1OmQJSBG5f4JPaon9Qo7Y2GYtaS0rZdtKLoWniVurGsKMbaZmOgbNGbvCHfymDJR2FjE5b6TeZtSuJTco53yZLw0yUjeWoXho+hk3lCwzb+e/xK+OBfog36D5w6zEcUfAAI4fRUkOmb0A4hE32s4SUt553jgeIWEloD4OtbW6GvMg17j1QuJJKFnQVVdR9/TD4nfANifhFsz+CndrqDCL1p8zOVIhBZJ/mL2BVgAWlVF6VC9WrB5lPfiAVgTz2pNozc1PUwGv6ThG8De/070Zgg== X-Forefront-PRVS: 09645BAC66 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB194; 23:3JHRMaGp0ZXy1/Vk7vI3oaPR2fP1vtBVJmlNy9M9w2?= =?us-ascii?Q?Y5zFZBaStvwTIBgC4PNwRXXLqCf8VkIuYwgffMSd4E6eBGLyJTzJV3Q+TeAC?= =?us-ascii?Q?ylqRtdvk88texPgc5CfASLi60lIKv11bdshqprT+zdSSCFXCg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uJvb?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB194; 5:TAE6rA6/VWigPNRsiRy20+3hMc4m2WnIiJ9FKihOTpuWDbVJLnlbCuHQ7gasgP3b3J4dFNjXXXg47QZ4RqeEEp9oGsvwKPC1lVjxUL8qmf46D2zGsLDYRSuONNH64JJB9AeMlrAFyWdKIPu+YEkwVRlY+PIr6dJV88uip10GLJE=; 24:rtsCjSudnAXiw3sBsHwYQRU1f8RCGV0ieEiqBqPYFtUfojVpZyPSn2n8Hg9nVN97h0cQJcZdiFrrWiJE22NjXulk0X1ecMVnHZ2v6MeDLe8=; 7:ZPLLe1+oqtVTbKDN0TzXDFUOx1bFIPYwhiU0Gigl7O4swpdYjqv5/N5Id928cjI7aCxtlQrgDr27pvE6B2ARAilPhwbPv5kDhPWDFs3WDE38cZNEEODhVrCLBruCG7ZYzMmeGJ/l/tovlx3VEvnya92uZpzgvz2DnW47j/Tpt4sAuVIuqe3zfJ7HBC9eAo+0YvoGuyioFrc0G5SqnPPMmkhuElgCWreoXdvPaL5QdTQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2016 06:39:49.9402 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB194 X-Mailman-Approved-At: Tue, 07 Jun 2016 02:27:21 +0200 Cc: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Subject: [U-Boot] [PATCHV5 1/6] 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