From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 19 Jan 2024 15:25:46 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rQpoW-0079Ya-2v for lore@lore.pengutronix.de; Fri, 19 Jan 2024 15:25:46 +0100 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rQpoX-0003kG-IP for lore@pengutronix.de; Fri, 19 Jan 2024 15:25:46 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=shHghOwnhx8RE4NmkfPrW36L8vlPz5LcXsme0yGfV8A=; b=nlt+QNh7BDTkwver/v3HVqXJ1x vosebpjR7dqLG/Fz9uHPOppt8tcjFl2z+LtoDQs5ECCra3KGPCtdAFKdtSNAZurnqnV/x7cYqf6CK 4ZJmyXFlZxLfHpeEJ+S7cWf2q8m/jFDcPucWPcLKnqYevkVspzy7DCwu36VqepBhI5vVFEJFQEcwY I2vHFxlV4Xw67jnxYD5KEE1Kti0DlPd0Qljojvmi4fAtoZwBU1QqG4Yxp/H4FzuLUaHccXUQX9z3R f9fv2vKctTSIGT0td7TH5m/lXu8cvRIC9nKjpb3vrY51+cAREfO07nEtJ/qoGpVuNMRfg9mby57Ar 4oYZnKbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQpnI-005pqg-36; Fri, 19 Jan 2024 14:24:28 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQpnE-005pnQ-2W for barebox@lists.infradead.org; Fri, 19 Jan 2024 14:24:26 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rQpn5-0003OS-CK; Fri, 19 Jan 2024 15:24:15 +0100 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQpn4-000wI2-W2; Fri, 19 Jan 2024 15:24:15 +0100 Received: from localhost ([::1] helo=dude02.red.stw.pengutronix.de) by dude02.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1rQpn4-00DczL-2p; Fri, 19 Jan 2024 15:24:14 +0100 From: Sascha Hauer To: Barebox List Date: Fri, 19 Jan 2024 15:24:06 +0100 Message-Id: <20240119142413.3206832-1-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240119_062424_846050_563EAFBA X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH 0/7] ARM: Add i.MX93 OP-TEE support X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) This enables OP-TEE support for i.MX93. This is done in a way very similar to how it's done on i.MX8M. One major difference is that the i.MX93 needs a RAM firmware for the EdgeLock secure enclave. Without it OP-TEE doesn't work properly. The firmware can be integrated into the i.MX93 image where the ROM picks it up automatically. The firmware image is SoC revision specific though, so we load the firmware during runtime to avoid having to create a barebox image for each SoC revision. Sascha Hauer (7): firmware: add missing FIRMWARE_IMX8MQ_OPTEE symbol firmware: add missing include firmware: i.MX OP-TEE: Add some Kconfig help ARM: i.MX93: add imx93_barebox_entry() ARM: i.MX: export imx9_ddrc_sdram_size() ARM: i.MX93: add scratch space support ARM: i.MX93: Add OP-TEE support arch/arm/boards/tqmba9xxxca/lowlevel.c | 4 +- arch/arm/mach-imx/atf.c | 25 +++++++++- arch/arm/mach-imx/ele.c | 67 ++++++++++++++++++++++++++ arch/arm/mach-imx/esdctl.c | 17 ++++++- arch/arm/mach-imx/imx9.c | 15 ++++++ arch/arm/mach-imx/scratch.c | 11 +++++ firmware/Kconfig | 32 ++++++++++++ firmware/Makefile | 5 +- include/firmware.h | 1 + include/mach/imx/ele.h | 5 ++ include/mach/imx/esdctl.h | 2 + include/mach/imx/scratch.h | 1 + 12 files changed, 180 insertions(+), 5 deletions(-) -- 2.39.2