[qcom-next] Upgrade SPL form v4 to v8 - #123
Open
abhiv-qc wants to merge 14 commits into
Open
Conversation
The commit 0debfe4801bb ("mach-snapdragon: Kconfig: changes / additions to
support SPL") auto selects options that may not be applicable to all
platforms. This results in warning messages during make xxx_defconfig
and/or waiting for user input for on/off or values for certain configs.
So auto select options based on the enabled configs in xxx_defconfig.
Fixes: 0debfe4801bb ("mach-snapdragon: Kconfig: changes / additions to support SPL")
Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
This reverts commit 3635906. Signed-off-by: Abhilash V <abhilash.v@oss.qualcomm.com>
Add structure and enum definitions to be able to parse the information that is passed from PBL. This will be used to identify the boot medium. Reviewed-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
Save the boot parameters passed from the boot rom and use that to identify the boot device. Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
Update the SMEM with the boot device information got from the boot rom. Reviewed-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
Add routines to enable U-Boot SPL to be able to proceed with the boot from MMC partitions. Reviewed-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
Setup the malloc base and limit for the SPL to be able to use the memory allocation APIs. Reviewed-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
Identify the boot media loader driver and load the FIT image that has the binaries to initialize the DDR, U-Boot proper etc. Reviewed-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
The U-Boot SPL loads the next stage FIT image into internal SRAM. The binaries are 'external' in this FIT image. The SPL has to load the DDR init binary, i.e. qclib and the DDR parameters i.e. qcconfig used by qclib and invoke the qclib. SPL and qclib exchange information using the interface table described in doc/board/qualcomm/interface-table.rst. Reviewed-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
index.rst: - Include 'spl-qclib.rst' rdp.rst: - Add details about the SPL & U-Boot proper build steps, converting to flashable images, source URLs for the needed binaries and scripts. - Update author e-mail id. spl-qclib.rst: - Describe the SPL - Qualcomm Library (QCLib) interface used to exchange information between U-Boot SPL and QCLib for initializing the DDR. Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
Introduce a defconfig for the Qualcomm IPQ5210 SoC based RDPs. Presently supports eMMC. Reviewed-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
This patch adds the basic board init routines that invoke the common and mach-snapdragon specific SPL frameworks to proceed with the hand over from boot rom to the next stage i.e. U-Boot proper. This also provides the linker script to generate the SPL image in the format expected by the boot rom. Reviewed-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
The boot rom expects the secondary boot loader in MBN format followed by the TME executable. Add rules to board/qualcomm/config.mk to create u-boot-spl.mbn and u-boot-spl.melf. u-boot-spl.melf is the combined multi-elf file that has u-boot-spl.mbn followed by the TME executable. Additionally, this patch adds a config option to specify the path of the TME executable to be used to create u-boot-spl.melf. Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com> Signed-off-by: Abhilash V <abhilash.v@oss.qualcomm.com>
qcom_configure_capsule_updates() had a non-static inline body in a header when CONFIG_EFI_HAVE_CAPSULE_SUPPORT is not set. Any TU including qcom-priv.h got a duplicate symbol at link time. Mark the stub 'static inline' to scope it per-TU. Signed-off-by: Abhilash V <abhilash.v@oss.qualcomm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrading uboot-spl from v4 to latest v8 series.
v8 upstream link: https://lore.kernel.org/u-boot/20260722-spl-v8-v8-0-cbfa79e85a9d@oss.qualcomm.com/