u-boot-brain/arch
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
..
arc arc: Rename AXS101 board to more generic AXS10x 2016-08-05 12:50:33 +03:00
arm ARM: Rework and correct barrier definitions 2016-08-05 07:23:57 -04:00
avr32 avr32: Drop unused code in u-boot.h 2016-05-27 15:39:52 -04:00
blackfin configs: Re-sync almost all of cmd/Kconfig 2016-04-25 15:09:40 -04:00
m68k m68k: code reformatting for all start.S files 2016-07-30 22:59:18 +02:00
microblaze Remove unneeded remnants of bcopy(). 2016-06-06 13:39:18 -04:00
mips libfdt: Introduce new ARCH_FIXUP_FDT option 2016-07-31 19:37:08 -06:00
nds32 arm, nds32, sh: remove useless ioremap()/iounmap() defines 2016-07-14 18:22:25 -04:00
nios2 Delete tests of CONFIG_OF_LIBFDT when testing CONFIG_OF_BOARD_SETUP 2016-05-27 15:41:16 -04:00
openrisc openrisc: Drop the arch-specific board init 2016-05-27 15:39:50 -04:00
powerpc powerpc/mpc85xx: Update erratum workaround for A006379 2016-08-02 09:43:13 -07:00
sandbox Add a power domain framework/uclass 2016-07-27 16:29:56 -06:00
sh arm, nds32, sh: remove useless ioremap()/iounmap() defines 2016-07-14 18:22:25 -04:00
sparc Fix spelling of "transferred". 2016-03-22 12:16:16 -04:00
x86 dm: Use dm_scan_fdt_dev() directly where possible 2016-07-27 14:15:54 -06:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig linux/io.h: add generic ioremap()/iounmap() defines 2016-07-14 18:22:26 -04:00