summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gma500/mdfld_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/mdfld_device.c
parent89e5d557171c5ce12c6f149633538582fe10ebb0 (diff)
downloadop-kernel-dev-a95dfc1e1ce6d50129252d70078813a31ff7cc56.zip
op-kernel-dev-a95dfc1e1ce6d50129252d70078813a31ff7cc56.tar.gz
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/mdfld_device.c')
-rw-r--r--drivers/staging/gma500/mdfld_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/gma500/mdfld_device.c b/drivers/staging/gma500/mdfld_device.c
index e66d04a..daa9487 100644
--- a/drivers/staging/gma500/mdfld_device.c
+++ b/drivers/staging/gma500/mdfld_device.c
@@ -26,6 +26,7 @@
#include "psb_drv.h"
#include "mdfld_output.h"
#include "mdfld_dsi_output.h"
+#include "mrst_bios.h"
/*
* Provide the Medfield specific backlight management
@@ -689,6 +690,11 @@ static int mdfld_power_up(struct drm_device *dev)
const struct psb_ops mdfld_chip_ops = {
.name = "Medfield",
.accel_2d = 0,
+ .pipes = 3,
+ .sgx_offset = MRST_SGX_OFFSET,
+
+ .chip_setup = mid_chip_setup,
+
.crtc_helper = &mdfld_helper_funcs,
.crtc_funcs = &mdfld_intel_crtc_funcs,
OpenPOWER on IntegriCloud