soc/intel/skylake/vr_config: Get rid of defines
Get rid of defines and hardcode values directly. Just a cosmetic cleanup to make it more readable. Change-Id: I3eec44b38af356c3d87235740c65e2c2f6fc5876 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34935 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
This commit is contained in:
parent
e405c27294
commit
9ef977f595
|
@ -20,17 +20,6 @@
|
||||||
#include <soc/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <soc/vr_config.h>
|
#include <soc/vr_config.h>
|
||||||
|
|
||||||
#define KBLY_ICCMAX_SA VR_CFG_AMP(4.1)
|
|
||||||
#define KBLY_ICCMAX_CORE VR_CFG_AMP(24)
|
|
||||||
#define AMLY_ICCMAX_CORE VR_CFG_AMP(28)
|
|
||||||
#define KBLY_ICCMAX_GTS_GTUS VR_CFG_AMP(24)
|
|
||||||
#define KBLR_ICCMAX_SA_U42 VR_CFG_AMP(6)
|
|
||||||
#define KBLU_ICCMAX_SA_U22 VR_CFG_AMP(4.5)
|
|
||||||
#define KBLR_ICCMAX_CORE_U42 VR_CFG_AMP(64)
|
|
||||||
#define KBLU_ICCMAX_CORE_U22_PREMIUM VR_CFG_AMP(32)
|
|
||||||
#define KBLU_ICCMAX_CORE_U22_BASE VR_CFG_AMP(29)
|
|
||||||
#define KBLUR_ICCMAX_GTS_GTUS VR_CFG_AMP(31)
|
|
||||||
|
|
||||||
enum kbl_sku {
|
enum kbl_sku {
|
||||||
KBL_Y_SKU,
|
KBL_Y_SKU,
|
||||||
KBL_R_SKU,
|
KBL_R_SKU,
|
||||||
|
@ -61,42 +50,42 @@ static const struct {
|
||||||
}sku_icc_max_mapping[] = {
|
}sku_icc_max_mapping[] = {
|
||||||
[KBL_Y_SKU] = {
|
[KBL_Y_SKU] = {
|
||||||
.icc_max = {
|
.icc_max = {
|
||||||
KBLY_ICCMAX_SA,
|
VR_CFG_AMP(4.1),
|
||||||
KBLY_ICCMAX_CORE,
|
VR_CFG_AMP(24),
|
||||||
KBLY_ICCMAX_GTS_GTUS,
|
VR_CFG_AMP(24),
|
||||||
KBLY_ICCMAX_GTS_GTUS
|
VR_CFG_AMP(24),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[KBL_R_SKU] = {
|
[KBL_R_SKU] = {
|
||||||
.icc_max = {
|
.icc_max = {
|
||||||
KBLR_ICCMAX_SA_U42,
|
VR_CFG_AMP(6),
|
||||||
KBLR_ICCMAX_CORE_U42,
|
VR_CFG_AMP(64),
|
||||||
KBLUR_ICCMAX_GTS_GTUS,
|
VR_CFG_AMP(31),
|
||||||
KBLUR_ICCMAX_GTS_GTUS
|
VR_CFG_AMP(31),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[KBL_U_BASE_SKU] = {
|
[KBL_U_BASE_SKU] = {
|
||||||
.icc_max = {
|
.icc_max = {
|
||||||
KBLU_ICCMAX_SA_U22,
|
VR_CFG_AMP(4.5),
|
||||||
KBLU_ICCMAX_CORE_U22_BASE,
|
VR_CFG_AMP(29),
|
||||||
KBLUR_ICCMAX_GTS_GTUS,
|
VR_CFG_AMP(31),
|
||||||
KBLUR_ICCMAX_GTS_GTUS
|
VR_CFG_AMP(31),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[KBL_U_PREMIUM_SKU] = {
|
[KBL_U_PREMIUM_SKU] = {
|
||||||
.icc_max = {
|
.icc_max = {
|
||||||
KBLU_ICCMAX_SA_U22,
|
VR_CFG_AMP(4.5),
|
||||||
KBLU_ICCMAX_CORE_U22_PREMIUM,
|
VR_CFG_AMP(32),
|
||||||
KBLUR_ICCMAX_GTS_GTUS,
|
VR_CFG_AMP(31),
|
||||||
KBLUR_ICCMAX_GTS_GTUS
|
VR_CFG_AMP(31),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[AML_Y_SKU] = {
|
[AML_Y_SKU] = {
|
||||||
.icc_max = {
|
.icc_max = {
|
||||||
KBLY_ICCMAX_SA,
|
VR_CFG_AMP(4.1),
|
||||||
AMLY_ICCMAX_CORE,
|
VR_CFG_AMP(28),
|
||||||
KBLY_ICCMAX_GTS_GTUS,
|
VR_CFG_AMP(24),
|
||||||
KBLY_ICCMAX_GTS_GTUS
|
VR_CFG_AMP(24),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue