block: m25p80: Widen flags variable

Extend the width of the flags variable to support the already existing
(but unused) WR_1 flag, which is above the range of 8 bits.
This allows support of EEPROM emulation which requires the WR_1 feature.

Signed-off-by: Marcin Krzeminski <marcin.krzeminski@nokia.com>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Message-id: 1458719789-29868-4-git-send-email-marcin.krzeminski@nokia.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Marcin Krzeminski 2016-03-30 17:27:22 +01:00 committed by Peter Maydell
parent 187c26364c
commit 76e872695a
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ typedef struct FlashPartInfo {
uint32_t sector_size; uint32_t sector_size;
uint32_t n_sectors; uint32_t n_sectors;
uint32_t page_size; uint32_t page_size;
uint8_t flags; uint16_t flags;
} FlashPartInfo; } FlashPartInfo;
/* adapted from linux */ /* adapted from linux */