]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_i2c.c
ARM: relocation: don't undef CONFIG_SYS_ARM_WITHOUT_RELOC
[u-boot] / common / cmd_i2c.c
index a7b65edd5fcc9dbc149f1d1e8b2455f6853464eb..0a0cfceb45ca6d7e424655dec811a6540355df31 100644 (file)
@@ -1284,6 +1284,12 @@ static cmd_tbl_t cmd_i2c_sub[] = {
        U_BOOT_CMD_MKENT(speed, 1, 1, do_i2c_bus_speed, "", ""),
 };
 
+#ifndef CONFIG_RELOC_FIXUP_WORKS
+void i2c_reloc(void) {
+       fixup_cmdtable(cmd_i2c_sub, ARRAY_SIZE(cmd_i2c_sub));
+}
+#endif
+
 static int do_i2c(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 {
        cmd_tbl_t *c;