summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-03-28 14:52:12 +0200
committerStefan Roese <sr@denx.de>2007-03-28 14:52:12 +0200
commit0c75c9d84307a9f1cbe1ff0c4d8937ee3a96475e (patch)
treeb577e3e8da79195390ae0007d2cdfc39936ef18c /common
parente50b791b3f8b696e32000bbaa6e2d1f098c4bc04 (diff)
downloadu-boot-imx-0c75c9d84307a9f1cbe1ff0c4d8937ee3a96475e.zip
u-boot-imx-0c75c9d84307a9f1cbe1ff0c4d8937ee3a96475e.tar.gz
u-boot-imx-0c75c9d84307a9f1cbe1ff0c4d8937ee3a96475e.tar.bz2
i2c: Enable "old" i2c commands even when CONFIG_I2C_CMD_TREE is defined
The "old" i2c commands (iprobe, imd...) are now compiled in again, even when the i2c command tree is enabled via the CONFIG_I2C_CMD_TREE config option. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_i2c.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c
index 34571ee..755810d 100644
--- a/common/cmd_i2c.c
+++ b/common/cmd_i2c.c
@@ -969,7 +969,7 @@ U_BOOT_CMD(
"i2c sdram chip - print SDRAM configuration information\n"
#endif /* CFG_CMD_SDRAM */
);
-#else /* CONFIG_I2C_CMD_TREE */
+#endif /* CONFIG_I2C_CMD_TREE */
U_BOOT_CMD(
imd, 4, 1, do_i2c_md, \
"imd - i2c memory display\n", \
@@ -1024,6 +1024,5 @@ U_BOOT_CMD(
" (valid chip values 50..57)\n"
);
#endif
-#endif /* CONFIG_I2C_CMD_TREE */
#endif /* CFG_CMD_I2C */