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 0584BC87FCC for ; Thu, 31 Jul 2025 08:20:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 17A268353F; Thu, 31 Jul 2025 10:19:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="VTHjj2xr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 532428343B; Thu, 31 Jul 2025 10:02:00 +0200 (CEST) Received: from fllvem-ot03.ext.ti.com (fllvem-ot03.ext.ti.com [198.47.19.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4AEAF833F6 for ; Thu, 31 Jul 2025 10:01:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=c-vankar@ti.com Received: from fllvem-sh04.itg.ti.com ([10.64.41.54]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTP id 56V81iQl2955319; Thu, 31 Jul 2025 03:01:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1753948904; bh=LXhnOLLjzl1bMyXQkFTobPywy8gTwMwekj1/AHaBG+A=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VTHjj2xrPOk/T5ELEqfq7d3aJ4xD81tb32+lBw00jMKydzcObLKUCmLzWRMWdjxyJ cRdouq6E/fMiwinDoLcpADldR2KyZTcvG4w2AfFiJT2Hv+F4A4Xhh7LQVHa+u6D0U9 UX+Zfrglhi54aTrW9B6uTXcfQvDUoADnmkamUoGo= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllvem-sh04.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 56V81ieF3806362 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Thu, 31 Jul 2025 03:01:44 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Thu, 31 Jul 2025 03:01:44 -0500 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55 via Frontend Transport; Thu, 31 Jul 2025 03:01:44 -0500 Received: from localhost (chintan-thinkstation-p360-tower.dhcp.ti.com [172.24.231.164]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 56V80QlA2573161; Thu, 31 Jul 2025 03:00:26 -0500 From: Chintan Vankar To: Richard Genoud , Sam Protsenko , Santhosh Kumar K , "Jonathan Humphreys" , Mattijs Korpershoek , Ilias Apalodimas , Bhavya Kapoor , Parth Pancholi , Andreas Dannenberg , Moteen Shah , "Beleswar Padhi" , Anshul Dalal , Sughosh Ganu , Neha Malcom Francis , "Prasanth Babu Mantena" , Wadim Egorov , "Simon Glass" , Alexander Sverdlin , Siddharth Vadapalli , Kishon Vijay Abraham I , Chintan Vankar , Ramon Fried , Joe Hershberger , Jayesh Choudhary , Vaishnav Achath , Bryan Brattlof , Vignesh Raghavendra , Tom Rini CC: Subject: [PATCH v4 11/21] board: ti: am62px: evm: Enable cache for AM62p Date: Thu, 31 Jul 2025 13:29:46 +0530 Message-ID: <20250731075956.605474-12-c-vankar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250731075956.605474-1-c-vankar@ti.com> References: <20250731075956.605474-1-c-vankar@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-Mailman-Approved-At: Thu, 31 Jul 2025 10:19:27 +0200 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.8 at phobos.denx.de X-Virus-Status: Clean From: Andreas Dannenberg Enable cache for AM62p to optimize performance of CPU to access data from memory. Reviewed-by: Alexander Sverdlin Signed-off-by: Andreas Dannenberg Signed-off-by: Chintan Vankar --- Link to v3: https://lore.kernel.org/u-boot/20250225114903.2080616-10-c-vankar@ti.com/ Changes from v3 to v4: - Collected Reviewed-by from Alexander Sverdlin. board/ti/am62px/evm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/board/ti/am62px/evm.c b/board/ti/am62px/evm.c index 2e85363cf5f..c06e3878d67 100644 --- a/board/ti/am62px/evm.c +++ b/board/ti/am62px/evm.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -41,6 +42,13 @@ struct efi_capsule_update_info update_info = { .images = fw_images, }; +#if IS_ENABLED(CONFIG_SPL_BUILD) +void spl_board_init(void) +{ + enable_caches(); +} +#endif + #if defined(CONFIG_XPL_BUILD) void spl_perform_fixups(struct spl_image_info *spl_image) { -- 2.34.1