summaryrefslogtreecommitdiff
path: root/Silicon
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@semihalf.com>2017-05-18 08:26:48 +0200
committerMarcin Wojtas <mw@semihalf.com>2017-10-05 16:58:06 +0200
commit5d3bc1fdd28bcc300adb1290aae9f5e0f71546e9 (patch)
tree083ae7d8b4188588c4e7bf975c4a9c92f731523b /Silicon
parenta46a211fe350c74b095f3d83781d778912ac1491 (diff)
Marvell/Drivers: MvSpiFlash: Fix usage of erase size parameter
Although, hitherto support allowed for using configurable EraseSize, the erase command was fixed to CMD_ERASE_64K. Also it was assumed that EraseSize equals SectorSize, which is not true for some flash devices. Fix both issues by adding new PCD (gMarvellTokenSpaceGuid.PcdSpiFlashPageSize) and using this parameter properly in MvSpiFlashUpdate routine instead of the EraseSize. Also erase command is adjusted to the settings. Update PortingGuide accordingly. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Silicon')
-rw-r--r--Silicon/Marvell/Documentation/PortingGuide.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Silicon/Marvell/Documentation/PortingGuide.txt b/Silicon/Marvell/Documentation/PortingGuide.txt
index 2be658e..83ebe9d 100644
--- a/Silicon/Marvell/Documentation/PortingGuide.txt
+++ b/Silicon/Marvell/Documentation/PortingGuide.txt
@@ -298,6 +298,9 @@ Folowing PCDs for spi flash driver configuration must be set properly:
- gMarvellTokenSpaceGuid.PcdSpiFlashPageSize
(Size of SPI flash page)
+ - gMarvellTokenSpaceGuid.PcdSpiFlashSectorSize
+ (Size of SPI flash sector, 65536 bytes by default)
+
- gMarvellTokenSpaceGuid.PcdSpiFlashId
(Id of SPI flash)