From c6c731fe311f7da42777ffd31804a4f6aa3f8e19 Mon Sep 17 00:00:00 2001 From: Yutang Jiang Date: Sat, 29 Oct 2016 00:14:32 +0800 Subject: layerscape: add 64b/32b target for ls1043ardb device Add support for NXP layerscape ls1043ardb 64b/32b Dev board. LS1043a is an SoC with 4x64-bit up to 1.6 GHz ARMv8 A53 cores. ls1043ardb support features as: 2GB DDR4, 128MB NOR/512MB NAND, USB3.0, eSDHC, I2C, GPIO, PCIe/Mini-PCIe, 6x1G/1x10G network port, etc. 64b/32b ls1043ardb target is using 4.4 kernel, and rcw/u-boot/fman images from NXP QorIQ SDK release. All of 4.4 kernel patches porting from SDK release or upstream. QorIQ SDK ISOs can be downloaded from this location: http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-processors:SDKLINUX Signed-off-by: Yutang Jiang --- ...32-Allow-RAM-to-be-mapped-for-LayerScape-.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 target/linux/layerscape/patches-4.4/3009-armv8-aarch32-Allow-RAM-to-be-mapped-for-LayerScape-.patch (limited to 'target/linux/layerscape/patches-4.4/3009-armv8-aarch32-Allow-RAM-to-be-mapped-for-LayerScape-.patch') diff --git a/target/linux/layerscape/patches-4.4/3009-armv8-aarch32-Allow-RAM-to-be-mapped-for-LayerScape-.patch b/target/linux/layerscape/patches-4.4/3009-armv8-aarch32-Allow-RAM-to-be-mapped-for-LayerScape-.patch new file mode 100644 index 0000000000..240204a16b --- /dev/null +++ b/target/linux/layerscape/patches-4.4/3009-armv8-aarch32-Allow-RAM-to-be-mapped-for-LayerScape-.patch @@ -0,0 +1,31 @@ +From ef25bf644b7de83849a2f804c84bb54cd2f1255f Mon Sep 17 00:00:00 2001 +From: Alison Wang +Date: Mon, 11 Apr 2016 17:25:40 +0800 +Subject: [PATCH 09/70] armv8: aarch32: Allow RAM to be mapped for LayerScape + SoC + +This patch is based on Kernel v4.1.8. As in v4.1.8, memremap() is not +introduced and the WARN() check is not relaxed to allow MT_MEMORY_RW +mappings of pfn_valid() pages, this patch is needed as a workaround for +spin-table address which locates in RAM to be mapped. + +For the latest kernel in upstream, this patch is not needed anymore. + +Signed-off-by: Alison Wang +--- + arch/arm/mm/ioremap.c | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/arch/arm/mm/ioremap.c ++++ b/arch/arm/mm/ioremap.c +@@ -298,8 +298,10 @@ static void __iomem * __arm_ioremap_pfn_ + /* + * Don't allow RAM to be mapped - this causes problems with ARMv6+ + */ ++#ifndef CONFIG_ARCH_LAYERSCAPE + if (WARN_ON(pfn_valid(pfn))) + return NULL; ++#endif + + area = get_vm_area_caller(size, VM_IOREMAP, caller); + if (!area) -- cgit v1.2.3