]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit480e3c00e7d94e806f7bb275efb4aa72e2119ef5
tree5617d9684ec5d826a4c868398f62786081108467
parent63a808a89bba1c4bd378d29f5cecf5aafc84ab27
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