文件路径:tina/linux/drivers/mtd/awnand/spinand/physic/id.c
已支持的spi-nand型号有:
GD5F1GQ4UCYIG |
---|
GD5F1GQ4UBYIG |
GD5F2GQ4UB9IG |
F50L1G41LB(2M) |
MT29F1G01ABAGDWB |
XTX26G02A |
XTX26G01A |
FM25S01 |
MX35LF1GE4AB |
W25N01GVZEIG |
DS35X1GAXXX |
FS35ND01G-S1F1QWFI000 |
ZD35Q1GAIB |
struct aw_spinand_phy_info gigadevice[] = {
{
.Model = "GD5F1GQ4UCYIG",
.NandID = {0xc8, 0xb1, 0x48, 0xff, 0xff, 0xff, 0xff, 0xff},
.DieCntPerChip = 1,
.SectCntPerPage = 4,
.PageCntPerBlk = 64,
.BlkCntPerDie = 1024,
.OobSizePerPage = 64,
.OperationOpt = SPINAND_QUAD_READ | SPINAND_QUAD_PROGRAM |
SPINAND_DUAL_READ | SPINAND_ONEDUMMY_AFTER_RANDOMREAD,
.MaxEraseTimes = 50000,
.EccType = BIT3_LIMIT2_TO_6_ERR7,
.EccProtectedType = SIZE16_OFF0_LEN16,
.BadBlockFlag = BAD_BLK_FLAG_FRIST_1_PAGE,
},
},
容量大小=512 * SectCntPerPage * PageCntPerBlk * BlkCntPerDie * DieCntPerChip (Bytes)