aboutsummaryrefslogtreecommitdiff
path: root/src/soc/mediatek
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2022-09-05 14:51:34 -0600
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-09-08 14:13:12 +0000
commitb6a0b26e88561d20959337d91c6aad1c860951d5 (patch)
tree4b9794bbb22dd98d3f0c21ee048336ca997b96e2 /src/soc/mediatek
parent8baa3712c555052bfef7e38523bf69e852c4eaa5 (diff)
src: De-conflict CALIBRATION_REGION definitions
Change the name of the CALIBRATION_REGION definitions used in two separate locations. This conflict was causing an error for the lint-001-no-global-config-in-romstage test. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: If6734f2a7d9be669586ea350fb9979fcd422b591 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67382 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek')
-rw-r--r--src/soc/mediatek/common/memory.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/mediatek/common/memory.c b/src/soc/mediatek/common/memory.c
index 1771313ac0..f3f784e121 100644
--- a/src/soc/mediatek/common/memory.c
+++ b/src/soc/mediatek/common/memory.c
@@ -15,11 +15,11 @@
#include <timer.h>
/* This must be defined in chromeos.fmd in same name and size. */
-#define CALIBRATION_REGION "RW_MRC_CACHE"
-#define CALIBRATION_REGION_SIZE 0x2000
+#define CAL_REGION_RW_MRC_CACHE "RW_MRC_CACHE"
+#define CAL_REGION_RW_MRC_CACHE_SIZE 0x2000
-_Static_assert(sizeof(struct dramc_param) <= CALIBRATION_REGION_SIZE,
- "sizeof(struct dramc_param) exceeds " CALIBRATION_REGION);
+_Static_assert(sizeof(struct dramc_param) <= CAL_REGION_RW_MRC_CACHE_SIZE,
+ "sizeof(struct dramc_param) exceeds " CAL_REGION_RW_MRC_CACHE);
const char *get_dram_geometry_str(u32 ddr_geometry);
const char *get_dram_type_str(u32 ddr_type);