aboutsummaryrefslogtreecommitdiffstats
path: root/intel
diff options
context:
space:
mode:
authorJesse Barnes2012-03-18 16:51:18 -0500
committerJesse Barnes2012-09-13 13:50:59 -0500
commit9d9cb8553c945fac15421770da233fb3e38396e0 (patch)
treedd2408870901e28a7647f123713cce505f84c524 /intel
parent9c3c95fc0cb0945492279f0c7dcc0c2b1e8f463d (diff)
downloadlibdrm-9d9cb8553c945fac15421770da233fb3e38396e0.tar.gz
libdrm-9d9cb8553c945fac15421770da233fb3e38396e0.tar.xz
libdrm-9d9cb8553c945fac15421770da233fb3e38396e0.zip
intel: add support for ValleyView
Just some PCI ID stuff to enable the right features.
Diffstat (limited to 'intel')
-rw-r--r--intel/intel_chipset.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/intel/intel_chipset.h b/intel/intel_chipset.h
index b73fa0f9..a2eb8947 100644
--- a/intel/intel_chipset.h
+++ b/intel/intel_chipset.h
@@ -83,6 +83,8 @@
83#define PCI_CHIP_HASWELL_CRW_S_GT2 0x0D2A 83#define PCI_CHIP_HASWELL_CRW_S_GT2 0x0D2A
84#define PCI_CHIP_HASWELL_CRW_S_GT2_PLUS 0x0D3A 84#define PCI_CHIP_HASWELL_CRW_S_GT2_PLUS 0x0D3A
85 85
86#define PCI_CHIP_VALLEYVIEW_PO 0x0f30 /* power on board */
87
86#define IS_830(dev) (dev == 0x3577) 88#define IS_830(dev) (dev == 0x3577)
87#define IS_845(dev) (dev == 0x2562) 89#define IS_845(dev) (dev == 0x2562)
88#define IS_85X(dev) (dev == 0x3582) 90#define IS_85X(dev) (dev == 0x3582)
@@ -122,6 +124,8 @@
122 124
123#define IS_I965GM(dev) (dev == 0x2A02) 125#define IS_I965GM(dev) (dev == 0x2A02)
124 126
127#define IS_VALLEYVIEW(dev) (dev == 0xf30)
128
125#define IS_GEN4(dev) (dev == 0x2972 || \ 129#define IS_GEN4(dev) (dev == 0x2972 || \
126 dev == 0x2982 || \ 130 dev == 0x2982 || \
127 dev == 0x2992 || \ 131 dev == 0x2992 || \
@@ -154,7 +158,8 @@
154 dev == PCI_CHIP_SANDYBRIDGE_S) 158 dev == PCI_CHIP_SANDYBRIDGE_S)
155 159
156#define IS_GEN7(devid) (IS_IVYBRIDGE(devid) || \ 160#define IS_GEN7(devid) (IS_IVYBRIDGE(devid) || \
157 IS_HASWELL(devid)) 161 IS_HASWELL(devid) || \
162 IS_VALLEYVIEW(devid))
158 163
159#define IS_IVYBRIDGE(dev) (dev == PCI_CHIP_IVYBRIDGE_GT1 || \ 164#define IS_IVYBRIDGE(dev) (dev == PCI_CHIP_IVYBRIDGE_GT1 || \
160 dev == PCI_CHIP_IVYBRIDGE_GT2 || \ 165 dev == PCI_CHIP_IVYBRIDGE_GT2 || \