diff options
author | Dimitris Michailidis <dm@chelsio.com> | 2010-06-18 10:05:27 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-18 22:08:34 -0700 |
commit | 900a659687aa6349e52f7b1e3f922b77afe89b90 (patch) | |
tree | 5617d9684ec5d826a4c868398f62786081108467 /drivers/net/cxgb4/t4_regs.h | |
parent | bb9c03d8a6893517737b16fdbeb54be3c73b3023 (diff) | |
download | lwn-900a659687aa6349e52f7b1e3f922b77afe89b90.tar.gz lwn-900a659687aa6349e52f7b1e3f922b77afe89b90.zip |
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>
Diffstat (limited to 'drivers/net/cxgb4/t4_regs.h')
-rw-r--r-- | drivers/net/cxgb4/t4_regs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/cxgb4/t4_regs.h b/drivers/net/cxgb4/t4_regs.h index 5ed56483cbc2..8fed46df886c 100644 --- a/drivers/net/cxgb4/t4_regs.h +++ b/drivers/net/cxgb4/t4_regs.h @@ -326,6 +326,9 @@ #define EDC_1_BASE_ADDR 0x7980 +#define CIM_BOOT_CFG 0x7b00 +#define BOOTADDR_MASK 0xffffff00U + #define CIM_PF_MAILBOX_DATA 0x240 #define CIM_PF_MAILBOX_CTRL 0x280 #define MBMSGVALID 0x00000008U |