]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: socfpga: Disable D cache in SPL
authorMarek Vasut <marex@denx.de>
Tue, 8 May 2018 18:32:01 +0000 (20:32 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 9 Mar 2019 16:59:13 +0000 (17:59 +0100)
The bootrom seems to leave the D-cache in messed up state, make sure
the SPL disables it so it can not interfere with operation.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <chin.liang.see@intel.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Cc: Tien Fong Chee <tien.fong.chee@intel.com>
arch/arm/mach-socfpga/spl_a10.c
include/configs/socfpga_arria10_socdk.h

index c97eacb424f23f5fecf18f88ec2d97f62c3dbc06..c8e73d47c0b40c3ac11e42f5b07059b255448ba7 100644 (file)
@@ -77,6 +77,8 @@ void spl_board_init(void)
 
 void board_init_f(ulong dummy)
 {
+       dcache_disable();
+
        socfpga_init_security_policies();
        socfpga_sdram_remap_zero();
 
index 58e446b60a90042adae850355ce86885d2ee8a6f..0f116fbf2d981d2cfa4779ba34cfd852c95c6373 100644 (file)
@@ -15,8 +15,6 @@
 /*
  * U-Boot general configurations
  */
-/* Cache options */
-#define CONFIG_SYS_DCACHE_OFF
 
 /* Memory configurations  */
 #define PHYS_SDRAM_1_SIZE              0x40000000