#define BOOT_MODE_REG (XPSS_SYS_CTRL_BASEADDR + 0x25C)
#define BOOT_MODES_MASK 0x0000000F
-#define QSPI_MODE (0x00000000) /**< QSPI */
+#define SD_MODE (0x00000000) /**< Secure Digital card */
#define NAND_FLASH_MODE (0x00000001) /**< NAND */
#define NOR_FLASH_MODE (0x00000002) /**< NOR */
-#define SD_MODE (0x00000008) /**< Secure Digital card */
+#define QSPI_MODE (0x00000008) /**< QSPI */
DECLARE_GLOBAL_DATA_PTR;
*/
void reset_cpu(ulong addr)
{
- puts("Warning: this reset doesn't work.");
- /* hah. */
- goto *((void*)0x0);
+ u32 *slcr_p;
+
+ slcr_p = (u32*)XPSS_SYS_CTRL_BASEADDR;
+
+ /* unlock SLCR */
+ *(slcr_p + 2) = 0xDF0D;
+ /* Tickle soft reset bit */
+ *(slcr_p + 128) = 1;
+
+ while(1) {;}
}
void do_reset(void)
{
reset_cpu(0);
- goto *((void*)0x0); /* call optimized out? */
}
#undef CONFIG_PELE_XIL_LQSPI
-/* default boot is NOR, then QSPI when u-boot is built for it, NAND must be selected
- by the user
-*/
+/* default boot is according to the bootmode switch settings */
+#define CONFIG_BOOTCOMMAND "run modeboot"
-#ifndef CONFIG_PELE_XIL_LQSPI
-#define CONFIG_BOOTCOMMAND "run norboot"
-#else
-#define CONFIG_BOOTCOMMAND "run qspiboot"
-#endif
-
-#define CONFIG_BAUDRATE 9600
+#define CONFIG_BAUDRATE 115200
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 38400, 115200 }
#define CONFIG_BOOTDELAY 2 /* -1 to Disable autoboot */
#define CONFIG_PSS_SERIAL
#define CONFIG_RTC_XPSSRTC
-#include <config_cmd_default.h> /* FIXME: check this! */
+#include <config_cmd_default.h>
#define CONFIG_CMD_DATE /* RTC? */
#define CONFIG_CMD_PING /* Might be useful for debugging */
#define CONFIG_CMD_SAVEENV /* Command to save ENV to Flash */