From f5205a3c81df7a06ddd109642d948092bd36d322 Mon Sep 17 00:00:00 2001 From: Lijian Zhao Date: Mon, 12 Mar 2018 12:13:15 -0700 Subject: soc/intel/cannonlake: Add SaGv value definition SaGv(Sytem Agent Dynamic Frequency) have four settings, disabled, disabled but running at fixed lower frequency, disabled but running at fixed middle frquency, disabled but running at fixed high frequency and totally enabled. BUG=None. Change-Id: Ib5fb648179e7889aaa64d91e6cf7a7a7503f4225 Signed-off-by: Lijian Zhao Reviewed-on: https://review.coreboot.org/25116 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/cannonlake/chip.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/soc/intel/cannonlake/chip.h b/src/soc/intel/cannonlake/chip.h index 5e70fae26f..90956c308a 100644 --- a/src/soc/intel/cannonlake/chip.h +++ b/src/soc/intel/cannonlake/chip.h @@ -106,7 +106,14 @@ struct soc_intel_cannonlake_config { /* System Agent dynamic frequency support. Only effects ULX/ULT CPUs. * When enabled memory will be training at two different frequencies. * 0:Disabled, 1:FixedLow, 2:FixedMid, 3:FixedHigh, 4:Enabled */ - uint8_t SaGv; + enum { + SaGv_Disabled, + SaGv_FixedLow, + SaGv_FixedMid, + SaGv_FixedHigh, + SaGv_Enabled, + } SaGv; + /* Rank Margin Tool. 1:Enable, 0:Disable */ uint8_t RMT; -- cgit v1.2.3