[LEDE-DEV] [PATCH 4/4] brcm63xx: CPVA642+: add SPROM wifi

Daniel Gonzalez Cabanelas dgcbueu at gmail.com
Tue Feb 14 07:37:18 PST 2017


Add SPROM wifi to the kernel board data.

After this fix, the wifi won't work anyway due the lack
of RAM memory (16 MB). It will throw a kernel panic
when loading the b43 drivers.

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu at gmail.com>
diff --git a/target/linux/brcm63xx/patches-4.4/519_board_CPVA502plus.patch b/target/linux/brcm63xx/patches-4.4/519_board_CPVA502plus.patch
index a2cdfa9..51222f9 100644
--- a/target/linux/brcm63xx/patches-4.4/519_board_CPVA502plus.patch
+++ b/target/linux/brcm63xx/patches-4.4/519_board_CPVA502plus.patch
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -429,6 +429,27 @@ static struct board_info __initdata boar
+@@ -429,6 +429,34 @@ static struct board_info __initdata boar
  	},
  };
  
@@ -12,6 +12,7 @@
 +	.has_enet0			= 1,
 +	.has_enet1			= 1,
 +	.has_pci			= 1,
++	.use_fallback_sprom		= 1,
 +
 +	.enet0 = {
 +		.has_phy		= 1,
@@ -24,6 +25,12 @@
 +
 +	.ephy_reset_gpio		= 4,
 +	.ephy_reset_gpio_flags		= GPIO_ACTIVE_LOW,
++
++	.fallback_sprom = {
++		.type 				= SPROM_BCM4318,
++		.pci_bus			= 0,
++		.pci_dev			= 1,
++	},
 +};
  
  static struct board_info __initdata board_ct536_ct5621 = {




More information about the Lede-dev mailing list