blob: ae3a9c60c6149d5f12bb3d98fe29ad23afd2cb89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|