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 02622C38142 for ; Sun, 22 Jan 2023 21:15:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3B99C856AE; Sun, 22 Jan 2023 22:15:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="POTVOQdU"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="pbYdwnGH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 43606855B8; Sun, 22 Jan 2023 22:15:38 +0100 (CET) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9007784474 for ; Sun, 22 Jan 2023 22:15:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B73553200583; Sun, 22 Jan 2023 16:15:30 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 22 Jan 2023 16:15:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1674422130; x=1674508530; bh=ZsZ4J1jOaTf6nkAJlKRhM4Kzc lOCp9FYMkH7szcZKpI=; b=POTVOQdU3Ade6xF1qI7esvM02ZXG1A+XHD5FRKtTz bxYjEDjSKzOSsFRscNqF6A9zYotZLGXdvL4kDe9mzHzkHrkbvZNcs2vSwuLw7Wag XCaH+peg4tkcij3ShoUaD4f+eCt3TNksHKjh2M004UOWfcsKMsL4BeUUFc8r5Efx 5ua6Nk0hQ/jictiAMLyNDe8IiYaz4wPtOKbT7OMy5dSxcDj1a3Y0cbSZ2/N2Ro/C GC4+mgWfIDmxjQZJhO6h8JQdTK7KfgIhmX2xZ7u4RBXYi3ffnbfblB61/CUsl88m kM7lmm/LN/KOWBZH/+m+pCwVOcKYaqhAh02qxpyUZEAyw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1674422130; x=1674508530; bh=ZsZ4J1jOaTf6nkAJlKRhM4KzclOCp9FYMkH 7szcZKpI=; b=pbYdwnGHK4GkPuX7wqBgaUng9Uw/okQF139G7VAlvkkgvk5Ym+T xEdwJXKhriaje5MiZmLrObllv+jSxiuEvJEzoCBzZkuajn3aCqp7W5PW9KJ0sSkf wgxhNSPmpLCMOZel0VXCUHegiOVKWwmmEYm+mbTb+HZ2SJXXR+cr4eAQIwXJVlNz WQjKCLljWVj7hDIxn96sChn4Sx3yPn4MhK4Mpg2JVe58cG0yG3FeXFSfXmvhbOzt ms6/L9BEibw5jgkqdrREQ584W/xSO+H9N5sHDTmTFP0ixhtSpsPARNar5ZSditUJ G2EXVxz4t1+oEkJwHdJtEMrgAplpdZgXQLA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduiedgudeglecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeekheffteehtdetfffgfeetteejvdefleeuvedufffguedtjedvheel vddvfffhveenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 22 Jan 2023 16:15:29 -0500 (EST) From: Samuel Holland To: Andre Przywara , Jagan Teki Cc: Jesse Taube , Icenowy Zheng , u-boot@lists.denx.de, Samuel Holland Subject: [PATCH v2 0/4] sunxi: SPL FIT support for 32-bit sunxi SoCs Date: Sun, 22 Jan 2023 15:15:26 -0600 Message-Id: <20230122211531.23181-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 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.6 at phobos.denx.de X-Virus-Status: Clean This series makes the necessary changes so 32-bit sunxi SoCs can load additional device trees or firmware from SPL along with U-Boot proper. Crust (SCP firmware) has support for A33 and H3, and H3 also needs to load an eGon blob to support CPU 0 hotplug (a silicon bug workaround). FIT unlocks more features (signatures, multiple DTBs, etc.), so enable it by default. A10 (sun4i) only has 24 KiB of SRAM A1, so it needs SPL_FIT_IMAGE_TINY. For consistency, enable that option everywhere. This series depends on the bugfix series I sent yesterday[1]. After this series is applied, we can increase SPL_MAX_SIZE for H6 and newer SoCs, both 32-bit (e.g. A50, T113) and 64-bit. I did not do that yet because there is some discussion to be had about the correct value: it must be adjusted to guarantee return-to-FEL functionality, and the exact adjustment depends on the sunxi-fel tool implementation. [1]: https://lore.kernel.org/u-boot/20230121232518.49723-1-samuel@sholland.org/ Changes in v2: - Disable padding from SPL_PAD_TO - Rely on binman min-size instead of using explicit offsets - Use Kconfig for firmware addresses instead of an #ifdef staircase Samuel Holland (4): sunxi: spl: Disable padding from SPL_PAD_TO sunxi: binman: Move BL31 and SCP firmware addresses to Kconfig sunxi: binman: Support FIT generation for 32-bit SoCs sunxi: Enable SPL FIT loading for 32-bit SoCs arch/arm/Kconfig | 1 + arch/arm/dts/sunxi-u-boot.dtsi | 39 ++++++++++++++++++---------------- arch/arm/mach-sunxi/Kconfig | 17 +++++++++++++++ common/spl/Kconfig | 6 ++---- 4 files changed, 41 insertions(+), 22 deletions(-) -- 2.37.4