3117-armv8-aarch32-Run-32-bit-Linux-for-LayerScape-SoCs.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. This patch adds AArch32 execution state support for LayerScape SoCs.
  6. Signed-off-by: Ebony Zhu <ebony.zhu@nxp.com>
  7. Signed-off-by: Alison Wang <alison.wang@nxp.com>
  8. ---
  9. arch/arm/mach-imx/Makefile | 2 ++
  10. arch/arm/mach-imx/mach-layerscape.c | 22 ++++++++++++++++++++++
  11. 2 files changed, 24 insertions(+)
  12. create mode 100644 arch/arm/mach-imx/mach-layerscape.c
  13. --- a/arch/arm/mach-imx/Makefile
  14. +++ b/arch/arm/mach-imx/Makefile
  15. @@ -103,4 +103,6 @@ obj-$(CONFIG_SOC_LS1021A) += mach-ls1021
  16. obj-$(CONFIG_ARCH_LAYERSCAPE) += mach-ls1043a.o
  17. +obj-$(CONFIG_ARCH_LAYERSCAPE) += mach-layerscape.o
  18. +
  19. obj-y += devices/
  20. --- /dev/null
  21. +++ b/arch/arm/mach-imx/mach-layerscape.c
  22. @@ -0,0 +1,22 @@
  23. +/*
  24. + * Copyright 2015-2016 Freescale Semiconductor, Inc.
  25. + *
  26. + * This program is free software; you can redistribute it and/or modify
  27. + * it under the terms of the GNU General Public License as published by
  28. + * the Free Software Foundation; either version 2 of the License, or
  29. + * (at your option) any later version.
  30. + */
  31. +
  32. +#include <asm/mach/arch.h>
  33. +
  34. +#include "common.h"
  35. +
  36. +static const char * const layerscape_dt_compat[] __initconst = {
  37. + "fsl,ls1043a",
  38. + "fsl,ls1012a",
  39. + NULL,
  40. +};
  41. +
  42. +DT_MACHINE_START(LAYERSCAPE, "Freescale LAYERSCAPE")
  43. + .dt_compat = layerscape_dt_compat,
  44. +MACHINE_END