From ae5e636b9664356a676e29d1728e2ffb13488f41 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sun, 28 Mar 2021 14:52:38 +0200 Subject: nb/intel/sandybridge: Rename `pdwm_mode` enum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `pdwm` part was supposed to be an abbreviation of `power down`, but it is neither self-explanatory nor properly-spelled. Rename the enum. Change-Id: I7b83c71d4534b62e18ced04eebe6a65089e1d874 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/51901 Tested-by: build bot (Jenkins) Reviewed-by: Michael Niewöhner --- src/northbridge/intel/sandybridge/raminit_common.c | 4 ++-- src/northbridge/intel/sandybridge/raminit_common.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/northbridge/intel/sandybridge') diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c index 687386d0f7..72621e3cab 100644 --- a/src/northbridge/intel/sandybridge/raminit_common.c +++ b/src/northbridge/intel/sandybridge/raminit_common.c @@ -684,7 +684,7 @@ static void write_mrreg(ramctr_timing *ctrl, int channel, int slotrank, int reg, } /* Obtain optimal power down mode for current configuration */ -static enum pdwm_mode get_power_down_mode(ramctr_timing *ctrl) +static enum power_down_mode get_power_down_mode(ramctr_timing *ctrl) { if (ctrl->tXP > 8) return PDM_NONE; @@ -703,7 +703,7 @@ static u32 make_mr0(ramctr_timing *ctrl, u8 rank) u16 mr0reg, mch_cas, mch_wr; static const u8 mch_wr_t[12] = { 1, 2, 3, 4, 0, 5, 0, 6, 0, 7, 0, 0 }; - const enum pdwm_mode power_down = get_power_down_mode(ctrl); + const enum power_down_mode power_down = get_power_down_mode(ctrl); const bool slow_exit = power_down == PDM_DLL_OFF || power_down == PDM_APD_DLL_OFF; diff --git a/src/northbridge/intel/sandybridge/raminit_common.h b/src/northbridge/intel/sandybridge/raminit_common.h index 1622259b66..c24b3a0ce6 100644 --- a/src/northbridge/intel/sandybridge/raminit_common.h +++ b/src/northbridge/intel/sandybridge/raminit_common.h @@ -306,7 +306,7 @@ void iosav_write_memory_test_sequence(ramctr_timing *ctrl, int channel, int slot */ #define MRC_CACHE_VERSION 5 -enum pdwm_mode { +enum power_down_mode { PDM_NONE = 0, PDM_APD = 1, PDM_PPD = 2, -- cgit v1.2.3