]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg/NorFlashDxe: Optimise FVB protocol
authorHarry Liebel <Harry.Liebel@arm.com>
Thu, 8 May 2014 14:48:55 +0000 (14:48 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 8 May 2014 14:48:55 +0000 (14:48 +0000)
commit518c243d42731389502431a0fbf14b932f838888
treece814179515ce1f4e253b4492c59e10f7fb8962c
parent0fb7e718a8587cf836266e16b9d091e0cd5a8498
ArmPlatformPkg/NorFlashDxe: Optimise FVB protocol

- Only read what needs reading, don't read the whole block.
- Don't write back buffers containing no data after an erase.
- Reduce number of NOR erases when writing data. Only erase the block
  when required.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15500 6f19259b-4bc3-4df7-8a09-765794883524
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.h
ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c