audk/EmbeddedPkg
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
..
Application EmbeddedPkg/AndroidBoot: boot android kernel from storage 2017-08-20 12:36:34 +01:00
Drivers Drivers/SataSiI3132Dxe: Allow 64-bit DMA transfer 2017-10-27 13:53:35 +01:00
Ebl EmbeddedPkg/Ebl: eliminate deprecated string function calls 2016-10-28 15:53:59 +01:00
EblExternCmd ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
EmbeddedMonotonicCounter ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
GdbStub EmbeddedPkg: Fix typos in comments 2016-10-19 16:31:58 +01:00
Include EmbeddedPkg: Implement NorFlashInfoLib 2017-11-07 15:26:41 +00:00
Library EmbeddedPkg: Implement NorFlashInfoLib 2017-11-07 15:26:41 +00:00
MetronomeDxe ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
RealTimeClockRuntimeDxe EmbeddedPkg/RTC: use returned status at init-time 2016-03-25 07:09:49 +01:00
ResetRuntimeDxe ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
Scripts/LauterbachT32 EmbeddedPkg: Rectify file modes 2016-02-02 11:42:51 +00:00
SimpleTextInOutSerial ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
TemplateSec ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
Universal/MmcDxe SD : Updated CMD 6 implememtation. 2017-09-07 17:06:44 +01:00
EmbeddedPkg.dec EmbeddedPkg: Implement NorFlashInfoLib 2017-11-07 15:26:41 +00:00
EmbeddedPkg.dsc EmbeddedPkg: implement NonCoherentDmaLib based on ArmDmaLib 2017-08-30 14:13:30 +01:00
EmbeddedPkg.fdf ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00