Skip to content

Commit f8d69a5

Browse files
author
Jon Lin
committed
drivers: rkflash: Support new spinor
1.Support XT25F256BSFIGU, P25Q32SH-SSH-IT 2.Fix PUYA devices property Change-Id: Iaea56cf6b0d8cfc10e49c7c2847d862fa7a1d75b Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
1 parent caa7882 commit f8d69a5

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

drivers/rkflash/sfc_nor.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ static struct flash_info spi_flash_tbl[] = {
6868
{ 0x0b4017, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0D, 14, 9, 0 },
6969
/* XT25F128BSSIGU */
7070
{ 0x0b4018, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0D, 15, 9, 0 },
71+
/* XT25F256BSFIGU */
72+
{ 0x0b4019, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0C, 16, 9, 0 },
7173

7274
/* EN25QH64A */
7375
{ 0x1c7017, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0C, 14, 0, 0 },
@@ -90,9 +92,13 @@ static struct flash_info spi_flash_tbl[] = {
9092
{ 0x5e5018, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0C, 15, 9, 0 },
9193

9294
/* BH25Q128AS */
93-
{ 0x684018, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x04, 15, 9, 0 },
95+
{ 0x684018, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0C, 15, 9, 0 },
9496
/* BH25Q64BS */
95-
{ 0x684017, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x04, 14, 9, 0 },
97+
{ 0x684017, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0C, 14, 9, 0 },
98+
/* P25Q64H */
99+
{ 0x856017, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0C, 14, 9, 0 },
100+
/* P25Q32SH-SSH-IT */
101+
{ 0x856016, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0C, 13, 9, 0 },
96102

97103
/* FM25Q128A */
98104
{ 0xA14018, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0C, 15, 9, 0 },
@@ -101,8 +107,6 @@ static struct flash_info spi_flash_tbl[] = {
101107

102108
/* FM25Q64A */
103109
{ 0xf83217, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0D, 14, 9, 0 },
104-
/* P25Q64H */
105-
{ 0x856017, 128, 8, 0x03, 0x02, 0x6B, 0x32, 0x20, 0xD8, 0x0C, 14, 9, 0 },
106110
};
107111

108112
static int snor_write_en(void)

0 commit comments

Comments
 (0)