soc/intel/alderlake: remove unnecessary test condition

mch_id is set to zero and then unnecessarily tested.

TEST=build and boot image on ADL RVP board

Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Change-Id: I4f48742b04edd50fbc0db342b563534e709d6fdd
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65583
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Jeremy Compostella 2022-06-30 16:31:14 -07:00 committed by Felix Held
parent 97074645b3
commit cb08c7937d
1 changed files with 2 additions and 6 deletions

View File

@ -493,14 +493,10 @@ static unsigned int get_aspm_control(enum ASPM_control ctl)
/* This function returns the VccIn Aux Imon IccMax values for ADL-P and ADL-S SKU's */
static uint16_t get_vccin_aux_imon_iccmax(void)
{
uint16_t mch_id = 0;
struct device *dev = pcidev_path_on_root(SA_DEVFN_ROOT);
uint16_t mch_id = dev ? pci_read_config16(dev, PCI_DEVICE_ID) : 0xffff;
uint8_t tdp;
if (!mch_id) {
struct device *dev = pcidev_path_on_root(SA_DEVFN_ROOT);
mch_id = dev ? pci_read_config16(dev, PCI_DEVICE_ID) : 0xffff;
}
switch (mch_id) {
case PCI_DID_INTEL_ADL_P_ID_1:
case PCI_DID_INTEL_ADL_P_ID_3: