diff options
author | Enric Balletbo i Serra <eballetbo@iseebcn.com> | 2010-10-19 11:13:22 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-23 22:55:47 +0200 |
commit | cdb1d4f97e7e3599549852b89f2fd56cbf1e5322 (patch) | |
tree | 81a151813c598d605be6b3ddb2921b7792965e13 /common | |
parent | 116ef54d6804e3140ff4fc383ff8b6b7c7cf9f7b (diff) | |
download | u-boot-imx-cdb1d4f97e7e3599549852b89f2fd56cbf1e5322.zip u-boot-imx-cdb1d4f97e7e3599549852b89f2fd56cbf1e5322.tar.gz u-boot-imx-cdb1d4f97e7e3599549852b89f2fd56cbf1e5322.tar.bz2 |
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_onenand.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/cmd_onenand.c b/common/cmd_onenand.c index 83d967b..fe84c3b 100644 --- a/common/cmd_onenand.c +++ b/common/cmd_onenand.c @@ -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; |