summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-09-24 21:18:21 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-09-24 21:18:21 +0200
commit2a8c74815479fd1b3064ac6e3efb7e8c62192bbf (patch)
tree0653f2074e58a5cafab3c4ba5b535aca4b1a7c50 /target
parent3e43622856850d8c412e63897f9a9b74ea6e1606 (diff)
parent3064f02816dfac549b6d8f6f8c47a48d5a78fa55 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'target')
-rw-r--r--target/linux/patches/3.9.11/arm-spitz.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/patches/3.9.11/arm-spitz.patch b/target/linux/patches/3.9.11/arm-spitz.patch
new file mode 100644
index 000000000..aea848244
--- /dev/null
+++ b/target/linux/patches/3.9.11/arm-spitz.patch
@@ -0,0 +1,27 @@
+http://lists.infradead.org/pipermail/linux-arm-kernel/2013-September/198444.html
+
+diff -Nur linux-3.9.11.orig/arch/arm/common/sharpsl_param.c linux-3.9.11/arch/arm/common/sharpsl_param.c
+--- linux-3.9.11.orig/arch/arm/common/sharpsl_param.c 2013-07-21 02:16:17.000000000 +0200
++++ linux-3.9.11/arch/arm/common/sharpsl_param.c 2013-09-18 16:27:10.000000000 +0200
+@@ -26,6 +26,7 @@
+ #ifdef CONFIG_ARCH_SA1100
+ #define PARAM_BASE 0xe8ffc000
+ #else
++#include <asm/memory.h>
+ #define PARAM_BASE 0xa0000a00
+ #endif
+ #define MAGIC_CHG(a,b,c,d) ( ( d << 24 ) | ( c << 16 ) | ( b << 8 ) | a )
+@@ -41,7 +42,12 @@
+
+ void sharpsl_save_param(void)
+ {
+- memcpy(&sharpsl_param, (void *)PARAM_BASE, sizeof(struct sharpsl_param_info));
++#ifdef CONFIG_ARCH_SA1100
++ void *param_start = (void *)PARAM_BASE;
++#else
++ void *param_start = phys_to_virt(PARAM_BASE);
++#endif
++ memcpy(&sharpsl_param, param_start, sizeof(struct sharpsl_param_info));
+
+ if (sharpsl_param.comadj_keyword != COMADJ_MAGIC)
+ sharpsl_param.comadj=-1;