/* A board specific test if u-boot should go into the fastboot command
ahead of the bootcmd
Returns 0 to continue with normal u-boot flow
Returns 1 to execute fastboot */
int fastboot_preboot(void)
{
if (memcmp((const char *)CFG_FASTBOOT_TRANSFER_BUFFER,
FASTBOOT_REBOOT_MAGIC, FASTBOOT_REBOOT_MAGIC_SIZE) == 0)
{
return 1;
}
/* Test code */
writel(0xF, 0xE1600000);
writel(readl(0xE1600010) | 0x1, 0xE1600010);