layerscape: add 64b/32b target for ls1012ardb device
[openwrt/staging/wigyori.git] / target / linux / layerscape / patches-4.4 / 3117-armv8-aarch32-Run-32-bit-Linux-for-LayerScape-SoCs.patch
1 From f6dcf8936845ea95eba432ee725cec761032fe2a Mon Sep 17 00:00:00 2001
2 From: Ying Zhang <ying.zhang22455@nxp.com>
3 Date: Thu, 29 Sep 2016 10:12:29 +0800
4 Subject: [PATCH 117/124] armv8: aarch32: Run 32-bit Linux for LayerScape SoCs
5
6 This patch adds AArch32 execution state support for LayerScape SoCs.
7
8 Signed-off-by: Ebony Zhu <ebony.zhu@nxp.com>
9 Signed-off-by: Alison Wang <alison.wang@nxp.com>
10 ---
11 arch/arm/mach-imx/Makefile | 2 ++
12 arch/arm/mach-imx/mach-layerscape.c | 22 ++++++++++++++++++++++
13 2 files changed, 24 insertions(+)
14 create mode 100644 arch/arm/mach-imx/mach-layerscape.c
15
16 --- a/arch/arm/mach-imx/Makefile
17 +++ b/arch/arm/mach-imx/Makefile
18 @@ -103,4 +103,6 @@ obj-$(CONFIG_SOC_LS1021A) += mach-ls1021
19
20 obj-$(CONFIG_ARCH_LAYERSCAPE) += mach-ls1043a.o
21
22 +obj-$(CONFIG_ARCH_LAYERSCAPE) += mach-layerscape.o
23 +
24 obj-y += devices/
25 --- /dev/null
26 +++ b/arch/arm/mach-imx/mach-layerscape.c
27 @@ -0,0 +1,22 @@
28 +/*
29 + * Copyright 2015-2016 Freescale Semiconductor, Inc.
30 + *
31 + * This program is free software; you can redistribute it and/or modify
32 + * it under the terms of the GNU General Public License as published by
33 + * the Free Software Foundation; either version 2 of the License, or
34 + * (at your option) any later version.
35 + */
36 +
37 +#include <asm/mach/arch.h>
38 +
39 +#include "common.h"
40 +
41 +static const char * const layerscape_dt_compat[] __initconst = {
42 + "fsl,ls1043a",
43 + "fsl,ls1012a",
44 + NULL,
45 +};
46 +
47 +DT_MACHINE_START(LAYERSCAPE, "Freescale LAYERSCAPE")
48 + .dt_compat = layerscape_dt_compat,
49 +MACHINE_END