u-boot/arch/arm/lib
Tom Rini a78cd86132 ARM: Rework and correct barrier definitions
As part of testing booting Linux kernels on Rockchip devices, it was
discovered by Ziyuan Xu and Sandy Patterson that we had multiple and for
some cases incomplete isb definitions.  This was causing a failure to
boot of the Linux kernel.

In order to solve this problem as well as cover any corner cases that we
may also have had a number of changes are made in order to consolidate
things.  First, <asm/barriers.h> now becomes the source of isb/dsb/dmb
definitions.  This however introduces another complexity.  Due to
needing to build SPL for 32bit tegra with -march=armv4 we need to borrow
the __LINUX_ARM_ARCH__ logic from the Linux Kernel in a more complete
form.  Move this from arch/arm/lib/Makefile to arch/arm/Makefile and add
a comment about it.  Now that we can always know what the target CPU is
capable off we can get always do the correct thing for the barrier.  The
final part of this is that need to be consistent everywhere and call
isb()/dsb()/dmb() and NOT call ISB/DSB/DMB in some cases and the
function names in others.

Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Acked-by: Sandy Patterson <apatterson@sightlogix.com>
Reported-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Reported-by: Sandy Patterson <apatterson@sightlogix.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2016-08-05 07:23:57 -04:00
..
Makefile ARM: Rework and correct barrier definitions 2016-08-05 07:23:57 -04:00
ashldi3.S arm: lib: fix push/pop-section directives 2016-06-03 15:14:11 -04:00
ashrdi3.S arm: lib: fix push/pop-section directives 2016-06-03 15:14:11 -04:00
asm-offsets.c ARM: remove jadecpu board support 2015-02-24 17:06:51 -05:00
bootm-fdt.c libfdt: Introduce new ARCH_FIXUP_FDT option 2016-07-31 19:37:08 -06:00
bootm.c libfdt: Introduce new ARCH_FIXUP_FDT option 2016-07-31 19:37:08 -06:00
cache-cp15.c arm: Add support for HYP mode and LPAE page tables 2016-03-27 09:12:17 -04:00
cache-pl310.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cache.c arm: Show cache warnings in U-Boot proper only 2016-07-14 18:33:11 -04:00
ccn504.S armv8: lsch3: Enable WUO config for RNI-20 node 2016-03-21 12:42:10 -07:00
cmd_boot.c common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec() 2015-05-28 08:18:23 -04:00
crt0.S arm: make sure board_init_r() is being called using the right mode (ARM / THUMB) 2016-02-15 12:04:45 -05:00
crt0_64.S armv8: spl: Call board_init_r from crt0_64 in SPL 2016-07-22 14:46:23 -04:00
debug.S arm: debug: adjust for U-Boot 2014-10-26 22:23:40 +01:00
div0.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
div64.S arm: lib: fix push/pop-section directives 2016-06-03 15:14:11 -04:00
eabi_compat.c eabi_compat: add __aeabi_memcpy __aeabi_memset 2014-09-09 13:51:11 +02:00
gic_64.S armv8/gic: Fix GIC v2 initialization 2015-10-15 14:47:03 +02:00
interrupts.c arm: Allow EFI payload code to take exceptions 2016-03-15 21:30:13 -04:00
interrupts_64.c arm64: Allow EFI payload code to take exceptions 2016-03-15 21:30:11 -04:00
interrupts_m.c Change e-mail address of Kamil Lulko 2015-12-05 18:22:32 -05:00
lib1funcs.S arm: lib: Fix fix push/pop-section directives 2016-06-04 19:25:14 -04:00
lshrdi3.S arm: lib: fix push/pop-section directives 2016-06-03 15:14:11 -04:00
memcpy.S arm: include: Import unified.h from Linux kernel 2016-06-02 21:21:43 -04:00
memset.S arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD 2015-11-10 15:03:48 +01:00
muldi3.S arm: lib: fix push/pop-section directives 2016-06-03 15:14:11 -04:00
psci-dt.c arm/PSCI: Add support for creating ARMv7 PSCI version 1.0 DT node 2016-08-02 09:50:00 -07:00
relocate.S ARM: Add ARMv7-M support 2015-04-22 12:14:55 -04:00
relocate_64.S armv8/cache: Flush D-cache, invalidate I-cache for relocation 2014-04-07 17:43:36 +02:00
reset.c arm:reset: call the reset_misc() before the cpu reset 2014-09-05 13:58:49 +09:00
sections.c ARM: Add an empty secure stack section 2016-07-15 15:54:57 +02:00
semihosting.c arm: fix compile warnings when semihosting is enabled on ARMv7M target. 2015-11-10 09:45:36 +01:00
spl.c armv8: spl: Call board_init_r from crt0_64 in SPL 2016-07-22 14:46:23 -04:00
stack.c Change my mailaddress 2016-05-02 18:37:09 -04:00
uldivmod.S arm: lib: fix push/pop-section directives 2016-06-03 15:14:11 -04:00
vectors.S arm/arm64: implement a boot header capability 2016-06-06 13:39:19 -04:00
vectors_m.S Change e-mail address of Kamil Lulko 2015-12-05 18:22:32 -05:00
zimage.c spl: zImage support in Falcon mode 2016-07-22 09:53:00 -04:00