bcma: extract board_type from SPROM
authorRafał Miłecki <zajec5@gmail.com>
Tue, 19 Mar 2013 12:18:44 +0000 (13:18 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Mar 2013 20:43:40 +0000 (16:43 -0400)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/sprom.c

index 4adf9ef9a113010e2b8f51cabd27e07c57898c83..8934298a638dfdbfb6d2e5e4fa6e43cb65aeac8b 100644 (file)
@@ -217,6 +217,7 @@ static void bcma_sprom_extract_r8(struct bcma_bus *bus, const u16 *sprom)
        }
 
        SPEX(board_rev, SSB_SPROM8_BOARDREV, ~0, 0);
+       SPEX(board_type, SSB_SPROM1_SPID, ~0, 0);
 
        SPEX(txpid2g[0], SSB_SPROM4_TXPID2G01, SSB_SPROM4_TXPID2G0,
             SSB_SPROM4_TXPID2G0_SHIFT);