arm-spitz.patch 1009 B

123456789101112131415161718192021222324252627
  1. http://lists.infradead.org/pipermail/linux-arm-kernel/2013-September/198444.html
  2. diff -Nur linux-3.9.11.orig/arch/arm/common/sharpsl_param.c linux-3.9.11/arch/arm/common/sharpsl_param.c
  3. --- linux-3.9.11.orig/arch/arm/common/sharpsl_param.c 2013-07-21 02:16:17.000000000 +0200
  4. +++ linux-3.9.11/arch/arm/common/sharpsl_param.c 2013-09-18 16:27:10.000000000 +0200
  5. @@ -26,6 +26,7 @@
  6. #ifdef CONFIG_ARCH_SA1100
  7. #define PARAM_BASE 0xe8ffc000
  8. #else
  9. +#include <asm/memory.h>
  10. #define PARAM_BASE 0xa0000a00
  11. #endif
  12. #define MAGIC_CHG(a,b,c,d) ( ( d << 24 ) | ( c << 16 ) | ( b << 8 ) | a )
  13. @@ -41,7 +42,12 @@
  14. void sharpsl_save_param(void)
  15. {
  16. - memcpy(&sharpsl_param, (void *)PARAM_BASE, sizeof(struct sharpsl_param_info));
  17. +#ifdef CONFIG_ARCH_SA1100
  18. + void *param_start = (void *)PARAM_BASE;
  19. +#else
  20. + void *param_start = phys_to_virt(PARAM_BASE);
  21. +#endif
  22. + memcpy(&sharpsl_param, param_start, sizeof(struct sharpsl_param_info));
  23. if (sharpsl_param.comadj_keyword != COMADJ_MAGIC)
  24. sharpsl_param.comadj=-1;