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 50A06C3601E for ; Sun, 13 Apr 2025 20:00:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2855A82AAF; Sun, 13 Apr 2025 22:00:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=kwiboo.se header.i=@kwiboo.se header.b="rDzAzvBi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9558882ACF; Sun, 13 Apr 2025 22:00:16 +0200 (CEST) Received: from smtp.forwardemail.net (smtp.forwardemail.net [121.127.44.73]) (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 3B785828D0 for ; Sun, 13 Apr 2025 22:00:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=SRS0=b5c5=XA=kwiboo.se=jonas@fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1744574412; bh=Yr+2Bzh5ijMRCJ9tO3lJnyUy4DMckgO1buPUc/MZk9k=; b=rDzAzvBiNrwbj5GgJxgmE+ysM6TLHYQZ6v2b0USffvw8GL8EuwyoqSuCV84iJGc67VTnjAa34 VuQvrNBUb3njI4KFO1yDtEQ3f52XCWcZDACAj6YzYGLoyG9AVxV+h5f2J4MuWdfjkwtcV1xxGjj XkRS8Jc83How4xp7CAh9BdwGpzm+BSEIqmu1zw1IoXLZEzlZIma1/S8RaYm2/yBhv7N7tQnMlbe EZPSUt6uZEzfizJeRmH4bs3F/4UZ3UHDyXy+RhS8J4WCln9HrgWw5toXzmZ9A0mrkExRZAp15NT giX6vfty90b9d7TZuYolaYG8vXQy8OxaD3/gakL3eaiA== X-Forward-Email-ID: 67fc17cb6900761fb15162ef X-Forward-Email-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 121.127.44.73 X-Forward-Email-Version: 1.0.2 X-Forward-Email-Website: https://forwardemail.net X-Complaints-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Report-Abuse-To: abuse@forwardemail.net From: Jonas Karlman To: Kever Yang , Simon Glass , Philipp Tomsich , Tom Rini Cc: Quentin Schulz , FUKAUMI Naoki , u-boot@lists.denx.de, Jonas Karlman Subject: [PATCH v6 5/7] rockchip: Add SPL_PAD_TO Kconfig default value Date: Sun, 13 Apr 2025 19:59:37 +0000 Message-ID: <20250413195949.432730-6-jonas@kwiboo.se> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250413195949.432730-1-jonas@kwiboo.se> References: <20250413195949.432730-1-jonas@kwiboo.se> 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.8 at phobos.denx.de X-Virus-Status: Clean Almost all Rockchip boards use the same Kconfig value for SPL_PAD_TO, 0x7f8000. u-boot-rockchip.bin is typically written to offset 64S (32KiB) of MMC media. u-boot.itb (or u-boot.img) is typically expected at offset 16384S (8MiB) of MMC media (SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x4000). SPL_PAD_TO is used as the offset for u-boot.itb (or u-boot.img) in the generated simple-bin binman image, and can be calculated as: SPL_PAD_TO = (16384S - 64S) * 512 = 0x7f8000 Add this value as a default value for ARCH_ROCKCHIP. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Reviewed-by: Quentin Schulz --- Changes in v6: - No change Changes in v5: - Update commit message - Collect r-b tags Changes in v4: - New patch This patch does not drop SPL_PAD_TO from existing defconfigs that would be affected by this change, something that can wait until next "configs: Resync with savedefconfig". Following boards does not set a SPL_PAD_TO due to not using SPL: - elgin-rv1108_defconfig - evb-rk3128_defconfig - evb-rv1108_defconfig - geekbox_defconfig - sheep-rk3368_defconfig --- common/spl/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index c08045f9c8d7..3f8d24e8d0f5 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -96,6 +96,7 @@ config SPL_MAX_SIZE config SPL_PAD_TO hex "Offset to which the SPL should be padded before appending the SPL payload" + default 0x7f8000 if ARCH_ROCKCHIP default 0x31000 if ARCH_MX6 && MX6_OCRAM_256KB default 0x11000 if ARCH_MX7 || (ARCH_MX6 && !MX6_OCRAM_256KB) default 0x10000 if ARCH_KEYSTONE -- 2.49.0