u-boot/arch/arm/cpu
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
..
arm11 arm: Move check_cache_range() into a common place 2016-07-14 18:33:09 -04:00
arm720t ARM: ARM720t: remove empty asm/arch/hardware.h 2015-04-23 08:52:27 -04:00
arm920t arm: Allow skipping of low-level init with I-cache on 2016-06-12 23:49:38 +02:00
arm926ejs arm: Move check_cache_range() into a common place 2016-07-14 18:33:09 -04:00
arm946es arm: Allow skipping of low-level init with I-cache on 2016-06-12 23:49:38 +02:00
arm1136 common: Pass the boot device into spl_boot_mode() 2016-06-26 20:17:22 +02:00
arm1176 ARM: start.S: fix typo 2016-02-29 14:49:35 -05:00
armv7 ARM: Rework and correct barrier definitions 2016-08-05 07:23:57 -04:00
armv7m stm32: Add SDRAM support for stm32f746 discovery board 2016-07-14 18:22:43 -04:00
armv8 ARMv8/fsl-ppa: Consolidate PPA image stored-media flag for XIP 2016-08-02 09:51:29 -07:00
pxa pxa: add support for D- and I- caches 2016-03-27 09:13:00 -04:00
sa1100 arm: Allow skipping of low-level init with I-cache on 2016-06-12 23:49:38 +02:00
Makefile Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
u-boot-spl.lds spl: arm: Make sure to include all of the u_boot_list entries 2016-03-16 15:27:55 -04:00
u-boot.lds ARM: Add secure section for initialized data 2016-07-15 15:54:58 +02:00