cxgb4: dynamically determine flash size and FW image location
authorDimitris Michailidis <dm@chelsio.com>
Fri, 18 Jun 2010 10:05:27 +0000 (10:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jun 2010 05:08:34 +0000 (22:08 -0700)
commit900a659687aa6349e52f7b1e3f922b77afe89b90
tree5617d9684ec5d826a4c868398f62786081108467
parentbb9c03d8a6893517737b16fdbeb54be3c73b3023
cxgb4: dynamically determine flash size and FW image location

Handle the larger flash memories on newer boards:

- get the size and number of sectors by probing the flash
- writes and erases can take longer, adjust the timeouts for these operations
- the FW image can be at different locations depending on flash size,
  find its location dynamically as well.

Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/cxgb4.h
drivers/net/cxgb4/t4_hw.c
drivers/net/cxgb4/t4_hw.h
drivers/net/cxgb4/t4_regs.h