Message ID | 20220515094109.1737878-1-michael@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCXK73FY3AFRBOMVQOKAMGQE3GGG2LQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 332983F02E for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 15 May 2022 11:41:14 +0200 (CEST) Received: by mail-ej1-f70.google.com with SMTP id v13-20020a170906b00d00b006f51e289f7csf4915914ejy.19 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 15 May 2022 02:41:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652607673; cv=pass; d=google.com; s=arc-20160816; b=m3a9hb4ij0Mq27CpxZAveNFDFJsewi0uWaCROQrRA9z2PNkqhfM7cWdmBQjQk02bhK eASRkZy+rTHBp+QhNeVtw6YRjbKy/Y2Vv2btT3orQwEuLVjHlaLhSO+2ZDPPb/ZKcXuK fBc9VSzR61Vmc6ROednEZditPuTIV+vtfIM4uL9o5mRkLZikheEkJHKrXIb7enMxpSyV VmURMereBykAhC0X04JH+plf52OhvIRS+/3xyzZcLKWHD0ijHQVEpCSl+dxyVOvW3IG3 +P4HtFIzYVbEhfB4ZU5QinsBJYd10o8VLvfsQuKrnKkoIqqlig6mb/Ff14c3bgeHLrFe 2+Tw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=8oBgM8jtast2X0CB7SYvJDHf9R4c2qij3ZeJRIoyhAg=; b=OiiJZTrHVWJ3DU8tw52NZyMoonMp7L0QtOZvNkXIBNIrv7VJYbADttzzqWSVRi6ibI gytWIMJncELsiQ3tmFNdvBQUuaOBs5pWSeJhHAS0fJmW4cpwTfmjZ+IiQRQgJsiN92vt UwNX2a6gNSOxCUgi38w/blIOhWyqGp5UQq2MX+I5yKKaB7nT5AyaFmMIhphSv/n+LhQT yKeVWmr4icZDC8tjThxM52o/xdbVpA9M0OnOttyJuU57twT7Wovb/c98uub3WogEn6yw jiIosrmA5GLvKzobxs4DuECYPRESChN9ZREX5litL1N7UV6Gfx3fDXpm1SlA5Q4cHlFD j2dQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ZqQi9a/Z"; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=8oBgM8jtast2X0CB7SYvJDHf9R4c2qij3ZeJRIoyhAg=; b=I9CoITLYZY1WTFTHMWYR7gUIw5mRiBq7VUcOyHFYJuiqta4dWp/tpG93PsfaVM/FUk Qj8Y7OcRPQxM7tn5H89jm0xSLNAsMD+losr0OLvi7I8yEvM7+6WnpU+Q1lKmIRUtPqro yqSFBWsfwuMwH8KEiGbGUDyTU05BO/sHgn4S4= 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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=8oBgM8jtast2X0CB7SYvJDHf9R4c2qij3ZeJRIoyhAg=; b=ux+mprDrPfwjwYGjh+NCpwy2tvV/4jsTv6bSN+79HJ2cxW9ab1eaR5TNPJmyBwzmbG qNvLMBATfY76JiumKTX+0bQtrZUQVFj+Qe0XVfPzlGR1BAhOolOUPuZFRJjGCd0fRloZ fx/Pm08qH+P1adPOXJ9aZ7nBG3AmXdjNoqbUF/xiQ33e3PsY3A+0U4pdBB2lW4nuC5M5 pJzHumO2K0/ApgurG/VKC3ekzGjNr6B4B+v4TrTOXQXzJl3VVA/ALQufh7maXPOr8YVT /uUoS3dUFoEsupZK13YoXZSFErIBxSGJGFkvV1H1VjfgrwvQofKdc9n45q074k722NIE UzHw== X-Gm-Message-State: AOAM5302vPk8atAjNeXNTFZxatB2HhrG2/kNxR/XqJ/c5vvlFO9iO16w Uu3mn4l/t+yWBVtAbGlO4l9UooBn X-Google-Smtp-Source: ABdhPJzqwpJR1WPK3OJMLpiZSTVUG8seIlEVU1BxFRSGy6MlEr0L81dnfdk5d29cHZLizdxNlnnXkg== X-Received: by 2002:a05:6402:17c1:b0:428:8016:d98d with SMTP id s1-20020a05640217c100b004288016d98dmr7501819edy.5.1652607673891; Sun, 15 May 2022 02:41:13 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:40d4:b0:428:1043:6204 with SMTP id z20-20020a05640240d400b0042810436204ls3108504edb.2.gmail; Sun, 15 May 2022 02:41:12 -0700 (PDT) X-Received: by 2002:a05:6402:3043:b0:427:ee2e:9e1b with SMTP id bs3-20020a056402304300b00427ee2e9e1bmr7586445edb.244.1652607672542; Sun, 15 May 2022 02:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652607672; cv=none; d=google.com; s=arc-20160816; b=xTXxuTlkALg3YVduFGV5sNPapArr13RLr4g3IPH1fQPPYuX6qKBuyUR5xS2bMQtjsZ He6Q0IeH44CvxbSt94RMa7UtPPl6s5VuFNgetAiA3dQRTjtpqPgdt0Hz6BpL7D+LM7C4 XUYgwWkOiYDfdg4fEeQ/sw7pirRG02RQdFtyxckImvJCuzQTvRlCHU0404oXrXLX2bzr rbI0Y4/KTsPnpG6LkIxLtLhu8tkLZ4hv1q9+sEwfNFNRYsXASuYIQqgG3qs2mCUDNW+a ORidz/p4Z1y6PJcnqEqlKmelNxnn16oLToP8xrYVP6kOgRUs/6DiFc37c8EqKpwfGiHJ RDQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=9zvst052Evsuqr1lLoVlD0YN86vDcWiYlYkoLGoqGwQ=; b=z+VVSJHMdKXvvuAv8gkm7fIraT7SF2mQMpUgtwQreG01noUjzniuS2AOtOkIiTRpdU edo8wXe8KISKsDHbCmiag17if5XUYtxN/RiczEkHGB2MKty8ImT6SWU5czZsGgs2xJo+ Eaj7F9q7mefOXL9N2JK2dBM8+68CzwwAzXdyiKY2xkRwY/BgpYbTdOkzBWdEf1TCvuQx tZ4jHpSO/CGjs5ZY4yB3M2QZ8IhYRJdxfz1bNR/HoI0EsBCFIFfQHPKXeMUYuTxNisDJ 8JZjBJeBqx2bWZ18QC3FSVU8A4QlhvfyKQBgeTxShsmtK6NpSn8p++QYPw3WyGcMYZ35 B+3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ZqQi9a/Z"; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id vp13-20020a17090712cd00b006d0a2bf88b0sor2611017ejb.28.2022.05.15.02.41.12 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 15 May 2022 02:41:12 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; 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 <michael@amarulasolutions.com> To: U-Boot-Denx <u-boot@lists.denx.de> Cc: Stefano Babic <sbabic@denx.de>, Fabio Estevam <festevam@denx.de>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com>, Ariel D'Alessandro <ariel.dalessandro@collabora.com> 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 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ZqQi9a/Z"; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
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();
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 <michael@amarulasolutions.com> --- board/bsh/imx8mn_smm_s2/spl.c | 2 ++ 1 file changed, 2 insertions(+)