mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
brcm63xx: allow HSSPI registration on 6318
A missing condition check in dev-hsspi.c prevented the controller from being registered on 6318 where it is fully functional. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39278 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -590,3 +590,14 @@ Subject: [PATCH 51/53] MIPS: BCM63XX: add support for BCM6318
|
||||
case BCM6328_CPU_ID:
|
||||
case BCM6362_CPU_ID:
|
||||
case BCM6368_CPU_ID:
|
||||
--- a/arch/mips/bcm63xx/dev-hsspi.c
|
||||
+++ b/arch/mips/bcm63xx/dev-hsspi.c
|
||||
@@ -35,7 +35,7 @@ static struct platform_device bcm63xx_hs
|
||||
|
||||
int __init bcm63xx_hsspi_register(void)
|
||||
{
|
||||
- if (!BCMCPU_IS_6328() && !BCMCPU_IS_6362())
|
||||
+ if (!BCMCPU_IS_6318() && !BCMCPU_IS_6328() && !BCMCPU_IS_6362())
|
||||
return -ENODEV;
|
||||
|
||||
spi_resources[0].start = bcm63xx_regset_address(RSET_HSSPI);
|
||||
|
||||
Reference in New Issue
Block a user