diff options
author | Ganesh Goudar <ganeshgr@chelsio.com> | 2018-03-23 17:05:49 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-25 21:08:32 -0400 |
commit | 0f1417f9f0ed3f367502011b187a293cea0e2435 (patch) | |
tree | 5bd9e981b362bf0b22bffd2a71733a84a106c38b /drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | |
parent | b46f7da1f360b755c9e20118a54b8dde9c4d8b5c (diff) | |
download | linux-stable-0f1417f9f0ed3f367502011b187a293cea0e2435.tar.gz linux-stable-0f1417f9f0ed3f367502011b187a293cea0e2435.tar.bz2 linux-stable-0f1417f9f0ed3f367502011b187a293cea0e2435.zip |
cxgb4: support new ISSI flash parts
Add support for new 32MB and 64MB ISSI (Integrated Silicon
Solution, Inc.) FLASH parts.
Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/t4_hw.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index b862477f00a7..7cb3ef466cc7 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c @@ -8604,6 +8604,25 @@ static int t4_get_flash_params(struct adapter *adap) } break; } + case 0x9d: { /* ISSI -- Integrated Silicon Solution, Inc. */ + /* This Density -> Size decoding table is taken from ISSI + * Data Sheets. + */ + density = (flashid >> 16) & 0xff; + switch (density) { + case 0x16: /* 32 MB */ + size = 1 << 25; + break; + case 0x17: /* 64MB */ + size = 1 << 26; + break; + default: + dev_err(adap->pdev_dev, "ISSI Flash Part has bad size, ID = %#x, Density code = %#x\n", + flashid, density); + return -EINVAL; + } + break; + } case 0xc2: { /* Macronix */ /* This Density -> Size decoding table is taken from Macronix * Data Sheets. |