octeon: Add MMC support for EdgeRouter ER8
[openwrt/svn-archive/archive.git] / target / linux / octeon / patches-3.18 / 130-MIPS-octeon-add-semaphore-to-serialize-bootbus-access.patch
1 diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c
2 index a42110e..01130e9 100644
3 --- a/arch/mips/cavium-octeon/setup.c
4 +++ b/arch/mips/cavium-octeon/setup.c
5 @@ -51,6 +51,9 @@ extern void pci_console_init(const char *arg);
6
7 static unsigned long long MAX_MEMORY = 512ull << 20;
8
9 +DEFINE_SEMAPHORE(octeon_bootbus_sem);
10 +EXPORT_SYMBOL(octeon_bootbus_sem);
11 +
12 struct octeon_boot_descriptor *octeon_boot_desc_ptr;
13
14 struct cvmx_bootinfo *octeon_bootinfo;
15 diff --git a/arch/mips/include/asm/octeon/octeon.h b/arch/mips/include/asm/octeon/octeon.h
16 index 0415965..de9f74e 100644
17 --- a/arch/mips/include/asm/octeon/octeon.h
18 +++ b/arch/mips/include/asm/octeon/octeon.h
19 @@ -335,4 +335,6 @@ void octeon_irq_set_ip4_handler(octeon_irq_ip4_handler_t);
20
21 extern void octeon_fixup_irqs(void);
22
23 +extern struct semaphore octeon_bootbus_sem;
24 +
25 #endif /* __ASM_OCTEON_OCTEON_H */