X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=common%2Fexports.c;h=9858217ae0c3db1b0e28df5be9b41a995b39f52a;hb=4f7cb08ee7b48a511a9cd2398fd4a243ca2733c7;hp=22002ccb38a6e7c010670b8ae021833f340df610;hpb=a43278a43d522fba7fea0ed3045b718a9c8d22ac;p=karo-tx-uboot.git 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 */ }