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 B3DF7C433EF for ; Sun, 3 Apr 2022 00:14:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 240D883A97; Sun, 3 Apr 2022 02:14:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.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=konsulko.com header.i=@konsulko.com header.b="t3/Ul06d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3703183965; Sun, 3 Apr 2022 02:14:16 +0200 (CEST) Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (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 1E4FE839BB for ; Sun, 3 Apr 2022 02:14:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x730.google.com with SMTP id v15so4970625qkg.8 for ; Sat, 02 Apr 2022 17:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+DfjJ36bUebKKKoFp3iPze+UhYdlqVO7Q6pmlZg+yw8=; b=t3/Ul06dFGvFrAsDRNgOIIBgCxLS2imSSrnEI8rztKa4D3XZ2A4Qn/ane4pWfsfAY0 NdNRyvy8cfbA6oW9Jwh16MkatlZPQXyfxNMVHOLHYZcV3CaJLWRHyq2e+8yHh7NFmeKQ 39e89rgmYJaQabJyeymGAYiylpRAZ+FqOC9p8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+DfjJ36bUebKKKoFp3iPze+UhYdlqVO7Q6pmlZg+yw8=; b=3F44uTd36fQGI5Py/UpNluQEtiktmlUTdyvml5Ztc9UKGLbnNUKRVfiGp2KhZP809x TjkDUeFvpTRJDHSvk51QgWPfw1B0Tt44jT1Bq2eSHlsSpi3yKMDTEvmPddpx29PiSmQP Z4pK/toNR66HrY6ABW6KSDwlrFUOjVH4tcLX7G6nB48/8yLl0fgfKVvpeQoF4HMKXPJO mxHolWUKUrsK0fvmqoF/SigPsywyaVBZvagmaqycF3PJy+Kmo2ICoKtro81BxFAkoSQN cnDW1AdDlxT2/dvNTEi1SyQqDXh5G85MxJyXodx6wcv0JG1iRf6aJzrnwRkhiUy0Ah0e 1E8A== X-Gm-Message-State: AOAM532xxMkhJI1A4/mrhH+sKB3YP29eXlcc8DuXbAk3lJpT/C04O+mm Xq/WJuCnW9m1cvAFbgKxQ1I/HQ== X-Google-Smtp-Source: ABdhPJxQSqUiXuW3a3dDjaQI8s7M2xI2/7nMjapJBA2fgyPeMIy4n8FEJyhao8WUuI9II0wC+SlvDA== X-Received: by 2002:a05:620a:44c3:b0:67d:d035:ecaf with SMTP id y3-20020a05620a44c300b0067dd035ecafmr10247937qkp.709.1648944845431; Sat, 02 Apr 2022 17:14:05 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id 145-20020a370897000000b0067b30c65415sm3661652qki.75.2022.04.02.17.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Apr 2022 17:14:04 -0700 (PDT) Date: Sat, 2 Apr 2022 20:14:02 -0400 From: Tom Rini To: Andre Przywara Cc: Liviu Dudau , Linus Walleij , Peter Hoyes , Simon Glass , u-boot@lists.denx.de, Sean Anderson Subject: Re: [PATCH 04/11] vexpress64: fvp: enable OF_CONTROL Message-ID: <20220403001402.GF14476@bill-the-cat> References: <20220304163018.3167841-1-andre.przywara@arm.com> <20220304163018.3167841-5-andre.przywara@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="V3GHqwm1rrtpHsCJ" Content-Disposition: inline In-Reply-To: <20220304163018.3167841-5-andre.przywara@arm.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --V3GHqwm1rrtpHsCJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 04, 2022 at 04:30:11PM +0000, Andre Przywara wrote: > The FVP base model is relying on a DT for Linux operation, so there is > no reason we would need to rely on hardcoded information for U-Boot. > Letting U-Boot use a DT will open up the usage of actual peripherals, > beyond the support for semihosting only. >=20 > Enable OF_CONTROL in the Kconfig, and use the latest dts files from > Linux. Depending on whether we use the boot-wrapper or TF-A, there is > already a DTB provided or not, respectively. >=20 > To cover the boot-wrapper, we add an arm64 Linux kernel header, which > allows the boot-wrapper to treat U-Boot like a Linux kernel. U-Boot will > find the pointer to the DTB in x0, and will use it. >=20 > Even though TF-A carries a DT, at the moment this is not made available > to non-secure world, so to not break users, we use the U-Boot provided > DTB copy in that case. For some reason TF-A puts some DT like structure > at the address x0 is pointing at, but that is very small and doesn't > carry any hardware information. Make the code to ignore those small DTBs. >=20 > Signed-off-by: Andre Przywara > --- > arch/arm/Kconfig | 2 ++ > arch/arm/dts/Makefile | 1 + > board/armltd/vexpress64/Kconfig | 8 ++++++-- > board/armltd/vexpress64/vexpress64.c | 8 +++++++- > configs/vexpress_aemv8a_semi_defconfig | 2 +- > 5 files changed, 17 insertions(+), 4 deletions(-) >=20 > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 34dbd73cce..afb42e62d8 100644 Applied to u-boot/next, thanks! --=20 Tom --V3GHqwm1rrtpHsCJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJI5soACgkQFHw5/5Y0 tyywtAv+PiCWFLVwU35phLvE4xGPvDo6HQWyl7I4q9yUBPCNCkC3aoEMcQTLfmmz 0TZUuSSfp6q43zHGLxAsxzi4UBIj9iWEg1sVKMT/lS9+9M1s+MubsrNpFS1L6LLD tsY59T8SU7O5q6cPRm306KMKPFapa3Az1Iqy91Rqx27p4Ie1PytAnGzQ8tLrRgJm 9w7KqIrF1EFT7lMIDE2zID4OPoAvNrZXZxGz06HAysOBICpReurJdPkADA1srZrn 5+RVvzh2hF/kkftVs0S8R2tx76IhKXfK/Q/TekR6afQ1N0mlhtfZ7anERZK4Xz3F Z72DuPfS1aOrvkm922J9Y4gz0uosAp/0E4W7f+llE7FxRr09tQQTcE9yDq8G83XP jNA/VcATl/csMHFhOd3o8Q4eiVeC0ElrKeqg0nwtFncWGX+jR+grOQNkOdWhfq18 gXcc2/gtIVnhx+T67QPaQEr51ppSpW0kIIVrH8iXUIv8a90gMwxy7MWoFgKgr+pD 9J9KAOA5 =5xnA -----END PGP SIGNATURE----- --V3GHqwm1rrtpHsCJ--