Skip to content

Commit 280dbbb

Browse files
Utsav-Agarwaltrini
authored andcommitted
mach-sc5xx: Introduce Kconfig symbols for image addresses
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>
1 parent 0e0a198 commit 280dbbb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

arch/arm/mach-sc5xx/Kconfig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,36 @@ endchoice
117117

118118
endif
119119

120+
config SC5XX_UBOOT_SPL_OFFSET
121+
hex "SPL offset"
122+
default 0x0
123+
help
124+
The default offset where the SPL is located.
125+
126+
config SC5XX_UBOOT_OFFSET
127+
hex "U-Boot offset"
128+
default 0x40000
129+
help
130+
The default offset where u-boot is located.
131+
132+
config SC5XX_FITIMAGE_OFFSET
133+
hex "FitImage offset"
134+
default 0x1a0000
135+
help
136+
The default offset where the fitImage is located.
137+
138+
config SC5XX_ROOTFS_OFFSET
139+
hex "RootFS offset"
140+
default 0x102000
141+
help
142+
The default offset where the rootfs is located.
143+
144+
config SC5XX_LOADADDR
145+
hex "Load address"
146+
default 0x90000000
147+
help
148+
The default load address for u-boot.
149+
120150
config ADI_IMAGE
121151
string "ADI fitImage type"
122152
help

0 commit comments

Comments
 (0)