mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
m25p80: Add basic support for the SFDP command
JEDEC STANDARD JESD216 for Serial Flash Discovery Parameters (SFDP) provides a mean to describe the features of a serial flash device using a set of internal parameter tables. This is the initial framework for the RDSFDP command giving access to a private SFDP area under the flash. This area now needs to be populated with the flash device characteristics, using a new 'sfdp_read' handler under FlashPartInfo. Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com> Message-Id: <20220722063602.128144-2-clg@kaod.org> Message-Id: <20221013161241.2805140-2-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
104bdaffd7
commit
2389bcc259
4 changed files with 47 additions and 1 deletions
18
hw/block/m25p80_sfdp.h
Normal file
18
hw/block/m25p80_sfdp.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* 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)
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue