audk/EmbeddedPkg/Include/Library
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
..
AcpiLib.h EmbeddedPkg/AcpiLib: add GICC table init macro for ACPI 6.0 2016-07-06 10:51:38 +02:00
AndroidBootImgLib.h EmbeddedPkg/AndroidBoot: boot android kernel from storage 2017-08-20 12:36:34 +01:00
DebugAgentTimerLib.h EmbeddedPkg: Rectify file modes 2016-02-02 11:42:51 +00:00
DmaLib.h EmbeddedPkg/DmaLib: add routine to allocate aligned buffers 2017-08-29 17:54:36 +01:00
DtPlatformDtbLoaderLib.h EmbeddedPkg: add DtPlatformDtbLoaderLib library class 2017-03-31 13:17:55 +01:00
EblAddExternalCommandLib.h ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
EblCmdLib.h EmbeddedPkg: Add EFIAPI to several Ebl functions 2015-10-29 12:59:06 +00:00
EblNetworkLib.h ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
EfiFileLib.h ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
EfiResetSystemLib.h ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
FdtLoadLib.h EmbeddedPkg: Split off FDT loading functionality from FdtLib 2014-09-09 17:59:19 +00:00
GdbSerialLib.h EmbeddedPkg: Fix typos in comments 2016-10-19 16:31:58 +01:00
HalRuntimeServicesLib.h Update the copyright notice format 2010-04-29 12:40:51 +00:00
NorFlashInfoLib.h EmbeddedPkg: Implement NorFlashInfoLib 2017-11-07 15:26:41 +00:00
PrePiHobListPointerLib.h ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
PrePiLib.h ARM Packages: Replace tabs by spaces for indentation 2014-08-26 10:14:17 +00:00
RealTimeClockLib.h ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
TimeBaseLib.h EmbeddedPkg: import EfiTimeBaseLib (as TimeBaseLib) 2017-05-10 14:28:14 +01:00