diff --git a/src/mainboard/google/fatcat/variants/baseboard/fatcat/ramstage.c b/src/mainboard/google/fatcat/variants/baseboard/fatcat/ramstage.c index 84111619ad..f83d9bdd48 100644 --- a/src/mainboard/google/fatcat/variants/baseboard/fatcat/ramstage.c +++ b/src/mainboard/google/fatcat/variants/baseboard/fatcat/ramstage.c @@ -7,66 +7,86 @@ * SKU_ID, TDP (Watts), pl1_min (milliWatts), pl1_max (milliWatts), * pl2_min (milliWatts), pl2_max (milliWatts), pl4 (milliWatts) */ +/* Define a macro for the common power limit values for PTL_H */ +#define COMMON_PTL_H_POWER_LIMITS \ + .pl1_min_power = 10000, \ + .pl1_max_power = 25000, \ + .pl2_min_power = 50000, \ + .pl2_max_power = 50000, \ + .pl4_power = 65000 +/* Define a macro for the common power limit values for PTL_U */ +#define COMMON_PTL_U_POWER_LIMITS \ + .pl1_min_power = 10000, \ + .pl1_max_power = 15000, \ + .pl2_min_power = 50000, \ + .pl2_max_power = 50000, \ + .pl4_power = 65000 const struct cpu_tdp_power_limits power_optimized_limits[] = { { .mch_id = PCI_DID_INTEL_PTL_H_ID_1, .cpu_tdp = TDP_25W, .power_limits_index = PTL_H_1_CORE, - .pl1_min_power = 10000, - .pl1_max_power = 25000, - .pl2_min_power = 50000, - .pl2_max_power = 50000, - .pl4_power = 65000 + COMMON_PTL_H_POWER_LIMITS }, { .mch_id = PCI_DID_INTEL_PTL_H_ID_2, .cpu_tdp = TDP_25W, .power_limits_index = PTL_H_1_CORE, - .pl1_min_power = 10000, - .pl1_max_power = 25000, - .pl2_min_power = 50000, - .pl2_max_power = 50000, - .pl4_power = 65000 + COMMON_PTL_H_POWER_LIMITS }, { .mch_id = PCI_DID_INTEL_PTL_H_ID_3, .cpu_tdp = TDP_25W, .power_limits_index = PTL_H_2_CORE, - .pl1_min_power = 10000, - .pl1_max_power = 25000, - .pl2_min_power = 50000, - .pl2_max_power = 50000, - .pl4_power = 65000 + COMMON_PTL_H_POWER_LIMITS }, { .mch_id = PCI_DID_INTEL_PTL_H_ID_4, .cpu_tdp = TDP_25W, .power_limits_index = PTL_H_2_CORE, - .pl1_min_power = 10000, - .pl1_max_power = 25000, - .pl2_min_power = 50000, - .pl2_max_power = 50000, - .pl4_power = 65000 + COMMON_PTL_H_POWER_LIMITS + }, + { + .mch_id = PCI_DID_INTEL_PTL_H_ID_5, + .cpu_tdp = TDP_25W, + .power_limits_index = PTL_H_2_CORE, + COMMON_PTL_H_POWER_LIMITS + }, + { + .mch_id = PCI_DID_INTEL_PTL_H_ID_6, + .cpu_tdp = TDP_25W, + .power_limits_index = PTL_H_2_CORE, + COMMON_PTL_H_POWER_LIMITS + }, + { + .mch_id = PCI_DID_INTEL_PTL_H_ID_7, + .cpu_tdp = TDP_25W, + .power_limits_index = PTL_H_2_CORE, + COMMON_PTL_H_POWER_LIMITS + }, + { + .mch_id = PCI_DID_INTEL_PTL_H_ID_8, + .cpu_tdp = TDP_25W, + .power_limits_index = PTL_H_2_CORE, + COMMON_PTL_H_POWER_LIMITS }, { .mch_id = PCI_DID_INTEL_PTL_U_ID_1, .cpu_tdp = TDP_15W, .power_limits_index = PTL_U_1_CORE, - .pl1_min_power = 10000, - .pl1_max_power = 15000, - .pl2_min_power = 50000, - .pl2_max_power = 50000, - .pl4_power = 65000 + COMMON_PTL_U_POWER_LIMITS }, { .mch_id = PCI_DID_INTEL_PTL_U_ID_2, .cpu_tdp = TDP_15W, .power_limits_index = PTL_U_2_CORE, - .pl1_min_power = 10000, - .pl1_max_power = 15000, - .pl2_min_power = 50000, - .pl2_max_power = 50000, - .pl4_power = 65000 + COMMON_PTL_U_POWER_LIMITS + }, + { + .mch_id = PCI_DID_INTEL_PTL_U_ID_3, + .cpu_tdp = TDP_15W, + .power_limits_index = PTL_U_2_CORE, + COMMON_PTL_U_POWER_LIMITS }, };