Commit c5ba6357b322581f2b408e039c459379e4aae5e3

Authored by Michal Simek
1 parent 0905046050

microblaze: Enable cache by default

The whole cache code needs to be redesign to read information about cache
from DT instead of macro selection. Enable caches by default because
systems have caches on by default for Linux.

Also enable CMD_CACHE to be able to disable cache if there is any issue.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff

configs/microblaze-generic_defconfig
... ... @@ -37,6 +37,7 @@
37 37 CONFIG_CMD_TFTPPUT=y
38 38 CONFIG_CMD_MII=y
39 39 CONFIG_CMD_PING=y
  40 +CONFIG_CMD_CACHE=y
40 41 CONFIG_CMD_JFFS2=y
41 42 CONFIG_SPL_OF_CONTROL=y
42 43 CONFIG_OF_EMBED=y
include/configs/microblaze-generic.h
... ... @@ -100,6 +100,9 @@
100 100 #endif /* !SPIFLASH */
101 101 #endif /* !FLASH */
102 102  
  103 +#define XILINX_USE_ICACHE 1
  104 +#define XILINX_USE_DCACHE 1
  105 +
103 106 #if defined(XILINX_USE_ICACHE)
104 107 # define CONFIG_ICACHE
105 108 #else