mtd: spinand: Support GD5F1GQ5UExxG
Change-Id: I5f494ce09eed8c28bd2cb10bac5ec7d9113bac50 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
parent
446ef41c12
commit
14ce3c6d83
|
|
@ -101,7 +101,7 @@ static int gd5f1gq4xexxg_ecc_get_status(struct spinand_device *spinand,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
static int gd5f2gq4xexxg_ecc_get_status(struct spinand_device *spinand,
|
||||
static int gd5fxgq5xexxg_ecc_get_status(struct spinand_device *spinand,
|
||||
u8 status)
|
||||
{
|
||||
u8 status2;
|
||||
|
|
@ -158,7 +158,16 @@ static const struct spinand_info gigadevice_spinand_table[] = {
|
|||
SPINAND_HAS_QE_BIT,
|
||||
SPINAND_ECCINFO(&gd5fxgq4xexxg_ooblayout,
|
||||
gd5f1gq4xexxg_ecc_get_status)),
|
||||
SPINAND_INFO("GD5F2GQ4UExxG", 0x52,
|
||||
SPINAND_INFO("GD5F1GQ5UExxG", 0x51,
|
||||
NAND_MEMORG(1, 2048, 128, 64, 1024, 1, 1, 1),
|
||||
NAND_ECCREQ(4, 512),
|
||||
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
||||
&write_cache_variants,
|
||||
&update_cache_variants),
|
||||
SPINAND_HAS_QE_BIT,
|
||||
SPINAND_ECCINFO(&gd5fxgq4xexxg_ooblayout,
|
||||
gd5fxgq5xexxg_ecc_get_status)),
|
||||
SPINAND_INFO("GD5F2GQ5UExxG", 0x52,
|
||||
NAND_MEMORG(1, 2048, 128, 64, 2048, 1, 1, 1),
|
||||
NAND_ECCREQ(4, 512),
|
||||
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
||||
|
|
@ -166,7 +175,7 @@ static const struct spinand_info gigadevice_spinand_table[] = {
|
|||
&update_cache_variants),
|
||||
SPINAND_HAS_QE_BIT,
|
||||
SPINAND_ECCINFO(&gd5fxgq4xexxg_ooblayout,
|
||||
gd5f2gq4xexxg_ecc_get_status)),
|
||||
gd5fxgq5xexxg_ecc_get_status)),
|
||||
SPINAND_INFO("GD5F2GQ4UBExxG", 0xd2,
|
||||
NAND_MEMORG(1, 2048, 128, 64, 2048, 1, 1, 1),
|
||||
NAND_ECCREQ(8, 512),
|
||||
|
|
|
|||
Loading…
Reference in New Issue