]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: uniphier: add weird workaround code for LD20
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 12 May 2017 13:49:02 +0000 (22:49 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 17 May 2017 12:50:31 +0000 (21:50 +0900)
commit40c498ac9f48d20d4fca01e0611fd69e3d264dd7
tree1bad533a1d01e3c6fc2d384c46b8e67794b3b333
parentf1f3480b4298b4bbd7ddb2e52ea05f69d5c480c3
ARM: uniphier: add weird workaround code for LD20

When booting from ARM Trusted Firmware, U-Boot runs in EL1-NS.
The boot flow is as follows:
  BL1 -> BL2 -> BL31 -> BL33 (i.e. U-Boot)

This boot sequence works fine for LD11 SoC (Cortex-A53), but LD20
SoC (Cortex-A72) hangs in U-Boot.  The solution I found is to
read sctlr_el1 and write back the value as-is.  This should be
no effect, but surprisingly fixes the problem for LD20 to boot.
I do not know why.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/arm64/Makefile
arch/arm/mach-uniphier/arm64/lowlevel_init.S [new file with mode: 0644]