mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
ARM: socfpga: Assure correct CPACR configuration
Make sure the ARM CPACR register is zeroed out, this is mandatory on Arria10. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <chin.liang.see@intel.com> Cc: Dinh Nguyen <dinguyen@kernel.org>
This commit is contained in:
parent
00057eea66
commit
937db7188e
1 changed files with 3 additions and 1 deletions
|
@ -21,12 +21,14 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||
void s_init(void) {
|
||||
#ifndef CONFIG_ARM64
|
||||
/*
|
||||
* Preconfigure ACTLR, make sure Write Full Line of Zeroes is disabled.
|
||||
* Preconfigure ACTLR and CPACR, make sure Write Full Line of Zeroes
|
||||
* is disabled in ACTLR.
|
||||
* 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"
|
||||
"mcr p15, 0, %0, c1, c0, 2\n"
|
||||
"isb\n"
|
||||
"dsb\n"
|
||||
::"r"(0x0));
|
||||
|
|
Loading…
Reference in a new issue