mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 20:11:32 +00:00
cros_ec: Add an enum for the number of flash regions
Add an enum for the number of flash regions so we can keep track of all the possible regions. Reviewed-by: Randall Spangler <rspangler@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
39741c01e6
commit
cecb19c03f
1 changed files with 3 additions and 1 deletions
|
@ -536,7 +536,7 @@ struct ec_response_flash_protect {
|
||||||
|
|
||||||
enum ec_flash_region {
|
enum ec_flash_region {
|
||||||
/* Region which holds read-only EC image */
|
/* Region which holds read-only EC image */
|
||||||
EC_FLASH_REGION_RO,
|
EC_FLASH_REGION_RO = 0,
|
||||||
/* Region which holds rewritable EC image */
|
/* Region which holds rewritable EC image */
|
||||||
EC_FLASH_REGION_RW,
|
EC_FLASH_REGION_RW,
|
||||||
/*
|
/*
|
||||||
|
@ -544,6 +544,8 @@ enum ec_flash_region {
|
||||||
* EC_FLASH_REGION_RO)
|
* EC_FLASH_REGION_RO)
|
||||||
*/
|
*/
|
||||||
EC_FLASH_REGION_WP_RO,
|
EC_FLASH_REGION_WP_RO,
|
||||||
|
/* Number of regions */
|
||||||
|
EC_FLASH_REGION_COUNT,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ec_params_flash_region_info {
|
struct ec_params_flash_region_info {
|
||||||
|
|
Loading…
Add table
Reference in a new issue