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 0ADBDC25B4E for ; Sun, 22 Jan 2023 21:16:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 737EC856D1; Sun, 22 Jan 2023 22:16:03 +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="OwnrAfmh"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="prBeESpi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 951FD84474; Sun, 22 Jan 2023 22:15:45 +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 17EA784FD1 for ; Sun, 22 Jan 2023 22:15:43 +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 compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id D0AD532005BC; Sun, 22 Jan 2023 16:15:40 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 22 Jan 2023 16:15:41 -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 :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1674422140; x=1674508540; bh=aV BCHN7sT/vtd+2n2JH92BQ8WC6W7Df1Q9zl90/+PoY=; b=OwnrAfmhfPWkFTy55s gzgfj/WAj5hrxdvaDfhAW376UOQ0/pL8CnVApEvhuXuYjb3aOLS7yHSDBtD/gWLl Hybn7Y9alKPczL0Ws7+Xa9cmEntW1EvpKemr7/grM/ZctcESQ0ZRlfCL0YV74IYd +/QuKANtlk64Czp0Ri/PkVwG0NcMJWP4vJX0USUDr5jyvmZib4NW/Ug3BA1EtcO+ PugeoMY8ZUvqJm67GNqHMSWoMXvmkmOoNbVsyyEqdFVJVdkA/m1r8BCmaRLmj0WE aRO9u4zsNedSwspnttf2NsOM1hv2CTGW7wXDlBDQcV31fmOt1zrEqK2Sl54jfXG0 BxAQ== 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:in-reply-to :message-id:mime-version:references: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=1674422140; x=1674508540; bh=aVBCHN7sT/vtd +2n2JH92BQ8WC6W7Df1Q9zl90/+PoY=; b=prBeESpi57THIpXSX+J2dRSm/4O7k W08JvVc0hZxsvhYvUIhvOK+X8cDGsC92kyqEwY4KEm82DDsRZudkqCrjMT4O00jA A0CqW7eR5GWUzuhiqlfDAeT3Z/i98M1/Jqi6alm6qXm69x1MPcrXi54E/uAb5wYi 6Cfk012urnHdy/03sIH4xL2yNa0c0wMD1zhxQDTfPplK53S16NAdqmlPHVHDasH8 +kEObm0ZIlb+Ph6S2FyOTPGZgPXdH4m6aci1LJZjAMJbMCg1KKS1xEuSRFq0wkkX nzLkxkb2rQysZC+3dmVPwnVtT+XKKQiPWqxdgTJ1BJbsBVu7psr/Noo/g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduiedgudehtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeeh gfdufeeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 22 Jan 2023 16:15:39 -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 4/4] sunxi: Enable SPL FIT loading for 32-bit SoCs Date: Sun, 22 Jan 2023 15:15:30 -0600 Message-Id: <20230122211531.23181-5-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230122211531.23181-1-samuel@sholland.org> References: <20230122211531.23181-1-samuel@sholland.org> 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 Now that 32-bit SoCs can load U-Boot proper (and possibly other firmware) from a FIT, use this method by default. SPL_FIT_IMAGE_TINY is required to stay within the 24 or 32 KiB SPL size limit on early SoCs; for consistency, enable it everywhere. Signed-off-by: Samuel Holland --- Changes in v2: - New patch for v2, split from the .dtsi changes arch/arm/Kconfig | 1 + common/spl/Kconfig | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c9a44ebc22..f150bc3903 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1135,6 +1135,7 @@ config ARCH_SUNXI imply SPL_GPIO imply SPL_LIBCOMMON_SUPPORT imply SPL_LIBGENERIC_SUPPORT + imply SPL_LOAD_FIT imply SPL_MMC if MMC imply SPL_POWER imply SPL_SERIAL diff --git a/common/spl/Kconfig b/common/spl/Kconfig index a7c55f8c4c..502b0f27b8 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -575,8 +575,7 @@ config SPL_MD5 config SPL_FIT_IMAGE_TINY bool "Remove functionality from SPL FIT loading to reduce size" depends on SPL_FIT - default y if MACH_SUN50I || MACH_SUN50I_H5 || SUN50I_GEN_H6 - default y if ARCH_IMX8M || ARCH_IMX9 + default y if ARCH_IMX8M || ARCH_IMX9 || ARCH_SUNXI help Enable this to reduce the size of the FIT image loading code in SPL, if space for the SPL binary is very tight. -- 2.37.4