diff options
Diffstat (limited to 'src/soc/intel/broadwell/refcode/pch.h')
-rw-r--r-- | src/soc/intel/broadwell/refcode/pch.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/soc/intel/broadwell/refcode/pch.h b/src/soc/intel/broadwell/refcode/pch.h new file mode 100644 index 0000000000..ae3a9c60c6 --- /dev/null +++ b/src/soc/intel/broadwell/refcode/pch.h @@ -0,0 +1,31 @@ +#ifndef BDW_REFCODE_PCH_H +#define BDW_REFCODE_PCH_H + +#include <device/pci_ops.h> + +static inline bool pch_is_lp(void) +{ + uint16_t devid = pci_read_config16(PCI_DEV(0,0x1f,0), 2); + + /* WildcatPoint-LP */ + if (devid >= 0x9cc1 && devid <= 0x9cc9) + return true; + + /* LynxPoint-LP */ + if (devid >= 0x9c41 && devid <= 0x9c45) + return true; + + return false; +} + +static inline bool is_wildcat_point_lp(void) +{ + uint16_t devid = pci_read_config16(PCI_DEV(0,0x1f,0), 2); + + if (devid >= 0x9cc1 && devid <= 0x9cc9) + return true; + + return false; +} + +#endif |