u-boot-brain/arch/arm/cpu/armv8
Masahiro Yamada 6b6024eadb arm64: add better and more generic spin-table support
There are two enable methods supported by ARM64 Linux; psci and
spin-table.  The latter is simpler and helpful for quick SoC bring
up.  My main motivation for this patch is to improve the spin-table
support, which allows us to boot an ARMv8 system without the ARM
Trusted Firmware.

Currently, we have multi-entry code in arch/arm/cpu/armv8/start.S
and the spin-table is supported in a really ad-hoc way, and I see
some problems:

  - We must hard-code CPU_RELEASE_ADDR so that it matches the
    "cpu-release-addr" property in the DT that comes from the
    kernel tree.

  - The Documentation/arm64/booting.txt in Linux requires that
    the release address must be zero-initialized, but it is not
    cared by the common code in U-Boot.  We must do it in a board
    function.

  - There is no systematic way to protect the spin-table code from
    the kernel.  We are supposed to do it in a board specific manner,
    but it is difficult to predict where the spin-table code will be
    located after the relocation.  So, it also makes difficult to
    hard-code /memreserve/ in the DT of the kernel.

So, here is a patch to solve those problems; the DT is run-time
modified to reserve the spin-table code (+ cpu-release-addr).
Also, the "cpu-release-addr" property is set to an appropriate
address after the relocation, which means we no longer need the
hard-coded CPU_RELEASE_ADDR.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2016-07-14 18:22:16 -04:00
..
fsl-layerscape Merge git://git.denx.de/u-boot-fsl-qoriq 2016-06-28 15:59:05 -04:00
hisilicon hisilicon: hi6220: Add a hi6220 pinmux driver. 2015-08-12 20:48:00 -04:00
s32v234 armv8: s32v234: Introduce basic support for s32v234evb 2016-06-13 08:56:35 -04:00
zynqmp common: Pass the boot device into spl_boot_mode() 2016-06-26 20:17:22 +02:00
cache_v8.c arm64: Fix layerscape mmu setup 2016-03-21 12:42:10 -07:00
cache.S arm64: rename __asm_flush_dcache_level to __asm_dcache_level 2016-05-27 15:47:55 -04:00
config.mk ARM: move -march=* and -mtune= options to arch/arm/Makefile 2015-03-27 16:55:22 +01:00
cpu.c arm64: core support 2014-01-09 16:08:44 +01:00
exceptions.S arm64: Allow exceptions to return 2016-03-15 21:30:10 -04:00
fwcall.c arm: implement generic PSCI reset call for armv8 2016-05-27 15:39:46 -04:00
generic_timer.c armv8: define usec2ticks function 2015-12-15 08:57:34 +08:00
Kconfig arm64: add better and more generic spin-table support 2016-07-14 18:22:16 -04:00
Makefile arm64: add better and more generic spin-table support 2016-07-14 18:22:16 -04:00
spin_table_v8.S arm64: add better and more generic spin-table support 2016-07-14 18:22:16 -04:00
spin_table.c arm64: add better and more generic spin-table support 2016-07-14 18:22:16 -04:00
start.S arm64: add better and more generic spin-table support 2016-07-14 18:22:16 -04:00
tlb.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
transition.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
u-boot-spl.lds arm64: define _image_binary_end to fix SPL_OF_CONTROL 2016-03-14 19:18:52 -04:00
u-boot.lds efi_loader: Add runtime services 2016-03-15 18:03:10 -04:00