#if defined(CONFIG_CMD_I2C)
extern void i2c_reloc(void);
#endif
+#if defined(CONFIG_CMD_ONENAND)
+ extern void onenand_reloc(void);
+#endif
#endif
gd = id;
monitor_flash_len = _bss_start - _TEXT_BASE;
debug ("monitor flash len: %08lX\n", monitor_flash_len);
+
+ /* Workaround */
+ arch_cpu_init();
+
board_init(); /* Setup chipselects */
#ifdef CONFIG_SERIAL_MULTI
#if defined(CONFIG_CMD_I2C)
i2c_reloc();
#endif
+#if defined(CONFIG_CMD_ONENAND)
+ onenand_reloc();
+#endif
#endif /* !defined(CONFIG_RELOC_FIXUP_WORKS) */
#ifdef CONFIG_LOGBUFFER
U_BOOT_CMD_MKENT(lock, 3, 0, do_onenand_lock, "", ""),
};
+#ifndef CONFIG_RELOC_FIXUP_WORKS
+void onenand_reloc(void) {
+ fixup_cmdtable(cmd_onenand_sub, ARRAY_SIZE(cmd_onenand_sub));
+}
+#endif
+
int do_onenand(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
{
cmd_tbl_t *c;