diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-01-31 18:13:54 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:53:11 -0500 |
commit | f0d4724b2a663089d21e19933ca591d842b63230 (patch) | |
tree | ae4a9a1e1308146d3009adea169dcd00d385349c /drivers/bcma | |
parent | 267335d63b808dc861f3a4dc81a605489a8a13ac (diff) |
bcma: log the id, rev and pkg of the chip found
This makes us see what type of hardware someone uses by the dmesg
output.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma')
-rw-r--r-- | drivers/bcma/scan.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/bcma/scan.c b/drivers/bcma/scan.c index e513aa83ec25..6621b2221b40 100644 --- a/drivers/bcma/scan.c +++ b/drivers/bcma/scan.c | |||
@@ -364,6 +364,7 @@ static int bcma_get_next_core(struct bcma_bus *bus, u32 __iomem **eromptr, | |||
364 | void bcma_init_bus(struct bcma_bus *bus) | 364 | void bcma_init_bus(struct bcma_bus *bus) |
365 | { | 365 | { |
366 | s32 tmp; | 366 | s32 tmp; |
367 | struct bcma_chipinfo *chipinfo = &(bus->chipinfo); | ||
367 | 368 | ||
368 | if (bus->init_done) | 369 | if (bus->init_done) |
369 | return; | 370 | return; |
@@ -374,9 +375,12 @@ void bcma_init_bus(struct bcma_bus *bus) | |||
374 | bcma_scan_switch_core(bus, BCMA_ADDR_BASE); | 375 | bcma_scan_switch_core(bus, BCMA_ADDR_BASE); |
375 | 376 | ||
376 | tmp = bcma_scan_read32(bus, 0, BCMA_CC_ID); | 377 | tmp = bcma_scan_read32(bus, 0, BCMA_CC_ID); |
377 | bus->chipinfo.id = (tmp & BCMA_CC_ID_ID) >> BCMA_CC_ID_ID_SHIFT; | 378 | chipinfo->id = (tmp & BCMA_CC_ID_ID) >> BCMA_CC_ID_ID_SHIFT; |
378 | bus->chipinfo.rev = (tmp & BCMA_CC_ID_REV) >> BCMA_CC_ID_REV_SHIFT; | 379 | chipinfo->rev = (tmp & BCMA_CC_ID_REV) >> BCMA_CC_ID_REV_SHIFT; |
379 | bus->chipinfo.pkg = (tmp & BCMA_CC_ID_PKG) >> BCMA_CC_ID_PKG_SHIFT; | 380 | chipinfo->pkg = (tmp & BCMA_CC_ID_PKG) >> BCMA_CC_ID_PKG_SHIFT; |
381 | pr_info("Found chip with id 0x%04X, rev 0x%02X and package 0x%02X\n", | ||
382 | chipinfo->id, chipinfo->rev, chipinfo->pkg); | ||
383 | |||
380 | bus->init_done = true; | 384 | bus->init_done = true; |
381 | } | 385 | } |
382 | 386 | ||