audk/EmbeddedPkg/Include
Marcin Wojtas 7046610163 EmbeddedPkg: Implement NorFlashInfoLib
The SPI NOR flash drivers which base on ArmPlatformPkg's
NorFlashDxe usually make use of static declarations of the
flash instances with their type and parameters. As a result
it implies hardcoding the exact way of flash handling, not to
mention the code does not look very nice. Much better solution
would be obtaining the flash ID and hence its description
in runtime.

JEDEC compliant SPI NOR devices allow to obtain their IDs with
READ_ID command (0x9f), which should return the vendor ID byte,
followed by 2 to 4 following device ID bytes. Use this capability
for implementing a NorFlashInfoLib that gives an access to the
NOR flash description data, such as name, page size, sector
(block) size and others, of more than 50 different models.
The new library user should pass an output array from issuing
READ_ID command to the NorFlashGetInfo () routine - if the
match is found, an allocated (optionally for RT) pool with
the flash description copy will be returned.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-11-07 15:26:41 +00:00
..
Guid EmbeddedPkg: add driver to set graphical/serial console preference 2017-10-23 12:14:00 +01:00
Library EmbeddedPkg: Implement NorFlashInfoLib 2017-11-07 15:26:41 +00:00
Ppi EmbeddedPkg: introduce GPIO PPI 2017-11-05 16:18:49 +00:00
Protocol EmbeddedPkg: Introduce HardwareInterrupt2 protocol 2017-10-05 21:23:34 +01:00
fdt.h EmbeddedPkg/FdtLib: Updated libfdt to 1.4.0 2014-02-12 15:11:29 +00:00
libfdt.h EmbeddedPkg/FdtLib: Updated libfdt to 1.4.0 2014-02-12 15:11:29 +00:00
libfdt_env.h EmbeddedPkg: Split off FDT loading functionality from FdtLib 2014-09-09 17:59:19 +00:00