Skip to content

Commit 0f1417f

Browse files
Ganesh Goudardavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Ganesh Goudar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b46f7da commit 0f1417f

File tree

1 file changed

+19
-0
lines changed
  • drivers/net/ethernet/chelsio/cxgb4

1 file changed

+19
-0
lines changed

drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8604,6 +8604,25 @@ static int t4_get_flash_params(struct adapter *adap)
86048604
}
86058605
break;
86068606
}
8607+
case 0x9d: { /* ISSI -- Integrated Silicon Solution, Inc. */
8608+
/* This Density -> Size decoding table is taken from ISSI
8609+
* Data Sheets.
8610+
*/
8611+
density = (flashid >> 16) & 0xff;
8612+
switch (density) {
8613+
case 0x16: /* 32 MB */
8614+
size = 1 << 25;
8615+
break;
8616+
case 0x17: /* 64MB */
8617+
size = 1 << 26;
8618+
break;
8619+
default:
8620+
dev_err(adap->pdev_dev, "ISSI Flash Part has bad size, ID = %#x, Density code = %#x\n",
8621+
flashid, density);
8622+
return -EINVAL;
8623+
}
8624+
break;
8625+
}
86078626
case 0xc2: { /* Macronix */
86088627
/* This Density -> Size decoding table is taken from Macronix
86098628
* Data Sheets.

0 commit comments

Comments
 (0)