]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_cache.c
POST: add POST_STOP flag
[u-boot] / common / cmd_cache.c
index f2015b3ee5d83ae90057ad9fe711d18621277e68..675d43fa1877cc8320d3684b17caaf6cf23b295f 100644 (file)
@@ -26,9 +26,8 @@
  */
 #include <common.h>
 #include <command.h>
-#include <cmd_cache.h>
 
-#if (CONFIG_COMMANDS & CFG_CMD_CACHE)
+#if defined(CONFIG_CMD_CACHE)
 
 static int on_off (const char *);
 
@@ -95,4 +94,19 @@ static int on_off (const char *s)
        return (-1);
 }
 
-#endif /* CFG_CMD_CACHE */
+
+U_BOOT_CMD(
+       icache,   2,   1,     do_icache,
+       "icache  - enable or disable instruction cache\n",
+       "[on, off]\n"
+       "    - enable or disable instruction cache\n"
+);
+
+U_BOOT_CMD(
+       dcache,   2,   1,     do_dcache,
+       "dcache  - enable or disable data cache\n",
+       "[on, off]\n"
+       "    - enable or disable data (writethrough) cache\n"
+);
+
+#endif