#include <linux/i2c.h>
#include <linux/pm_runtime.h>
#include <drm/drm_edid.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <drm/drm_simple_kms_helper.h>
#include "intel_bios.h"
#include "power.h"
#include "psb_drv.h"
#include "psb_intel_drv.h"
#include "psb_intel_reg.h"
#define MRST_BLC_MAX_PWM_REG_FREQ …
#define BRIGHTNESS_MAX_LEVEL …
static void oaktrail_lvds_set_power(struct drm_device *dev,
struct gma_encoder *gma_encoder,
bool on)
{ … }
static void oaktrail_lvds_dpms(struct drm_encoder *encoder, int mode)
{ … }
static void oaktrail_lvds_mode_set(struct drm_encoder *encoder,
struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode)
{ … }
static void oaktrail_lvds_prepare(struct drm_encoder *encoder)
{ … }
static u32 oaktrail_lvds_get_max_backlight(struct drm_device *dev)
{ … }
static void oaktrail_lvds_commit(struct drm_encoder *encoder)
{ … }
static const struct drm_encoder_helper_funcs oaktrail_lvds_helper_funcs = …;
static void oaktrail_lvds_get_configuration_mode(struct drm_device *dev,
struct psb_intel_mode_device *mode_dev)
{ … }
void oaktrail_lvds_init(struct drm_device *dev,
struct psb_intel_mode_device *mode_dev)
{ … }