u-boot/arch/arm/mach-tegra/tegra20
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
..
clock.c of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
cpu.c Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
crypto.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
crypto.h ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
display.c tegra: video: Merge the display driver into one file 2016-02-16 09:17:52 -07:00
emc.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
funcmux.c tegra: pinmux: fix FUNCMUX_NDFLASH_KBC_8_BIT 2015-03-30 10:04:44 -07:00
Kconfig arch: Make board selection choices optional 2015-05-12 18:10:02 -04:00
Makefile ARM: Rework and correct barrier definitions 2016-08-05 07:23:57 -04:00
pinmux.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
pmu.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
warmboot.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
warmboot_avp.c ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00
warmboot_avp.h ARM: tegra: collect SoC sources into mach-tegra 2015-02-21 08:23:51 -05:00