Skip to content

Commit

Permalink
gma500: The MID devices have the register offset different
Browse files Browse the repository at this point in the history
This is another small step towards getting Moorestown/Oaktrail support to
work but for Moorestown at least we still need to sort out GEM backed base
framebuffer, which means figuring out why GEM explodes early on at the
moment.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed May 6, 2011
1 parent 9fada0a commit b644c7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/staging/gma500/psb_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,11 @@ static int psb_driver_load(struct drm_device *dev, unsigned long chipset)
if (!dev_priv->vdc_reg)
goto out_err;

dev_priv->sgx_reg = ioremap(resource_start + PSB_SGX_OFFSET,
if (IS_MRST(dev))
dev_priv->sgx_reg = ioremap(resource_start + MRST_SGX_OFFSET,
PSB_SGX_SIZE);
else
dev_priv->sgx_reg = ioremap(resource_start + PSB_SGX_OFFSET,
PSB_SGX_SIZE);

if (!dev_priv->sgx_reg)
Expand Down

0 comments on commit b644c7c

Please sign in to comment.