mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
ARM: fix relocation support for onenand device.
We also have to relocate the onenand command table manually, otherwise onenand command don't work. Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
This commit is contained in:
parent
116ef54d68
commit
cdb1d4f97e
2 changed files with 9 additions and 0 deletions
|
@ -716,6 +716,9 @@ void board_init_r (gd_t *id, ulong dest_addr)
|
|||
#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
|
||||
|
|
|
@ -525,6 +525,12 @@ static cmd_tbl_t cmd_onenand_sub[] = {
|
|||
U_BOOT_CMD_MKENT(markbad, CONFIG_SYS_MAXARGS, 0, do_onenand_markbad, "", ""),
|
||||
};
|
||||
|
||||
#ifndef CONFIG_RELOC_FIXUP_WORKS
|
||||
void onenand_reloc(void) {
|
||||
fixup_cmdtable(cmd_onenand_sub, ARRAY_SIZE(cmd_onenand_sub));
|
||||
}
|
||||
#endif
|
||||
|
||||
static int do_onenand(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
|
||||
{
|
||||
cmd_tbl_t *c;
|
||||
|
|
Loading…
Reference in a new issue