arm-nommu.patch 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. diff -Nur linux-5.4.155.orig/arch/arm/include/asm/mach/map.h linux-5.4.155/arch/arm/include/asm/mach/map.h
  2. --- linux-5.4.155.orig/arch/arm/include/asm/mach/map.h 2021-10-20 11:40:18.000000000 +0200
  3. +++ linux-5.4.155/arch/arm/include/asm/mach/map.h 2021-10-26 11:20:50.164712192 +0200
  4. @@ -59,6 +59,7 @@
  5. #else
  6. #define iotable_init(map,num) do { } while (0)
  7. #define vm_reserve_area_early(a,s,c) do { } while (0)
  8. +#define debug_ll_io_init() do { } while (0)
  9. #endif
  10. #endif
  11. diff -Nur linux-5.4.155.orig/arch/arm/Kconfig linux-5.4.155/arch/arm/Kconfig
  12. --- linux-5.4.155.orig/arch/arm/Kconfig 2021-10-20 11:40:18.000000000 +0200
  13. +++ linux-5.4.155/arch/arm/Kconfig 2021-10-26 11:20:50.164712192 +0200
  14. @@ -340,6 +340,17 @@
  15. select SPARSE_IRQ
  16. select USE_OF
  17. +config ARM_SINGLE_ARCH_VERSATILE
  18. + bool "ARM Ltd. Versatile family"
  19. + depends on !MMU
  20. + select AUTO_ZRELADDR
  21. + select CLKSRC_OF
  22. + select COMMON_CLK
  23. + select GENERIC_CLOCKEVENTS
  24. + select GPIOLIB
  25. + select SPARSE_IRQ
  26. + select USE_OF
  27. +
  28. config ARCH_EBSA110
  29. bool "EBSA-110"
  30. select ARCH_USES_GETTIMEOFFSET
  31. diff -Nur linux-5.4.155.orig/arch/arm/Kconfig.debug linux-5.4.155/arch/arm/Kconfig.debug
  32. --- linux-5.4.155.orig/arch/arm/Kconfig.debug 2021-10-20 11:40:18.000000000 +0200
  33. +++ linux-5.4.155/arch/arm/Kconfig.debug 2021-10-26 11:20:50.168712192 +0200
  34. @@ -1878,7 +1878,8 @@
  35. config UNCOMPRESS_INCLUDE
  36. string
  37. default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM || \
  38. - PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
  39. + PLAT_SAMSUNG || ARM_SINGLE_ARMV7M || \
  40. + ARM_SINGLE_ARCH_VERSATILE
  41. default "mach/uncompress.h"
  42. config EARLY_PRINTK
  43. diff -Nur linux-5.4.155.orig/arch/arm/mach-versatile/Kconfig linux-5.4.155/arch/arm/mach-versatile/Kconfig
  44. --- linux-5.4.155.orig/arch/arm/mach-versatile/Kconfig 2021-10-20 11:40:18.000000000 +0200
  45. +++ linux-5.4.155/arch/arm/mach-versatile/Kconfig 2021-10-26 11:20:50.168712192 +0200
  46. @@ -1,7 +1,8 @@
  47. # SPDX-License-Identifier: GPL-2.0
  48. config ARCH_VERSATILE
  49. - bool "ARM Ltd. Versatile family"
  50. - depends on ARCH_MULTI_V5
  51. + bool "ARM Ltd. Versatile family" if ARCH_MULTI_V5
  52. + depends on ARCH_MULTI_V5 || ARM_SINGLE_ARCH_VERSATILE
  53. + default y if ARM_SINGLE_ARCH_VERSATILE
  54. select ARM_AMBA
  55. select ARM_TIMER_SP804
  56. select ARM_VIC
  57. diff -Nur linux-5.4.155.orig/arch/arm/mach-versatile/Makefile.boot linux-5.4.155/arch/arm/mach-versatile/Makefile.boot
  58. --- linux-5.4.155.orig/arch/arm/mach-versatile/Makefile.boot 1970-01-01 01:00:00.000000000 +0100
  59. +++ linux-5.4.155/arch/arm/mach-versatile/Makefile.boot 2021-10-26 11:20:50.168712192 +0200
  60. @@ -0,0 +1,3 @@
  61. +# Empty file waiting for deletion once Makefile.boot isn't needed any more.
  62. +# Patch waits for application at
  63. +# http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7889/1 .
  64. diff -Nur linux-5.4.155.orig/arch/arm/mach-versatile/versatile_dt.c linux-5.4.155/arch/arm/mach-versatile/versatile_dt.c
  65. --- linux-5.4.155.orig/arch/arm/mach-versatile/versatile_dt.c 2021-10-20 11:40:18.000000000 +0200
  66. +++ linux-5.4.155/arch/arm/mach-versatile/versatile_dt.c 2021-10-26 11:20:50.168712192 +0200
  67. @@ -22,7 +22,11 @@
  68. #include <asm/mach/map.h>
  69. /* macro to get at MMIO space when running virtually */
  70. +#ifdef CONFIG_MMU
  71. #define IO_ADDRESS(x) (((x) & 0x0fffffff) + (((x) >> 4) & 0x0f000000) + 0xf0000000)
  72. +#else
  73. +#define IO_ADDRESS(x) (x)
  74. +#endif
  75. #define __io_address(n) ((void __iomem __force *)IO_ADDRESS(n))
  76. /*