X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=arch%2Farm%2Fmach-socfpga%2Fboard.c;h=26d84be6e963d9b3085a6f27d13d3b70585d7b45;hb=8c9f247a1a2031b200c04f297d5b9ae1353d9d90;hp=189e12a668398c02de8380dbad7558b63e05d18e;hpb=8ada17dde84954e36d8bc6ff62a6956686eb0ec4;p=u-boot diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c index 189e12a668..26d84be6e9 100644 --- a/arch/arm/mach-socfpga/board.c +++ b/arch/arm/mach-socfpga/board.c @@ -18,7 +18,20 @@ DECLARE_GLOBAL_DATA_PTR; -void s_init(void) {} +void s_init(void) { +#ifndef CONFIG_ARM64 + /* + * Preconfigure ACTLR, make sure Write Full Line of Zeroes is disabled. + * This is optional on CycloneV / ArriaV. + * This is mandatory on Arria10, otherwise Linux refuses to boot. + */ + asm volatile( + "mcr p15, 0, %0, c1, c0, 1\n" + "isb\n" + "dsb\n" + ::"r"(0x0)); +#endif +} /* * Miscellaneous platform dependent initialisations