Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 663B2C433EF for ; Sun, 3 Apr 2022 21:24:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0182483B2F; Sun, 3 Apr 2022 23:24:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649021062; bh=08sH1ZrS97kjsxeAF4uhBM0iD/XAosYjHjobx2dh8TE=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=p5C4W0s+GpJZ5xE6BSLJj+OtPyUaau4tu3b5GUg2lGa5ezbxaRfd1JxnL0qEY3OiA oRhuzNgebQedhkRvPNZZKHG1raWzYW28stRGScWkHKHkzilcF3y+JxujkCFf2xZYxL RpGgYeXk8PIRhdYLvd/vQ0zssUIewkHrG/USZSpHEd+/ctMnBPaYvui6vuYLWHo/w9 SwVx5cLFSaNvcVcUUCyMOrGfgNgS1YIJCO3XS/tvowpw0GJLuyrzrsIV6W2hDByRc3 MIEblWDrXjda2xOtP5Q6AseLc2CLKDrVB0MPyPTTEBQWype58cCe5pUvXhKKQg7Uw4 Zd9C/VYgXDH1w== Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id C01EA83988; Sun, 3 Apr 2022 23:24:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649021059; bh=08sH1ZrS97kjsxeAF4uhBM0iD/XAosYjHjobx2dh8TE=; h=From:To:Cc:Subject:Date:From; b=EEKuqA8DwwE/C1liEwYs61TrplHTYNlalIWo5kG6efuJ4vdHryEOGASDap/WEPXL4 k9gclFwmVHv++R85fFvCNFS1zJKH4w/dbG/yN8R1tIbjVXvG2PNUsfeNdhZ6nppM4d KjzFxg6zv2STKyyEYTUePfvuCsjNylD/OVxrbUTvxmArGT+jkPWSkezu45nZ2ZgkR4 FWCxa66lpJUXG6NQAiezmVfwTVUMhzG7GvI2ZM1oNQMTyJhtoKtwcwZXcAjOA6hEDr mJdG7hfAdQJbv0qAxVXMUdw4cpUlW2HmdDxfE0FNcVOWtJERi7qAEb0A6FDG2Uuhy3 YRyx0dHY76HOA== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Fabio Estevam , Peng Fan , Stefano Babic Subject: [PATCH] ARM: imx: Enable instruction cache early on on i.MX8M Date: Sun, 3 Apr 2022 23:24:13 +0200 Message-Id: <20220403212413.401727-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Enable instruction cache early on to speed up the boot process on i.MX8M. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- arch/arm/mach-imx/imx8m/soc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index a41afc5b4f8..6fd4377f1c2 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -514,6 +514,9 @@ int arch_cpu_init_dm(void) int arch_cpu_init(void) { struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; + + icache_enable(); + /* * ROM might disable clock for SCTR, * enable the clock before timer_init. -- 2.35.1