I am using the following code segment to call adi_rom_boot() from Linux add-in 1.2 uboot to boot my second boot loader..
It was working initially but all of a sudden it failed to boot.
Is there any way to debug that from adi_rom_boot().
void *boot_address = (void *)(SPI_BASE + CONFIG_SPI_UBOOT_OFF);
uint32_t boot_flags = 0;
void *hook = (void *)0x00000000;
uint32_t boot_command = 0x00010207; //from spec for SPI boot, auto, SPI2
adi_rom_boot(boot_address, boot_flags, 0, hook, boot_command);