From mboxrd@z Thu Jan 1 00:00:00 1970 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 4B061C433F5 for ; Sun, 15 May 2022 09:41:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2850883FC8; Sun, 15 May 2022 11:41:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.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=amarulasolutions.com header.i=@amarulasolutions.com header.b="ZqQi9a/Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3DADB83F60; Sun, 15 May 2022 11:41:18 +0200 (CEST) Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1F7378405A for ; Sun, 15 May 2022 11:41:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@amarulasolutions.com Received: by mail-ej1-x633.google.com with SMTP id i27so23534560ejd.9 for ; Sun, 15 May 2022 02:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9zvst052Evsuqr1lLoVlD0YN86vDcWiYlYkoLGoqGwQ=; b=ZqQi9a/Zl4O7IxQd6j3RM4ttfzTChMzespN1WftLKXVfSBQEvIvcqwHgyYJ6ME5Gde Yh7yQ+p0QgBd84xDvEKMsYHaLwbjCZI5U93w3wzMcGE7Jhds11OFjpRcbEEl+44YKkNo VKVtJLPsvK4yDQYOtxkPiEpTaYVCG8aISZJRc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9zvst052Evsuqr1lLoVlD0YN86vDcWiYlYkoLGoqGwQ=; b=aLaZl6Vbw6Kva5+fe6it/qACfZyv8NIbGl/7idUQVb9XiNDbunE79UPoFl5Zb/6GcK iZ00cKkshV1y96kTYI/CBmRQ6O0zNaG8mOkNKFpEdQm7W8anpmK1SXwo97d28vz9xNjt +J1NkkrP4tvRlw6lqqQe3icpEwxY2baQ/YdUSw0bMdfgqqKGbyYUd8xgNBFXXXleh7sc vy9lUZhO5wudekRpeidjWUGow6cW6r/9TTCT5R0n7N8a/O8GwYs9l1VxKeYcONhm+4wU J9P19bp0NBDxm8Ey6B1s8w80GVO+DnarJKFpcbvHyklj/R6YHBH1uO6kBWbWxIak6RkH pdZQ== X-Gm-Message-State: AOAM533w/nSKHqjfG4JJWEuHKjrXUs+kDrd0rGiKNxLnqwljdwt5zlNP sF0SM9xvZA+LjYJNUVZ89ymbBmzQgqtuQSpC X-Google-Smtp-Source: ABdhPJyYPUdcgNPVlhbbAlCGQ6SUYrciFDRJOmX8254EWYDAtMy15+AJv4ZfY4vpxyFElyhygbphdA== X-Received: by 2002:a17:907:7f9e:b0:6f4:d3d0:8d8e with SMTP id qk30-20020a1709077f9e00b006f4d3d08d8emr11269819ejc.501.1652607672220; Sun, 15 May 2022 02:41:12 -0700 (PDT) Received: from localhost.localdomain (mob-109-118-140-232.net.vodafone.it. [109.118.140.232]) by smtp.gmail.com with ESMTPSA id h3-20020a170906530300b006f3ef214e2esm2528373ejo.148.2022.05.15.02.41.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 02:41:11 -0700 (PDT) From: Michael Trimarchi To: U-Boot-Denx Cc: Stefano Babic , Fabio Estevam , Dario Binacchi , linux-amarula@amarulasolutions.com, Jagan Teki , Ariel D'Alessandro Subject: [PATCH] imx: imx8mn_smm_s2/s2pro: Enable TrustZone Date: Sun, 15 May 2022 11:41:09 +0200 Message-Id: <20220515094109.1737878-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.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 When the board was added, enabling tzc380 was left off by mistake. The optee was tested with the following configuration in s2pro + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* 6MiB */ + optee_core@5f800000 { + reg = <0x00 0x5f800000 0x00 0x600000>; + }; + + /* 2MiB */ + optee_shm@5fe00000 { + reg = <0x00 0x5fe00000 0x00 0x200000>; + }; + }; + Signed-off-by: Michael Trimarchi --- board/bsh/imx8mn_smm_s2/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/bsh/imx8mn_smm_s2/spl.c b/board/bsh/imx8mn_smm_s2/spl.c index 097b60c055..549fc6992b 100644 --- a/board/bsh/imx8mn_smm_s2/spl.c +++ b/board/bsh/imx8mn_smm_s2/spl.c @@ -86,6 +86,8 @@ void board_init_f(ulong dummy) preloader_console_init(); + enable_tzc380(); + /* DDR initialization */ spl_dram_init(); -- 2.25.1