Message ID | 1466566259-33431-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 3rZ9kB2jBnz9sDX for <incoming@patchwork.ozlabs.org>; Wed, 22 Jun 2016 13:56:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C9B204B9AD; Wed, 22 Jun 2016 05:55:59 +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 By4f48PeF6bZ; Wed, 22 Jun 2016 05:55:59 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 12DEC4B951; Wed, 22 Jun 2016 05:55:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2EF974B951 for <u-boot@lists.denx.de>; Wed, 22 Jun 2016 05:55:57 +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 aQS0ARaHXYl6 for <u-boot@lists.denx.de>; Wed, 22 Jun 2016 05:55:57 +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-bl2on0077.outbound.protection.outlook.com [65.55.169.77]) by theia.denx.de (Postfix) with ESMTPS id 7AC274B94B for <u-boot@lists.denx.de>; Wed, 22 Jun 2016 05:55:52 +0200 (CEST) Received: from DM2PR03CA0036.namprd03.prod.outlook.com (10.141.96.35) by CY1PR0301MB1628.namprd03.prod.outlook.com (10.162.166.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Wed, 22 Jun 2016 03:41:38 +0000 Received: from BY2FFO11OLC012.protection.gbl (2a01:111:f400:7c0c::181) by DM2PR03CA0036.outlook.office365.com (2a01:111:e400:2428::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12 via Frontend Transport; Wed, 22 Jun 2016 03:41:38 +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; 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.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 BY2FFO11OLC012.mail.protection.outlook.com (10.1.15.23) with Microsoft SMTP Server (TLS) id 15.1.517.7 via Frontend Transport; Wed, 22 Jun 2016 03:41:32 +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 u5M3fQk1003330; Tue, 21 Jun 2016 20:41:28 -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: Wed, 22 Jun 2016 11:30:54 +0800 Message-ID: <1466566259-33431-1-git-send-email-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131110404972926709; (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)(7916002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(50466002)(77096005)(50986999)(87936001)(81166006)(50226002)(2906002)(189998001)(81156014)(229853001)(5003940100001)(106466001)(105606002)(4326007)(48376002)(8676002)(586003)(104016004)(47776003)(8936002)(68736007)(6806005)(19580395003)(19580405001)(86362001)(8666005)(7846002)(36756003)(2201001)(356003)(11100500001)(85426001)(92566002)(5001770100001)(97736004)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1628; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC012; 1:FWbm1Zt8IVD15j9LWAw+UruRYAXMY3kDZVN13MRxmQEhT45KsWObh32CMSv7ox+9aq7qJ2AmjscZZMCYvG/mBuEkcR6MtxIwE1f4hfLDM8naAQCTJwHvZikIBd5a6RtSpLwJMAd+4bFAtKwWsj72jrL/B/Yr5oZN4l8/NN8ohXDLOWzAvjyMEWZhTDY9E+/7mokh2ILN+rZEjBqthhBh1roIIZ3sJgAKDkmQDuGYBVa7wRQjsrSxBTygETzGvde0uZ4fWTmZd4ojt/tUqwE1Q1M84IMa06pWuFDseT/BHtaWUDs4Gn4h+rOcVg29ie3MbRMVKe6Dg/gthHyXP5dZz65ZHNyCN7Al7RFYnQ7RIy6v4zaq5GDya5bfSHxbYyLaVPSEWz3u1WiHhEhDsQrnjCW/EHBgGyFgSe1Pjp/icZda6G1/oGgPD0b+e3ysWV54yeBePJfpXYQSxkTSx6AZxPKiRKT8LxuLclcd4WJkxkPQ5fVUPfO2GTkpKpgncdhbgLHfszwpQbSL5phZh0X44jSAR8in94dScK7x2ja9uMl0DYzN4hhOu28Gk6x1wyUD6Nqa3z9tRlQ0nvQeLaAv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prnTB5G61DGXQhjNeFRMgybn+shzv7/89GcUr7Kxie/jVU= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1628; X-Microsoft-Antispam-PRVS: <CY1PR0301MB1628EA3C874CBC918EA04238842C0@CY1PR0301MB1628.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13018025)(13024025)(13015025)(13017025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB1628; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB1628; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1628; 4:MvdhpyLI5JJ2fx2+x3graW2FHMxcTzouMSvfXY5KOZmtVVJCDljc6bzGtlyYcW5UKNFrKc70IkQ0Xljx5Xu33dGdQNKGlT5j9rrql/F6Ab7IK2CZ7HnOOEzymjsJqHedLvmCKWZS4KjPdmtyCG3iLVr1nWZ3xrGmjTkAD2r7CC6H1S2jWWBK1CVbBUNrVnEau9VHwTJRlLb4C/UVJxTvbOZWZEOXJTiPc7uZkKTgqp+mt5d97/ISXMNUpC78+3NF8KNYrTo2AkWmUoI2YIs37D5FOzqbCahLP4ZpO6GWbgUtxQDAeuhVR1Bv3gWrlwCQyb5qypVzE9ddMq1HUci3ZX1PM2FsCPrtD5GRKs5aKk8nPAa5psmE+cToWtZxzejPxnDIe7f9cfkx8wBg9s2T4QukyAdK7w0ma2BXQLnVcOgq9w/7V9uF2bRQmehxKCuA0I2vRlvx6w1YLCmOJPQUd2Tr74UNDlvMcJrYfeDIb3e9XMcCxlmmt6k1o6OJSfc9ojBrkz0NsM5NqNDsz1iTug== X-Forefront-PRVS: 0981815F2F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1628; 23:WD46FMQWcg3KHMfWMLss44mLZQkLyCbVNz6STlC?= =?us-ascii?Q?ux84MkOQwHzf3d123UyKrAgTfB2rbIXJWUjnTCCqLff8PJ1FBi6wHK1t5l63?= =?us-ascii?Q?AmLqwvOZiRXpxosDDKMi1bxB3ypSuOeIC6pck4aM0efV/7LJGL0E8U5gH0Q7?= =?us-ascii?Q?9OseuPowy3N7ciAwCtsimI4EP56WM4lsOSXNx9vPMU8oQVgVI5axocet3cXT?= =?us-ascii?Q?WhNWEb7cePDXV7wAqE1eE/I6NILF3yQO5Jm6tW2I2tQl2TIuRqK/luGkGEBG?= =?us-ascii?Q?fZbXkf7IEoXgFWk6aPp+uSeT5+dJsxlCKSVoZemd42D0CMUGZVCKe3sj9y9D?= =?us-ascii?Q?uPLwG5mX9R2DTBQFP1RzogqTNkU0UractnYfCieXIOAIed/AXW12nXUL4STs?= =?us-ascii?Q?z5ATP++uGYRx376Rdyigef7GoEUozABOhrBsWk4g1gkHdAiVLnAByb0lKttp?= =?us-ascii?Q?c/DaXRFlQ69akh70B1ajYiGVno33pn59cQe+KilSmMlj+lq85TSblg1JXIxt?= =?us-ascii?Q?qddcrWGJxZQAU/8yr4AFovPT3hNv6UwTV/3FeI3QDv68qGAOZ+AHrEoQ2lPJ?= =?us-ascii?Q?jLnexYh6dhEWbD75E2Dk6gPJlHmDyBPBGIsntB97NLUNBXSwtvGpVt5DZg35?= =?us-ascii?Q?Asu2RmWtUHAZL8iSCmX4D5rEgUFfUFG95YLT+twdPAgT1/tmHYgXufJvzw/l?= =?us-ascii?Q?RqcA00S45Itar2pdixuThV2cEHh+20PwgOTqDMivGBo+XHcRAld5GnsbLtS2?= =?us-ascii?Q?Y1CJEpMddrV58ZoKbPURR3OGPqS7OH6ZlVOH8mhraxoP783rB4i9YQM3Rlb0?= =?us-ascii?Q?IobFdOgnRbRRlo3Zslm5BqEXvl6Hk51iL5VOZF2VbHi7U8Zm1lwybx21MLW3?= =?us-ascii?Q?tZPDgPypteBTSs6wJdRyB1HOiiy0mBU93FBOm+oQ57I+qKthUVu6C8ADHc5v?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V3WOq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2016 03:41:32.1292 (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: CY1PR0301MB1628 Cc: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Subject: [U-Boot] [PATCHv6 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 8062106..d5bcf67 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c @@ -422,15 +422,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