X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm63xx%2Fpatches-3.10%2F413-BCM63XX-allow-providing-fixup-data-in-board-data.patch;h=4a3a4e9f43ef86663a48ce373b5e4b7a5521591e;hb=d0ad8c00b6cc0716feae5d12c2ae5b4717c4ac29;hp=ceab4018c5f70ab2f3d97624bf3b063882f3b8ab;hpb=0650ce9ec4e7d72cfaee513988b4d1d15142b4a1;p=oweals%2Fopenwrt.git diff --git a/target/linux/brcm63xx/patches-3.10/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch b/target/linux/brcm63xx/patches-3.10/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch index ceab4018c5..4a3a4e9f43 100644 --- a/target/linux/brcm63xx/patches-3.10/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch +++ b/target/linux/brcm63xx/patches-3.10/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch @@ -8,35 +8,35 @@ Subject: [PATCH 58/72] BCM63XX: allow providing fixup data in board data arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h | 10 ++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) ---- a/arch/mips/bcm63xx/boards/board_bcm963xx.c -+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c +--- a/arch/mips/bcm63xx/boards/board_common.c ++++ b/arch/mips/bcm63xx/boards/board_common.c @@ -33,6 +33,7 @@ #include #include #include +#include - #include - #include -@@ -967,6 +968,7 @@ int __init board_register_devices(void) - { + #include "board_common.h" + +@@ -197,6 +198,7 @@ int __init board_register_devices(void) int button_count = 0; int led_count = 0; + int usbh_ports = 0; + int i; if (board.has_uart0) bcm63xx_uart_register(0); -@@ -1005,7 +1007,8 @@ int __init board_register_devices(void) +@@ -242,7 +244,8 @@ int __init board_register_devices(void) * do this after registering enet devices */ #ifdef CONFIG_SSB_PCIHOST -- if (!bcm63xx_nvram_get_mac_address(bcm63xx_sprom.il0mac)) { +- if (!board_get_mac_address(bcm63xx_sprom.il0mac)) { + if (!board.has_caldata && -+ !bcm63xx_nvram_get_mac_address(bcm63xx_sprom.il0mac)) { ++ !board_get_mac_address(bcm63xx_sprom.il0mac)) { memcpy(bcm63xx_sprom.et0mac, bcm63xx_sprom.il0mac, ETH_ALEN); memcpy(bcm63xx_sprom.et1mac, bcm63xx_sprom.il0mac, ETH_ALEN); if (ssb_arch_register_fallback_sprom( -@@ -1052,5 +1055,9 @@ int __init board_register_devices(void) +@@ -289,5 +292,9 @@ int __init board_register_devices(void) platform_device_register(&bcm63xx_gpio_keys_device); }