summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-09-11 23:06:34 +0000
committerwdenk <wdenk>2003-09-11 23:06:34 +0000
commit4f7cb08ee7b48a511a9cd2398fd4a243ca2733c7 (patch)
tree5aadeadbf3f022aa31bd34b35e4ff6f1ff134d74 /common
parenta43278a43d522fba7fea0ed3045b718a9c8d22ac (diff)
downloadblackbird-obmc-uboot-4f7cb08ee7b48a511a9cd2398fd4a243ca2733c7.tar.gz
blackbird-obmc-uboot-4f7cb08ee7b48a511a9cd2398fd4a243ca2733c7.zip
* Patch by Martin Krause, 11 Sep 2003:
add burn-in tests for TRAB board * Enable instruction cache on MPC5200 board
Diffstat (limited to 'common')
-rw-r--r--common/cmd_vfd.c6
-rw-r--r--common/exports.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/common/cmd_vfd.c b/common/cmd_vfd.c
index f04714981a..118c50dcbc 100644
--- a/common/cmd_vfd.c
+++ b/common/cmd_vfd.c
@@ -54,7 +54,7 @@ int do_vfd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 1;
}
- if (argv[1][0] == '#') { /* select bitmap by number */
+ if (argv[1][0] == '/') { /* select bitmap by number */
bitmap = simple_strtoul(argv[1]+1, NULL, 10);
return (trab_vfd(bitmap));
}
@@ -68,8 +68,10 @@ int do_vfd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
U_BOOT_CMD(
vfd, 2, 0, do_vfd,
"vfd - load a bitmap to the VFDs on TRAB\n",
- "N\n"
+ "/N\n"
" - load bitmap N to the VFDs (N is _decimal_ !!!)\n"
+ "vfd ADDR\n"
+ " - load bitmap at address ADDR\n"
);
#endif /* CFG_CMD_VFD */
diff --git a/common/exports.c b/common/exports.c
index 22002ccb38..9858217ae0 100644
--- a/common/exports.c
+++ b/common/exports.c
@@ -27,5 +27,9 @@ void jumptable_init (void)
#if defined(CONFIG_I386) || defined(CONFIG_PPC)
gd->jt[XF_install_hdlr] = (void *) irq_install_handler;
gd->jt[XF_free_hdlr] = (void *) irq_free_handler;
-#endif
+#endif /* I386 || PPC */
+#if (CONFIG_COMMANDS & CFG_CMD_I2C)
+ gd->jt[XF_i2c_write] = (void *) i2c_write;
+ gd->jt[XF_i2c_read] = (void *) i2c_read;
+#endif /* CFG_CMD_I2C */
}
OpenPOWER on IntegriCloud