ARM: socfpga: Disable D cache in SPL
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>
This commit is contained in:
parent
dc3249b91b
commit
7544ad0303
@ -77,6 +77,8 @@ void spl_board_init(void)
|
|||||||
|
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
|
dcache_disable();
|
||||||
|
|
||||||
socfpga_init_security_policies();
|
socfpga_init_security_policies();
|
||||||
socfpga_sdram_remap_zero();
|
socfpga_sdram_remap_zero();
|
||||||
|
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
/*
|
/*
|
||||||
* U-Boot general configurations
|
* U-Boot general configurations
|
||||||
*/
|
*/
|
||||||
/* Cache options */
|
|
||||||
#define CONFIG_SYS_DCACHE_OFF
|
|
||||||
|
|
||||||
/* Memory configurations */
|
/* Memory configurations */
|
||||||
#define PHYS_SDRAM_1_SIZE 0x40000000
|
#define PHYS_SDRAM_1_SIZE 0x40000000
|
||||||
|
Loading…
Reference in New Issue
Block a user