summaryrefslogtreecommitdiff
path: root/chip/g/flash_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/flash_config.h')
-rw-r--r--chip/g/flash_config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/g/flash_config.h b/chip/g/flash_config.h
index 09ddd872d5..d1bec36871 100644
--- a/chip/g/flash_config.h
+++ b/chip/g/flash_config.h
@@ -15,9 +15,9 @@
#define FLASH_INFO_MANUFACTURE_STATE_SIZE 0x200
-#define FLASH_REGION_EN_ALL ((1 << GC_GLOBALSEC_FLASH_REGION0_CTRL_EN_LSB) |\
- (1 << GC_GLOBALSEC_FLASH_REGION0_CTRL_RD_EN_LSB) |\
- (1 << GC_GLOBALSEC_FLASH_REGION0_CTRL_WR_EN_LSB))
+#define FLASH_REGION_EN_ALL (BIT(GC_GLOBALSEC_FLASH_REGION0_CTRL_EN_LSB) |\
+ BIT(GC_GLOBALSEC_FLASH_REGION0_CTRL_RD_EN_LSB) |\
+ BIT(GC_GLOBALSEC_FLASH_REGION0_CTRL_WR_EN_LSB))
/*
* The below structure describes a single flash region (the hardware supports