arm-nommu.patch 3.3 KB

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