aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500
diff options
context:
space:
mode:
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>2013-03-14 07:36:54 -0400
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>2013-03-17 13:32:56 -0400
commit9e8e463609190562e69c83e59f50117a98e6e0be (patch)
tree633c9545d66da4f38e814b943a37839b69fd7209 /drivers/gpu/drm/gma500
parent49ad8f54c02001d34856fb4cd00af02be75ab9be (diff)
drm/gma500: Clean up various defines
Remove unused defines that we'll never use and fix naming in some include guards Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r--drivers/gpu/drm/gma500/intel_bios.h6
-rw-r--r--drivers/gpu/drm/gma500/psb_intel_display.c2
-rw-r--r--drivers/gpu/drm/gma500/psb_intel_drv.h8
-rw-r--r--drivers/gpu/drm/gma500/psb_intel_reg.h1
-rw-r--r--drivers/gpu/drm/gma500/psb_irq.h6
5 files changed, 6 insertions, 17 deletions
diff --git a/drivers/gpu/drm/gma500/intel_bios.h b/drivers/gpu/drm/gma500/intel_bios.h
index c6267c98c9e7..978ae4b25e82 100644
--- a/drivers/gpu/drm/gma500/intel_bios.h
+++ b/drivers/gpu/drm/gma500/intel_bios.h
@@ -19,8 +19,8 @@
19 * 19 *
20 */ 20 */
21 21
22#ifndef _I830_BIOS_H_ 22#ifndef _INTEL_BIOS_H_
23#define _I830_BIOS_H_ 23#define _INTEL_BIOS_H_
24 24
25#include <drm/drmP.h> 25#include <drm/drmP.h>
26#include <drm/drm_dp_helper.h> 26#include <drm/drm_dp_helper.h>
@@ -618,4 +618,4 @@ extern void psb_intel_destroy_bios(struct drm_device *dev);
618#define PORT_IDPC 8 618#define PORT_IDPC 8
619#define PORT_IDPD 9 619#define PORT_IDPD 9
620 620
621#endif /* _I830_BIOS_H_ */ 621#endif /* _INTEL_BIOS_H_ */
diff --git a/drivers/gpu/drm/gma500/psb_intel_display.c b/drivers/gpu/drm/gma500/psb_intel_display.c
index ccc1c6bfd9b4..6e8f42b61ff6 100644
--- a/drivers/gpu/drm/gma500/psb_intel_display.c
+++ b/drivers/gpu/drm/gma500/psb_intel_display.c
@@ -50,8 +50,6 @@ struct psb_intel_p2_t {
50 int p2_slow, p2_fast; 50 int p2_slow, p2_fast;
51}; 51};
52 52
53#define INTEL_P2_NUM 2
54
55struct psb_intel_limit_t { 53struct psb_intel_limit_t {
56 struct psb_intel_range_t dot, vco, n, m, m1, m2, p, p1; 54 struct psb_intel_range_t dot, vco, n, m, m1, m2, p, p1;
57 struct psb_intel_p2_t p2; 55 struct psb_intel_p2_t p2;
diff --git a/drivers/gpu/drm/gma500/psb_intel_drv.h b/drivers/gpu/drm/gma500/psb_intel_drv.h
index 90f2d11e686b..4dcae421a58d 100644
--- a/drivers/gpu/drm/gma500/psb_intel_drv.h
+++ b/drivers/gpu/drm/gma500/psb_intel_drv.h
@@ -32,9 +32,6 @@
32/* maximum connectors per crtcs in the mode set */ 32/* maximum connectors per crtcs in the mode set */
33#define INTELFB_CONN_LIMIT 4 33#define INTELFB_CONN_LIMIT 4
34 34
35#define INTEL_I2C_BUS_DVO 1
36#define INTEL_I2C_BUS_SDVO 2
37
38/* Intel Pipe Clone Bit */ 35/* Intel Pipe Clone Bit */
39#define INTEL_HDMIB_CLONE_BIT 1 36#define INTEL_HDMIB_CLONE_BIT 1
40#define INTEL_HDMIC_CLONE_BIT 2 37#define INTEL_HDMIC_CLONE_BIT 2
@@ -68,11 +65,6 @@
68#define INTEL_OUTPUT_DISPLAYPORT 9 65#define INTEL_OUTPUT_DISPLAYPORT 9
69#define INTEL_OUTPUT_EDP 10 66#define INTEL_OUTPUT_EDP 10
70 67
71#define INTEL_DVO_CHIP_NONE 0
72#define INTEL_DVO_CHIP_LVDS 1
73#define INTEL_DVO_CHIP_TMDS 2
74#define INTEL_DVO_CHIP_TVOUT 4
75
76#define INTEL_MODE_PIXEL_MULTIPLIER_SHIFT (0x0) 68#define INTEL_MODE_PIXEL_MULTIPLIER_SHIFT (0x0)
77#define INTEL_MODE_PIXEL_MULTIPLIER_MASK (0xf << INTEL_MODE_PIXEL_MULTIPLIER_SHIFT) 69#define INTEL_MODE_PIXEL_MULTIPLIER_MASK (0xf << INTEL_MODE_PIXEL_MULTIPLIER_SHIFT)
78 70
diff --git a/drivers/gpu/drm/gma500/psb_intel_reg.h b/drivers/gpu/drm/gma500/psb_intel_reg.h
index d914719c4b60..0be30e4d146d 100644
--- a/drivers/gpu/drm/gma500/psb_intel_reg.h
+++ b/drivers/gpu/drm/gma500/psb_intel_reg.h
@@ -493,7 +493,6 @@
493#define PIPEACONF_DISABLE 0 493#define PIPEACONF_DISABLE 0
494#define PIPEACONF_DOUBLE_WIDE (1 << 30) 494#define PIPEACONF_DOUBLE_WIDE (1 << 30)
495#define PIPECONF_ACTIVE (1 << 30) 495#define PIPECONF_ACTIVE (1 << 30)
496#define I965_PIPECONF_ACTIVE (1 << 30)
497#define PIPECONF_DSIPLL_LOCK (1 << 29) 496#define PIPECONF_DSIPLL_LOCK (1 << 29)
498#define PIPEACONF_SINGLE_WIDE 0 497#define PIPEACONF_SINGLE_WIDE 0
499#define PIPEACONF_PIPE_UNLOCKED 0 498#define PIPEACONF_PIPE_UNLOCKED 0
diff --git a/drivers/gpu/drm/gma500/psb_irq.h b/drivers/gpu/drm/gma500/psb_irq.h
index 603045bee58a..debb7f190c06 100644
--- a/drivers/gpu/drm/gma500/psb_irq.h
+++ b/drivers/gpu/drm/gma500/psb_irq.h
@@ -21,8 +21,8 @@
21 * 21 *
22 **************************************************************************/ 22 **************************************************************************/
23 23
24#ifndef _SYSIRQ_H_ 24#ifndef _PSB_IRQ_H_
25#define _SYSIRQ_H_ 25#define _PSB_IRQ_H_
26 26
27#include <drm/drmP.h> 27#include <drm/drmP.h>
28 28
@@ -44,4 +44,4 @@ u32 psb_get_vblank_counter(struct drm_device *dev, int pipe);
44 44
45int mdfld_enable_te(struct drm_device *dev, int pipe); 45int mdfld_enable_te(struct drm_device *dev, int pipe);
46void mdfld_disable_te(struct drm_device *dev, int pipe); 46void mdfld_disable_te(struct drm_device *dev, int pipe);
47#endif /* _SYSIRQ_H_ */ 47#endif /* _PSB_IRQ_H_ */