diff options
author | Jonas Gorski <jogo@openwrt.org> | 2014-06-21 19:23:38 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2014-06-21 19:23:38 +0000 |
commit | 43cc8c3ebec4658963d44a6108f8f74e8ccdbb54 (patch) | |
tree | 5e1eda807e353fc17f5fa4da15611b58d7524833 /target/linux/brcm63xx/patches-3.14/501-board-NB4.patch | |
parent | 21d65bb185225a3a5369756fc44acbbbfbc2f651 (diff) | |
download | upstream-43cc8c3ebec4658963d44a6108f8f74e8ccdbb54.tar.gz upstream-43cc8c3ebec4658963d44a6108f8f74e8ccdbb54.tar.bz2 upstream-43cc8c3ebec4658963d44a6108f8f74e8ccdbb54.zip |
brcm63xx: allow bcm963xx and livebox support at the same time
Use the CFE_EPTSEAL to tell them apart at runtime. Added for now only
for the 3.14 until properly tested.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41296
Diffstat (limited to 'target/linux/brcm63xx/patches-3.14/501-board-NB4.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.14/501-board-NB4.patch | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/target/linux/brcm63xx/patches-3.14/501-board-NB4.patch b/target/linux/brcm63xx/patches-3.14/501-board-NB4.patch index 3a7fee1e81..ca32c79c9f 100644 --- a/target/linux/brcm63xx/patches-3.14/501-board-NB4.patch +++ b/target/linux/brcm63xx/patches-3.14/501-board-NB4.patch @@ -1,9 +1,11 @@ --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c -@@ -15,6 +15,10 @@ +@@ -12,6 +12,12 @@ + #include <linux/string.h> #include <linux/gpio_keys.h> #include <linux/input.h> - #include <linux/spi/spi.h> ++#include <linux/platform_device.h> ++#include <linux/spi/spi.h> +#include <linux/spi/spi_gpio.h> +#if 0 /* FIXME: 3.14 removed non-DT support */ +#include <linux/spi/74x164.h> @@ -11,7 +13,7 @@ #include <asm/addrspace.h> #include <bcm63xx_board.h> #include <bcm63xx_cpu.h> -@@ -49,6 +53,12 @@ +@@ -343,6 +349,12 @@ static struct board_info __initdata boar #define CFE_OFFSET_64K 0x10000 #define CFE_OFFSET_128K 0x20000 @@ -21,10 +23,10 @@ +#define NB4_SPI_GPIO_CLK 6 +#define NB4_74HC64_GPIO(X) (NB4_74X164_GPIO_BASE + (X)) + - static struct board_info board; - /* -@@ -755,6 +765,605 @@ static struct board_info __initdata boar + .has_ohci0 = 1, + .has_pccard = 1, +@@ -739,6 +751,605 @@ static struct board_info __initdata boar .has_ohci0 = 1, }; @@ -630,7 +632,7 @@ #endif /* -@@ -791,6 +1400,11 @@ static const struct board_info __initcon +@@ -775,6 +1386,11 @@ static const struct board_info __initcon &board_96358vw2, &board_AGPFS0, &board_DWVS0, @@ -642,7 +644,7 @@ #endif }; -@@ -845,6 +1459,16 @@ static void __init boardid_fixup(u8 *boo +@@ -783,6 +1399,16 @@ static void __init boardid_fixup(u8 *boo struct bcm_tag *tag = (struct bcm_tag *)(boot_addr + CFE_OFFSET_64K); char *board_name = (char *)bcm63xx_nvram_get_name(); |