]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mach-sc5xx: Introduce Kconfig symbols for image addresses
authorUtsav Agarwal <utsav.agarwal@analog.com>
Thu, 11 Dec 2025 08:03:52 +0000 (03:03 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jan 2026 20:20:58 +0000 (14:20 -0600)
Add Kconfig symbols to parameterize the SPI flash layout used in a
default-ish configuration. This adds more flexibility to the default ADI
environment, enabling customers with boards based on but not identical
to an ezkit to reuse more of the infrastructure. Furthermore it allows
for yocto (the expected default) or binman (to be introduced in this
series) to configure or use the flash layout based on a single
definition of all of the parameters when creating an image.

Signed-off-by: Greg Malysa <malysagreg@gmail.com>
Signed-off-by: Utsav Agarwal <utsav.agarwal@analog.com>
arch/arm/mach-sc5xx/Kconfig

index 30444f04fc474650e9313d251be33b65d00f563d..70c7e5e0631b2054141bc1409eb3364af8769d24 100644 (file)
@@ -117,6 +117,36 @@ endchoice
 
 endif
 
+config SC5XX_UBOOT_SPL_OFFSET
+       hex "SPL offset"
+       default 0x0
+       help
+         The default offset where the SPL is located.
+
+config SC5XX_UBOOT_OFFSET
+       hex "U-Boot offset"
+       default 0x40000
+       help
+         The default offset where u-boot is located.
+
+config SC5XX_FITIMAGE_OFFSET
+       hex "FitImage offset"
+       default 0x1a0000
+       help
+         The default offset where the fitImage is located.
+
+config SC5XX_ROOTFS_OFFSET
+       hex "RootFS offset"
+       default 0x102000
+       help
+         The default offset where the rootfs is located.
+
+config SC5XX_LOADADDR
+       hex "Load address"
+       default 0x90000000
+       help
+         The default load address for u-boot.
+
 config ADI_IMAGE
        string "ADI fitImage type"
        help