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-Run-32-bit-Linux-in-AArch32-execution-.patch | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 target/linux/layerscape/patches-4.4/3007-armv8-aarch32-Run-32-bit-Linux-in-AArch32-execution-.patch (limited to 'target/linux/layerscape/patches-4.4/3007-armv8-aarch32-Run-32-bit-Linux-in-AArch32-execution-.patch') diff --git a/target/linux/layerscape/patches-4.4/3007-armv8-aarch32-Run-32-bit-Linux-in-AArch32-execution-.patch b/target/linux/layerscape/patches-4.4/3007-armv8-aarch32-Run-32-bit-Linux-in-AArch32-execution-.patch new file mode 100644 index 0000000000..c2f5215647 --- /dev/null +++ b/target/linux/layerscape/patches-4.4/3007-armv8-aarch32-Run-32-bit-Linux-in-AArch32-execution-.patch @@ -0,0 +1,79 @@ +From 3a827762e11670ca815bd4ee305f5faf5f02acb9 Mon Sep 17 00:00:00 2001 +From: Alison Wang +Date: Tue, 17 May 2016 17:23:51 +0800 +Subject: [PATCH 07/70] armv8: aarch32: Run 32-bit Linux in AArch32 execution + state + +This patch adds AArch32 execution state support for LS1043A. Verified +32-bit Linux kernel can run on LS1043ARDB board. + +Signed-off-by: Ebony Zhu +Signed-off-by: Alison Wang +--- + arch/arm/mach-imx/Kconfig | 10 ++++++++++ + arch/arm/mach-imx/Makefile | 4 +++- + arch/arm/mach-imx/mach-ls1043a.c | 21 +++++++++++++++++++++ + 3 files changed, 34 insertions(+), 1 deletion(-) + create mode 100644 arch/arm/mach-imx/mach-ls1043a.c + +--- a/arch/arm/mach-imx/Kconfig ++++ b/arch/arm/mach-imx/Kconfig +@@ -612,6 +612,16 @@ endchoice + + endif + ++config ARCH_LAYERSCAPE ++ bool "Freescale Layerscape SoC support" ++ select ARM_GIC ++ select HAVE_ARM_ARCH_TIMER ++ select PCI_LAYERSCAPE if PCI ++ select LS1_MSI if PCI_MSI ++ ++ help ++ This enables support for Freescale Layerscape SoC family. ++ + source "arch/arm/mach-imx/devices/Kconfig" + + endif +--- a/arch/arm/mach-imx/Makefile ++++ b/arch/arm/mach-imx/Makefile +@@ -75,7 +75,7 @@ obj-$(CONFIG_HAVE_IMX_ANATOP) += anatop. + obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o + obj-$(CONFIG_HAVE_IMX_MMDC) += mmdc.o + obj-$(CONFIG_HAVE_IMX_SRC) += src.o +-ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_LS1021A),) ++ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_LS1021A)$(CONFIG_ARCH_LAYERSCAPE),) + AFLAGS_headsmp.o :=-Wa,-march=armv7-a + obj-$(CONFIG_SMP) += headsmp.o platsmp.o + obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o +@@ -101,4 +101,6 @@ obj-$(CONFIG_SOC_VF610) += mach-vf610.o + + obj-$(CONFIG_SOC_LS1021A) += mach-ls1021a.o + ++obj-$(CONFIG_ARCH_LAYERSCAPE) += mach-ls1043a.o ++ + obj-y += devices/ +--- /dev/null ++++ b/arch/arm/mach-imx/mach-ls1043a.c +@@ -0,0 +1,21 @@ ++/* ++ * Copyright 2015-2016 Freescale Semiconductor, Inc. ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ */ ++ ++#include ++ ++#include "common.h" ++ ++static const char * const ls1043a_dt_compat[] __initconst = { ++ "fsl,ls1043a", ++ NULL, ++}; ++ ++DT_MACHINE_START(LS1043A, "Freescale LS1043A") ++ .dt_compat = ls1043a_dt_compat, ++MACHINE_END -- cgit v1.2.3