提交 0f1417f9 编写于 作者: G Ganesh Goudar 提交者: David S. Miller

cxgb4: support new ISSI flash parts

Add support for new 32MB and 64MB ISSI (Integrated Silicon
Solution, Inc.) FLASH parts.
Signed-off-by: NCasey Leedom <leedom@chelsio.com>
Signed-off-by: NGanesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b46f7da1
...@@ -8604,6 +8604,25 @@ static int t4_get_flash_params(struct adapter *adap) ...@@ -8604,6 +8604,25 @@ static int t4_get_flash_params(struct adapter *adap)
} }
break; 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 */ case 0xc2: { /* Macronix */
/* This Density -> Size decoding table is taken from Macronix /* This Density -> Size decoding table is taken from Macronix
* Data Sheets. * Data Sheets.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册