microblaze: cache: introduce Kconfig options for icache/dcache sizes

Replace XILINX_DCACHE_BYTE_SIZE macro with two Kconfig symbols for
instruction and data caches sizes, respectively:
CONFIG_XILINX_MICROBLAZE0_ICACHE_SIZE
CONFIG_XILINX_MICROBLAZE0_DCACHE_SIZE

Also, get rid of the hardcoded value in icache_disable().

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20220531181435.3473549-8-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com> (s/bralid/brlid/g)
This commit is contained in:
Ovidiu Panait
2022-05-31 21:14:29 +03:00
committed by Michal Simek
parent 73b8ee62a0
commit 84488fc693
5 changed files with 21 additions and 10 deletions

View File

@@ -26,10 +26,6 @@
# define CONFIG_SYS_MAX_FLASH_SECT 2048
#endif
#ifndef XILINX_DCACHE_BYTE_SIZE
#define XILINX_DCACHE_BYTE_SIZE 32768
#endif
/* size of console buffer */
#define CONFIG_SYS_CBSIZE 512
/* max number of command args */