{"id":2222313,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2222313/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260411-qcom_spl-v2-6-9609557cf562@seznam.cz/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260411-qcom_spl-v2-6-9609557cf562@seznam.cz>","list_archive_url":null,"date":"2026-04-11T00:00:11","name":"[v2,06/10] mach-snapdragon: Kconfig: changes / additions to support SPL","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"0927e29f102bb7c2d3902599d4ad70b9d0560f67","submitter":{"id":77645,"url":"http://patchwork.ozlabs.org/api/1.2/people/77645/?format=json","name":"Michael Srba","email":"michael.srba@seznam.cz"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260411-qcom_spl-v2-6-9609557cf562@seznam.cz/mbox/","series":[{"id":499535,"url":"http://patchwork.ozlabs.org/api/1.2/series/499535/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=499535","date":"2026-04-11T00:00:12","name":"Add SPL support for Qualcomm platforms, starting with sdm845","version":2,"mbox":"http://patchwork.ozlabs.org/series/499535/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2222313/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2222313/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=seznam.cz header.i=@seznam.cz header.a=rsa-sha256\n header.s=szn1 header.b=qxiTZ2EH;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=seznam.cz","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n secure) header.d=seznam.cz header.i=@seznam.cz header.b=\"qxiTZ2EH\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=seznam.cz","phobos.denx.de;\n spf=pass smtp.mailfrom=michael.srba@seznam.cz"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4ft4ck576Bz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 17:12:38 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 8E442842E6;\n\tSat, 11 Apr 2026 09:09:12 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 6ABD984118; Sat, 11 Apr 2026 02:04:26 +0200 (CEST)","from mxd-1-a04.seznam.cz (mxd-1-a04.seznam.cz\n [IPv6:2a02:598:128:8a00::1000:a04])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 0B2E18419E\n for <u-boot@lists.denx.de>; Sat, 11 Apr 2026 02:04:24 +0200 (CEST)","from email.seznam.cz by smtpc-mxd-7644845457-4tx79\n (smtpc-mxd-7644845457-4tx79 [2a02:598:128:8a00::1000:a04])\n id 59a6e5e302a8b18a580f29bd; Sat, 11 Apr 2026 02:03:57 +0200 (CEST)","from [127.0.0.1] (ip-111-27.static.ccinternet.cz [147.161.27.111])\n by smtpd-relay-6597cc8696-xddnz (szn-email-smtpd/2.0.72) with ESMTPA\n id 531d4ff7-07e6-4f4a-81c1-9dcb0991e9f5;\n Sat, 11 Apr 2026 02:03:02 +0200"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=seznam.cz; s=szn1;\n t=1775865837; bh=81PdEylbDZE8ULbzdC9pqkjfVn7b/pfb1vvoxlCQIeo=;\n h=From:Date:Subject:MIME-Version:Content-Type:\n Content-Transfer-Encoding:Message-Id:To:Cc;\n b=qxiTZ2EHYkpSXL0zKYEHjEpva1LTMMsHO0UuC1tZE145VZQOfVJj28VgP/NUP2/zu\n 8WCKEzA+P0hDnIAN+1YiDJcGIGoNpucy1o8LixP0dF67Avk33hz1XmSCCLfHEo4Uts\n uj210fYViimo4pYymdw78sDBZO+1PAN4eW6wWZUVTroSnFJW0XrUqjgzI89YMkrkEU\n CmRcp1VJTbzYu/+hvNfDGJZO8JREXqomJ0ihiLRbkZQXw3M0bIFvU8+eADdJ0YcLOa\n V2y60m7k8Mqii0x9HDGXSB08zwSv9xH4Lc/MRCV1c1awooTK8xsg7fmZmt1yM1dT0/\n G5f7NjqA9+1vA==","From":"michael.srba@seznam.cz","Date":"Sat, 11 Apr 2026 02:00:11 +0200","Subject":"[PATCH v2 06/10] mach-snapdragon: Kconfig: changes / additions to\n support SPL","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","Message-Id":"<20260411-qcom_spl-v2-6-9609557cf562@seznam.cz>","References":"<20260411-qcom_spl-v2-0-9609557cf562@seznam.cz>","In-Reply-To":"<20260411-qcom_spl-v2-0-9609557cf562@seznam.cz>","To":"u-boot@lists.denx.de, Sumit Garg <sumit.garg@kernel.org>,\n u-boot-qcom@groups.io","Cc":"Tom Rini <trini@konsulko.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Simon Glass <sjg@chromium.org>, Sughosh Ganu <sughosh.ganu@arm.com>,\n Anshul Dalal <anshuld@ti.com>, Peng Fan <peng.fan@nxp.com>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Quentin Schulz <quentin.schulz@cherry.de>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>, Andrew Davis <afd@ti.com>,\n Hrushikesh Salunke <h-salunke@ti.com>,\n Dario Binacchi <dario.binacchi@amarulasolutions.com>, Ye Li <ye.li@nxp.com>,\n Andre Przywara <andre.przywara@arm.com>,\n Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>,\n Leo Yu-Chi Liang <ycliang@andestech.com>,\n Andrew Goodbody <andrew.goodbody@linaro.org>, Dhruva Gole <d-gole@ti.com>,\n Kaustabh Chakraborty <kauschluss@disroot.org>,\n Jerome Forissier <jerome.forissier@arm.com>,\n Heiko Schocher <hs@nabladev.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Lukasz Majewski <lukma@denx.de>,\n Mateusz Kulikowski <mateusz.kulikowski@gmail.com>,\n Dinesh Maniyam <dinesh.maniyam@altera.com>,\n Neil Armstrong <neil.armstrong@linaro.org>,\n Patrice Chotard <patrice.chotard@foss.st.com>,\n Patrick Delaunay <patrick.delaunay@foss.st.com>,\n Michal Simek <michal.simek@amd.com>, Yao Zi <me@ziyao.cc>,\n Peter Korsgaard <peter@korsgaard.com>,\n Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>,\n Casey Connolly <casey.connolly@linaro.org>,\n Tingting Meng <tingting.meng@altera.com>,\n Tien Fong Chee <tien.fong.chee@altera.com>, Alice Guo <alice.guo@nxp.com>,\n George Chan <gchan9527@gmail.com>,\n Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>,\n Alexey Charkov <alchark@gmail.com>, Ronald Wahl <ronald.wahl@legrand.com>,\n Michael Srba <Michael.Srba@seznam.cz>","X-Mailer":"b4 0.15.1","X-Mailman-Approved-At":"Sat, 11 Apr 2026 09:08:55 +0200","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"From: Michael Srba <Michael.Srba@seznam.cz>\n\nAn SoC to target has to be selected, e.g. SPL_TARGET_SDM845.\nThis will select reasonable defaults and enable per-SoC linker\nscript (if required).\n\nSigned-off-by: Michael Srba <Michael.Srba@seznam.cz>\n---\n arch/arm/Kconfig                 | 31 +++++++++++++++++++++++++++-\n arch/arm/mach-snapdragon/Kconfig | 44 ++++++++++++++++++++++++++++++++++------\n 2 files changed, 68 insertions(+), 7 deletions(-)","diff":"diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig\nindex 03416c55265..8490e336516 100644\n--- a/arch/arm/Kconfig\n+++ b/arch/arm/Kconfig\n@@ -1138,9 +1138,38 @@ config ARCH_SNAPDRAGON\n \tselect SAVE_PREV_BL_FDT_ADDR if !ENABLE_ARM_SOC_BOOT0_HOOK\n \tselect LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK\n \tselect SYSRESET\n-\tselect SYSRESET_PSCI\n+\tselect SYSRESET_PSCI if !SPL\n \tselect ANDROID_BOOT_IMAGE_IGNORE_BLOB_ADDR\n \tselect MMU_PGPROT\n+\tselect SUPPORT_SPL\n+\tselect ARMV8_SPL_EXCEPTION_VECTORS if SPL\n+\tselect ENABLE_ARM_SOC_BOOT0_HOOK if SPL\n+\tselect SPL_DM if SPL\n+\tselect SPL_DM_GPIO if SPL\n+\tselect SPL_DM_PMIC if SPL\n+\tselect SPL_DM_USB_GADGET if SPL\n+\tselect SPL_ENV_SUPPORT if SPL\n+\tselect SPL_GPIO if SPL\n+\tselect SPL_HAS_BSS_LINKER_SECTION if SPL\n+\tselect SPL_LIBCOMMON_SUPPORT if SPL\n+\tselect SPL_LIBDISK_SUPPORT if SPL\n+\tselect SPL_LIBGENERIC_SUPPORT if SPL\n+\tselect SPL_MMC if SPL\n+\tselect SPL_OF_REAL if SPL\n+\tselect SPL_OF_CONTROL if SPL\n+\tselect SPL_PINCONF if SPL\n+\tselect SPL_PINCTRL if SPL\n+\tselect SPL_PINCTRL_FULL if SPL\n+\tselect SPL_PINCTRL_GENERIC if SPL\n+\tselect SPL_PINCONF_RECURSIVE if SPL\n+\tselect SPL_PINMUX if SPL\n+\tselect SPL_SPRINTF if SPL\n+\tselect SPL_STRTO if SPL\n+\tselect SPL_USB_GADGET if SPL\n+\timply DM_EVENT if USB_DWC3_GENERIC || SPL_USB_DWC3_GENERIC\n+\timply SPL_EVENT if SPL_USB_DWC3_GENERIC\n+\timply OF_LIVE if USB_DWC3_GENERIC\n+\timply SPL_OF_LIVE if SPL_USB_DWC3_GENERIC\n \timply OF_UPSTREAM\n \timply CMD_DM\n \timply DM_USB_GADGET\ndiff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig\nindex 976c0e35fce..74d687ceee2 100644\n--- a/arch/arm/mach-snapdragon/Kconfig\n+++ b/arch/arm/mach-snapdragon/Kconfig\n@@ -11,18 +11,12 @@ config SYS_VENDOR\n \t  Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD>\n \t  will be used as the custom board directory.\n \n-config SYS_MALLOC_LEN\n-\tdefault 0x10000000\n-\n config SYS_MALLOC_F_LEN\n \tdefault 0x2000\n \n config SPL_SYS_MALLOC_F\n \tdefault y\n \n-config SPL_SYS_MALLOC_F_LEN\n-\tdefault 0x2000\n-\n config SYS_MALLOC_LEN\n \tdefault 0x800000\n \n@@ -45,4 +39,42 @@ config SYS_CONFIG_NAME\n \t  Based on this option include/configs/<CONFIG_SYS_CONFIG_NAME>.h header\n \t  will be used for board configuration.\n \n+config SPL_SHARES_INIT_SP_ADDR\n+\tdefault n\n+\n+config SPL_HAVE_INIT_STACK\n+\tdefault y\n+\n+# SPL targets\n+\n+config SPL_TARGET_SDM845\n+\tbool \"Set reasonable default values for running SPL in SRAM on sdm845 devices\"\n+\n+# config options selected based on target\n+\n+config SPL_REMAKE_ELF_LDSCRIPT\n+\tdefault \"arch/arm/mach-snapdragon/u-boot-spl-elf-sdm845.lds\" if SPL_TARGET_SDM845\n+\n+# Modern Qualcomm platforms have two sets of SRAM memory easily available to us,\n+# BOOT_IMEM and OCIMEM. See doc/board/qualcomm/spl.rst for more info.\n+\n+config SPL_BSS_START_ADDR\n+\tdefault 0x14680000 if SPL_TARGET_SDM845 # start of OCIMEM\n+\n+config SPL_BSS_MAX_SIZE\n+\tdefault 0x2000 if SPL_TARGET_SDM845 # leaves 0x1e000 for the stack in worst case\n+\n+# this starts at the end of .bss\n+config SPL_SYS_MALLOC_F_LEN\n+\tdefault 0x20000 if SPL_TARGET_SDM845 # arbitrarily half of OCIMEM size\n+\n+config SPL_STACK\n+\tdefault 0x146bffff if SPL_TARGET_SDM845 # end of OCIMEM\n+\n+config SPL_TEXT_BASE\n+\tdefault 0x1483f000 if SPL_TARGET_SDM845 # start of largest continuous block of BOOT_IMEM in BROM whitelist\n+\n+config SPL_MAX_SIZE\n+\tdefault 0xc1000 if SPL_TARGET_SDM845 # size of largest continuous block of BOOT_IMEM in BROM whitelist\n+\n endif\n","prefixes":["v2","06/10"]}