X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fcmd_cache.c;h=675d43fa1877cc8320d3684b17caaf6cf23b295f;hb=5e981d683d2363204c76773941c2e9c2044c808f;hp=f2015b3ee5d83ae90057ad9fe711d18621277e68;hpb=3863585bb1c1e8f89b4a2e90c4b83f8b81b8e029;p=oweals%2Fu-boot.git diff --git a/common/cmd_cache.c b/common/cmd_cache.c index f2015b3ee5..675d43fa18 100644 --- a/common/cmd_cache.c +++ b/common/cmd_cache.c @@ -26,9 +26,8 @@ */ #include #include -#include -#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