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 7A910C021AA for ; Wed, 19 Feb 2025 10:50:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A42DF80FB5; Wed, 19 Feb 2025 11:49:15 +0100 (CET) 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="nLv4wc8v"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6584580A46; Wed, 19 Feb 2025 11:49:08 +0100 (CET) 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 6B59180F98 for ; Wed, 19 Feb 2025 11:49:02 +0100 (CET) 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 lelv0265.itg.ti.com ([10.180.67.224]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 51JAmnqA1786670 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Feb 2025 04:48:49 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1739962129; bh=GDobYAJKmyAa8fkS4WN/ljgw3xYtciChvQ3YKkBdfxM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nLv4wc8vk0oTfMxv7Yo49gVd5xl0kMmdoe1hASqWLB7qCAw1iC2fdZCLFF+0PjyFP DrJwG9VJRnkMDEcjHtEPzVdAtvxCTPYNRGraBQfY8aWJMQs8FVk7j5w3LdAPn8mg6p Ks/zToiA1B748fRh58u5YlMsgaHwmLsApV3pZOuI= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 51JAmnKk020637 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 19 Feb 2025 04:48:49 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) 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.23; Wed, 19 Feb 2025 04:48:48 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 19 Feb 2025 04:48:48 -0600 Received: from localhost (chintan-thinkstation-p360-tower.dhcp.ti.com [172.24.227.220]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 51JAmmc4030295; Wed, 19 Feb 2025 04:48:48 -0600 From: Chintan Vankar To: Christian Marangi , Ilias Apalodimas , Mikhail Kshevetskiy , Sughosh Ganu , Simon Glass , Michael Walle , "Roger Quadros" , Matthias Schiffer , Santhosh Kumar K , "Hari Nagalla" , Nishanth Menon , Jonathan Humphreys , Andreas Dannenberg , "Kishon Vijay Abraham I" , Joao Paulo Goncalves , Siddharth Vadapalli , Alexander Sverdlin , Wadim Egorov , "Udit Kumar" , Neha Malcom Francis , Andrew Davis , Chintan Vankar , Ramon Fried , Joe Hershberger , "Bryan Brattlof" , Vignesh Raghavendra , Manorit Chawdhry , Tom Rini CC: Subject: [PATCH v2 10/13] board: ti: am62px: evm: Enable cache for AM62p Date: Wed, 19 Feb 2025 16:18:28 +0530 Message-ID: <20250219104831.2315464-11-c-vankar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250219104831.2315464-1-c-vankar@ti.com> References: <20250219104831.2315464-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-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. Signed-off-by: Andreas Dannenberg Signed-off-by: Chintan Vankar --- Link to v1: https://lore.kernel.org/r/20250107093840.2211381-11-c-vankar@ti.com/ Changes from v1 to v2: - Updated commit message. 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 75359fa1614..0be9817064b 100644 --- a/board/ti/am62px/evm.c +++ b/board/ti/am62px/evm.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -54,6 +55,13 @@ int board_init(void) return 0; } +#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