3007-armv8-aarch32-Run-32-bit-Linux-in-AArch32-execution-.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. From 3a827762e11670ca815bd4ee305f5faf5f02acb9 Mon Sep 17 00:00:00 2001
  2. From: Alison Wang <b18965@freescale.com>
  3. Date: Tue, 17 May 2016 17:23:51 +0800
  4. Subject: [PATCH 07/70] armv8: aarch32: Run 32-bit Linux in AArch32 execution
  5. state
  6. This patch adds AArch32 execution state support for LS1043A. Verified
  7. 32-bit Linux kernel can run on LS1043ARDB board.
  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/Kconfig | 10 ++++++++++
  12. arch/arm/mach-imx/Makefile | 4 +++-
  13. arch/arm/mach-imx/mach-ls1043a.c | 21 +++++++++++++++++++++
  14. 3 files changed, 34 insertions(+), 1 deletion(-)
  15. create mode 100644 arch/arm/mach-imx/mach-ls1043a.c
  16. --- a/arch/arm/mach-imx/Kconfig
  17. +++ b/arch/arm/mach-imx/Kconfig
  18. @@ -612,6 +612,16 @@ endchoice
  19. endif
  20. +config ARCH_LAYERSCAPE
  21. + bool "Freescale Layerscape SoC support"
  22. + select ARM_GIC
  23. + select HAVE_ARM_ARCH_TIMER
  24. + select PCI_LAYERSCAPE if PCI
  25. + select LS1_MSI if PCI_MSI
  26. +
  27. + help
  28. + This enables support for Freescale Layerscape SoC family.
  29. +
  30. source "arch/arm/mach-imx/devices/Kconfig"
  31. endif
  32. --- a/arch/arm/mach-imx/Makefile
  33. +++ b/arch/arm/mach-imx/Makefile
  34. @@ -75,7 +75,7 @@ obj-$(CONFIG_HAVE_IMX_ANATOP) += anatop.
  35. obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
  36. obj-$(CONFIG_HAVE_IMX_MMDC) += mmdc.o
  37. obj-$(CONFIG_HAVE_IMX_SRC) += src.o
  38. -ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_LS1021A),)
  39. +ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_LS1021A)$(CONFIG_ARCH_LAYERSCAPE),)
  40. AFLAGS_headsmp.o :=-Wa,-march=armv7-a
  41. obj-$(CONFIG_SMP) += headsmp.o platsmp.o
  42. obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
  43. @@ -101,4 +101,6 @@ obj-$(CONFIG_SOC_VF610) += mach-vf610.o
  44. obj-$(CONFIG_SOC_LS1021A) += mach-ls1021a.o
  45. +obj-$(CONFIG_ARCH_LAYERSCAPE) += mach-ls1043a.o
  46. +
  47. obj-y += devices/
  48. --- /dev/null
  49. +++ b/arch/arm/mach-imx/mach-ls1043a.c
  50. @@ -0,0 +1,21 @@
  51. +/*
  52. + * Copyright 2015-2016 Freescale Semiconductor, Inc.
  53. + *
  54. + * This program is free software; you can redistribute it and/or modify
  55. + * it under the terms of the GNU General Public License as published by
  56. + * the Free Software Foundation; either version 2 of the License, or
  57. + * (at your option) any later version.
  58. + */
  59. +
  60. +#include <asm/mach/arch.h>
  61. +
  62. +#include "common.h"
  63. +
  64. +static const char * const ls1043a_dt_compat[] __initconst = {
  65. + "fsl,ls1043a",
  66. + NULL,
  67. +};
  68. +
  69. +DT_MACHINE_START(LS1043A, "Freescale LS1043A")
  70. + .dt_compat = ls1043a_dt_compat,
  71. +MACHINE_END