Skip to content

Commit

Permalink
gma500/cdv: sync up and add the displayport code to the build
Browse files Browse the repository at this point in the history
This is mostly just aligning bits of behaviour

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Alan Cox authored and Dave Airlie committed Aug 23, 2012
1 parent 220801b commit 37e7b18
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 245 deletions.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/gma500/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ gma500_gfx-$(CONFIG_DRM_GMA3600) += cdv_device.o \
cdv_intel_crt.o \
cdv_intel_display.o \
cdv_intel_hdmi.o \
cdv_intel_lvds.o
cdv_intel_lvds.o \
cdv_intel_dp.o

gma500_gfx-$(CONFIG_DRM_GMA600) += oaktrail_device.o \
oaktrail_crtc.o \
Expand Down
6 changes: 3 additions & 3 deletions drivers/gpu/drm/gma500/cdv_intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static const struct cdv_intel_limit_t cdv_intel_limits[] = {
#define wait_for(COND, MS) _wait_for(COND, MS, 1)


static int cdv_sb_read(struct drm_device *dev, u32 reg, u32 *val)
int cdv_sb_read(struct drm_device *dev, u32 reg, u32 *val)
{
int ret;

Expand All @@ -198,7 +198,7 @@ static int cdv_sb_read(struct drm_device *dev, u32 reg, u32 *val)
return 0;
}

static int cdv_sb_write(struct drm_device *dev, u32 reg, u32 val)
int cdv_sb_write(struct drm_device *dev, u32 reg, u32 val)
{
int ret;
static bool dpio_debug = true;
Expand Down Expand Up @@ -240,7 +240,7 @@ static int cdv_sb_write(struct drm_device *dev, u32 reg, u32 val)
/* Reset the DPIO configuration register. The BIOS does this at every
* mode set.
*/
static void cdv_sb_reset(struct drm_device *dev)
void cdv_sb_reset(struct drm_device *dev)
{

REG_WRITE(DPIO_CFG, 0);
Expand Down
Loading

0 comments on commit 37e7b18

Please sign in to comment.