sw_apps:zynqmp_fsbl: Flash load address for SD
For file system based devices, flash offset address (location of image) should be independednt of multiboot and should always be 0. Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
This commit is contained in:
parent
23469c67ec
commit
4f84389e6c
1 changed files with 11 additions and 3 deletions
|
@ -611,10 +611,18 @@ static u32 XFsbl_ValidateHeader(XFsblPs * FsblInstancePtr)
|
|||
XFsbl_Printf(DEBUG_INFO,"Multiboot Reg : 0x%0lx \n\r", MultiBootOffset);
|
||||
|
||||
/**
|
||||
* Calculate the Flash Offset Address
|
||||
* Calculate the Flash Offset Address
|
||||
* For file system based devices, Flash Offset Address should be 0 always
|
||||
*/
|
||||
FsblInstancePtr->ImageOffsetAddress =
|
||||
MultiBootOffset * XFSBL_IMAGE_SEARCH_OFFSET;
|
||||
if ((FsblInstancePtr->PrimaryBootDevice == XFSBL_SD_BOOT_MODE) ||
|
||||
(FsblInstancePtr->PrimaryBootDevice == XFSBL_EMMC_BOOT_MODE))
|
||||
{
|
||||
FsblInstancePtr->ImageOffsetAddress = 0x0U;
|
||||
} else {
|
||||
FsblInstancePtr->ImageOffsetAddress =
|
||||
MultiBootOffset * XFSBL_IMAGE_SEARCH_OFFSET;
|
||||
}
|
||||
|
||||
FlashImageOffsetAddress = FsblInstancePtr->ImageOffsetAddress;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue