Skip to content

Commit d3084cc

Browse files
author
Jon Lin
committed
drivers: rkflash: Support F59L2G81KA and F59L4G81KA
Change-Id: I99cbb82fbad9a678ecd66fc3965e6164ddbd9e7d Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
1 parent 1c44a17 commit d3084cc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/rkflash/flash.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ u32 nandc_flash_init(void __iomem *nandc_addr)
446446
id_byte[0][1] != 0x95 &&
447447
id_byte[0][1] != 0xDC &&
448448
id_byte[0][1] != 0xD3 &&
449-
id_byte[0][1] != 0x48)
449+
id_byte[0][1] != 0x48 &&
450+
id_byte[0][1] != 0x6A)
450451
return FTL_UNSUPPORTED_FLASH;
451452
}
452453
}
@@ -462,7 +463,8 @@ u32 nandc_flash_init(void __iomem *nandc_addr)
462463
(id_byte[0][0] == 0xC2 && id_byte[0][3] == 0xA2)) {
463464
nand_para.plane_per_die = 2;
464465
nand_para.sec_per_page = 8;
465-
} else if (id_byte[0][0] == 0x98 && id_byte[0][3] == 0x26) {
466+
} else if ((id_byte[0][0] == 0x98 && id_byte[0][3] == 0x26) ||
467+
(id_byte[0][0] == 0xC8 && ((id_byte[0][3] & 0x3) == 1))) {
466468
nand_para.blk_per_plane = 1024;
467469
nand_para.sec_per_page = 8;
468470
nand_para.plane_per_die = 2;

0 commit comments

Comments
 (0)