From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C403B606A322 for ; Tue, 1 Dec 2026 19:18:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=yxtCfRvc; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=AQc0Dih0 Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9B52E80C97; Tue, 1 Dec 2026 19:18:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id xwSEnNdPVwSR; Tue, 1 Dec 2026 19:18:27 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org EDF8A80E23 Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796152707; b=nUfrx8qFQALlYujdxelt46L4J7ym03fs1G5G2CPSsWtL1mwZOdiEFsGXt6MGhA8pNEwj sIeD3Yj+5zv8mMhseiqDNKJxRRT/didYVJPZzSUJvsY1CDWSKauJnN0hFaSpdXKbUriCs +XMlQvOgDVxbiBVyFHeRW3/kP+U+XHeMApS8cuSdCiFRaDaf4/CfEqG8D9iO6OZCtquwn BBwOU2X/rtBvF7dEOtSBYYv05WbJjuhc+5h3GrxCT/EVH/pLaKTwvXvNXO4R5PAC7DHKS qQiuKr2LNl8gpEtOFH49M8OexFmXcPp2eTj6mnwHoAPBiX0GhBEXNal1YvE+hVVuT7Q== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796152707; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:Received:Sender:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-BeenThere:X-Mailman-Version:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Errors-To; bh=y8L7gcHxBVlA668cmGtUQ1SrqzQtSkzgmvbNddxvyrU=; b=UJIAEtAq64Kxjb4E7RL7El2BMnspcCByooAKrj5brT0jNGeTHrg+JDcrhAtCLhqmaeIo qvFv+SxhQwtDba3y/Az0Lc3kL+L3gLRQN25EhWxvWxy+lmQmrGiXbp3kTc8ydB3LMcD1T WsSUZunPZX7hVpqoUSu8upHjCpFhILlG+Epo45p1H2mIcMDD/4C4oqniQUcpQDf7XhqZm Es+yI+un+o5cSiFYQRK7kVhbWaqrVky0L23dAcbg0XcUxkvCdUoV7pSI/yRVUqESKRydi c6x9qAKajBhQtpC6MfPGSBsD0NAHfzAuBOkdp0oMYJlOHiRR6CN8EnOAcrfyrJ7N6NA== ARC-Authentication-Results: i=1; smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796152707; bh=y8L7gcHxBVlA668cmGtUQ1SrqzQtSkzgmvbNddxvyrU=; h=From:Subject:Date:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=yxtCfRvcqKc8ob1iOXoAcFPmljnqElSaDOozloqX/rwPUFcu9YCEEYHy/vEkux5Uj 0qgO+mDwnmq4OjmIaTw3CUGoIAVYd1tnMZUYw3b2YtinTujRyp/QfI1CcBf/u2eAce 0xL9S9DLwLtlkM4iXhSGflILm1rj77rFu3ddkAn+WEF8Yn8K0BBxriajhf3rafIyTf O3BVFFoCUjfB8Va2lyT6Ik275gR6YPkrLEuANbrpBgLYgX3bMOz+lLqc5QFIDcLIkD PmxdHDeVoQtBF6572M3Hj3sTdmgGuj0kK9ivAOkRJRhITfU6tKD3Ulu61+JvomIvSS V+sjps+Llf4xA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id EDF8A80E23; Tue, 1 Dec 2026 19:18:26 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists1.osuosl.org (Postfix) with ESMTP id A5FF2472 for ; Tue, 1 Dec 2026 19:18:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 8C68D4067A for ; Tue, 1 Dec 2026 19:18:25 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id yOvU8j84CG_o for ; Tue, 1 Dec 2026 19:18:25 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 90BBC40672 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::432" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::432; helo=mail-wr1-x432.google.com; envelope-from=massimo.pegorer+oss@gmail.com; receiver= Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=AQc0Dih0 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by smtp4.osuosl.org (Postfix) with ESMTPS id 90BBC40672 for ; Tue, 1 Dec 2026 19:18:24 +0000 (UTC) Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-4a32576da88so7072142f8f.3 for ; Tue, 01 Dec 2026 11:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796152702; x=1796757502; darn=lists.u-boot-project.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:sender:from:to:cc:subject:date :message-id:reply-to:content-type; bh=y8L7gcHxBVlA668cmGtUQ1SrqzQtSkzgmvbNddxvyrU=; b=AQc0Dih0MZw9oU/MKAqsOHCzDUzwleCeEdRZ5AyNWbphkMfIFqflpy5pRCMt7i//YE q7zRn15d5d5+o8/AIwE/OnAdcUy1Xo8l+ZDuBkaJBS4ylDkpJf+4C7iVVr+nyxz39ufT idDT1dvfN5c5j8H0WE7nc37GD00U6V0PiaTNA9wNDgqrIu6wY9m4VwWA9SPAL+AlJf3F wj9Dep2UpMccqf4ANBGwQUTBCgVNvsHxh2/MEU55H37omhGI/if5J4fBvxtVFEVnjE/s vfoQck1LVjdeVUH2QhmlbN7EUMnZ+qDn1ut39DKmfnjXnaCZDAFf50zkqbvHw3dIyhBT Tu0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796152702; x=1796757502; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:sender:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=y8L7gcHxBVlA668cmGtUQ1SrqzQtSkzgmvbNddxvyrU=; b=hQMqTue//rlArEgxnGyctbn/U6H26D7B81ybXx6FZ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Q0CTibKNYn+0 X-Received: by 2002:a05:600c:828e:b0:4a1:cd83:b23e with SMTP id 5b1f17b1804b1-4bb88786ddemr693680225e9.0.1796152702408; Tue, 01 Dec 2026 11:18:22 -0800 (PST) Received: from [127.0.1.1] ([151.71.134.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb884ab091sm1400773815e9.11.2026.12.01.11.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 11:18:21 -0800 (PST) Sender: Massimo Pegorer From: Massimo Pegorer Subject: [PATCH 0/7] mach-rockchip: Add xPL phase context to ROCKCHIP_BROM_HELPER Date: Tue, 01 Dec 2026 20:18:17 +0100 Message-Id: <20261201-brom-v1-0-06f157a269fd@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAHkdD2sC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzNDQ2MD3aSi/Fxdk0SD5JSk5FQDEzNjJaDSgqLUtMwKsDHRsRB+cWlSVmp yCUivUm0tALk7R7RoAAAA X-Change-ID: 20261130-brom-4a0cdbce0463 To: u-boot@lists.u-boot-project.org, Quentin Schulz , Jonas Karlman Cc: Tom Rini , Ilias Apalodimas , Johan Jonker , Massimo Pegorer X-Mailer: b4 0.15.2 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 This series stems from the observation that the ROCKCHIP_BROM_HELPER config option lacks xPL phase context. There are 58 Rockchip board configurations that have all three options: CONFIG_TPL CONFIG_SPL and CONFIG_ROCKCHIP_BROM_HELPER. In this case, the ROCKCHIP_BROM_HELPER code is built into both TPL and SPL too, even if it is really needed in only one of them. The series splits ROCKCHIP_BROM_HELPER into TPL_ROCKCHIP_BROM_HELPER and SPL_ROCKCHIP_BROM_HELPER, allowing the back to BootROM code to be included just where needed. The first five patches add some guards and forced selections to avoid inconsistent configurations, and drop the SPL_BOOTROM_SUPPORT option from defconfigs when unneeded. They do not introduce any functional or binary change. The sixth patch drops SPL_BOOTROM_SUPPORT dead code for the evb-px5 and all PX30-based boards' SPL. The seventh patch drops ROCKCHIP_BROM_HELPER dead code from SPL for some configurations related to the following SoCs: PX30 (7/7) RK322X (1/1) RK3288 (7/14) RK3328(11/12) RK3368 (1/3) and RK3399 (29/30). The SPL size decreases by up to 522 bytes (PX30 SPL). Signed-off-by: Massimo Pegorer --- Massimo Pegorer (7): mach-rockchip: px30: TPL_ROCKCHIP_COMMON_BOARD is not an option mach-rockchip: rk3036: SPL_ROCKCHIP_COMMON_BOARD is not an option mach-rockchip: px30: force TPL_ROCKCHIP_BACK_TO_BROM option selection mach-rockchip: rk3036: force SPL_ROCKCHIP_BACK_TO_BROM option selection mach-rockchip: Kconfig: Select xPL_BOOTROM_SUPPORT only if needed configs: rockchip: Drop unneeded SPL_BOOTROM_SUPPORT option mach-rockchip: Add xPL phase context to ROCKCHIP_BROM_HELPER option arch/arm/mach-rockchip/Kconfig | 20 ++++++++++++-------- arch/arm/mach-rockchip/Makefile | 4 ++-- configs/evb-px30_defconfig | 1 - configs/evb-px5_defconfig | 1 - configs/firefly-px30_defconfig | 1 - configs/odroid-go2_defconfig | 1 - configs/px30-core-ctouch2-of10-px30_defconfig | 1 - configs/px30-core-ctouch2-px30_defconfig | 1 - configs/px30-core-edimm2.2-px30_defconfig | 1 - configs/ringneck-px30_defconfig | 1 - 10 files changed, 14 insertions(+), 18 deletions(-) --- base-commit: 42680af8d15bb49201b298ab5f62058051c13083 change-id: 20261130-brom-4a0cdbce0463 Best regards, -- Massimo Pegorer