aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/octeon/patches-3.18/130-MIPS-octeon-add-semaphore-to-serialize-bootbus-access.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-03-20 08:49:02 +0000
committerJohn Crispin <blogic@openwrt.org>2015-03-20 08:49:02 +0000
commit22417246f0c33ed065319f552a54b55c2f954481 (patch)
tree0fe97b6204ff59202ae90ca6d83781598466639b /target/linux/octeon/patches-3.18/130-MIPS-octeon-add-semaphore-to-serialize-bootbus-access.patch
parent99ffd705f0dd9f5015f8592ec5e9e4e8a2c3c20f (diff)
downloadmaster-187ad058-22417246f0c33ed065319f552a54b55c2f954481.tar.gz
master-187ad058-22417246f0c33ed065319f552a54b55c2f954481.tar.bz2
master-187ad058-22417246f0c33ed065319f552a54b55c2f954481.zip
octeon: Add MMC support for EdgeRouter ER8
this is a backport of a series posted on the lmo mailing list Signed-off-by: Jonathan Thibault <jonathan@navigue.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44901 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/octeon/patches-3.18/130-MIPS-octeon-add-semaphore-to-serialize-bootbus-access.patch')
-rw-r--r--target/linux/octeon/patches-3.18/130-MIPS-octeon-add-semaphore-to-serialize-bootbus-access.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/octeon/patches-3.18/130-MIPS-octeon-add-semaphore-to-serialize-bootbus-access.patch b/target/linux/octeon/patches-3.18/130-MIPS-octeon-add-semaphore-to-serialize-bootbus-access.patch
new file mode 100644
index 0000000000..6650c5b75d
--- /dev/null
+++ b/target/linux/octeon/patches-3.18/130-MIPS-octeon-add-semaphore-to-serialize-bootbus-access.patch
@@ -0,0 +1,25 @@
+diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c
+index a42110e..01130e9 100644
+--- a/arch/mips/cavium-octeon/setup.c
++++ b/arch/mips/cavium-octeon/setup.c
+@@ -51,6 +51,9 @@ extern void pci_console_init(const char *arg);
+
+ static unsigned long long MAX_MEMORY = 512ull << 20;
+
++DEFINE_SEMAPHORE(octeon_bootbus_sem);
++EXPORT_SYMBOL(octeon_bootbus_sem);
++
+ struct octeon_boot_descriptor *octeon_boot_desc_ptr;
+
+ struct cvmx_bootinfo *octeon_bootinfo;
+diff --git a/arch/mips/include/asm/octeon/octeon.h b/arch/mips/include/asm/octeon/octeon.h
+index 0415965..de9f74e 100644
+--- a/arch/mips/include/asm/octeon/octeon.h
++++ b/arch/mips/include/asm/octeon/octeon.h
+@@ -335,4 +335,6 @@ void octeon_irq_set_ip4_handler(octeon_irq_ip4_handler_t);
+
+ extern void octeon_fixup_irqs(void);
+
++extern struct semaphore octeon_bootbus_sem;
++
+ #endif /* __ASM_OCTEON_OCTEON_H */