Add the SFDP data table for Winbond W25Q02JVM flash device. The table
was generated under Linux kernel by dumping the SFDP content using
the following command:
```
hexdump -v -e '8/1 "0x%02x, " "\n"' \
/sys/bus/spi/devices/spi0.0/spi-nor/sfdp
```
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20251112030553.291734-3-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
35 lines
885 B
C
35 lines
885 B
C
/*
|
|
* M25P80 SFDP
|
|
*
|
|
* Copyright (c) 2020, IBM Corporation.
|
|
*
|
|
* This code is licensed under the GPL version 2 or later. See the
|
|
* COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef HW_M25P80_SFDP_H
|
|
#define HW_M25P80_SFDP_H
|
|
|
|
/*
|
|
* SFDP area has a 3 bytes address space.
|
|
*/
|
|
#define M25P80_SFDP_MAX_SIZE (1 << 24)
|
|
|
|
uint8_t m25p80_sfdp_n25q256a(uint32_t addr);
|
|
uint8_t m25p80_sfdp_mt35xu01g(uint32_t addr);
|
|
uint8_t m25p80_sfdp_mt35xu02g(uint32_t addr);
|
|
|
|
uint8_t m25p80_sfdp_mx25l25635e(uint32_t addr);
|
|
uint8_t m25p80_sfdp_mx25l25635f(uint32_t addr);
|
|
uint8_t m25p80_sfdp_mx66l1g45g(uint32_t addr);
|
|
|
|
uint8_t m25p80_sfdp_w25q256(uint32_t addr);
|
|
uint8_t m25p80_sfdp_w25q512jv(uint32_t addr);
|
|
uint8_t m25p80_sfdp_w25q80bl(uint32_t addr);
|
|
uint8_t m25p80_sfdp_w25q01jvq(uint32_t addr);
|
|
uint8_t m25p80_sfdp_w25q02jvm(uint32_t addr);
|
|
|
|
uint8_t m25p80_sfdp_is25wp256(uint32_t addr);
|
|
|
|
#endif
|