summaryrefslogtreecommitdiff
path: root/drivers/staging/gma500/mrst_device.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2011-07-05 15:40:16 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-05 08:20:41 -0700
commita95dfc1e1ce6d50129252d70078813a31ff7cc56 (patch)
tree7e01152474d89347e41f1c1f043266b9f739e9b0 /drivers/staging/gma500/mrst_device.c
parent89e5d557171c5ce12c6f149633538582fe10ebb0 (diff)
gma500: move configuration bits into the psb_ops structure
We can stuff things like the number of pipes and the SGX offset away in here as well and clean up more conditional code. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/gma500/mrst_device.c')
-rw-r--r--drivers/staging/gma500/mrst_device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/gma500/mrst_device.c b/drivers/staging/gma500/mrst_device.c
index 79cd784b7805..d71e8d3386d2 100644
--- a/drivers/staging/gma500/mrst_device.c
+++ b/drivers/staging/gma500/mrst_device.c
@@ -25,6 +25,7 @@
#include "psb_reg.h"
#include "psb_intel_reg.h"
#include <asm/intel_scu_ipc.h>
+#include "mrst_bios.h"
/* IPC message and command defines used to enable/disable mipi panel voltages */
#define IPC_MSG_PANEL_ON_OFF 0xE9
@@ -354,6 +355,10 @@ static int mrst_power_up(struct drm_device *dev)
const struct psb_ops mrst_chip_ops = {
.name = "Moorestown",
.accel_2d = 1,
+ .pipes = 1,
+ .sgx_offset = MRST_SGX_OFFSET,
+
+ .chip_setup = mid_chip_setup,
.crtc_helper = &mrst_helper_funcs,
.crtc_funcs = &psb_intel_crtc_funcs,