linux/drivers/gpu/drm/gma500/oaktrail_lvds.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright © 2006-2009 Intel Corporation
 *
 * Authors:
 *	Eric Anholt <[email protected]>
 *	Dave Airlie <[email protected]>
 *	Jesse Barnes <[email protected]>
 */

#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"

/* The max/min PWM frequency in BPCR[31:17] - */
/* The smallest number is 1 (not 0) that can fit in the
 * 15-bit field of the and then*/
/* shifts to the left by one bit to get the actual 16-bit
 * value that the 15-bits correspond to.*/
#define MRST_BLC_MAX_PWM_REG_FREQ
#define BRIGHTNESS_MAX_LEVEL

/*
 * Sets the power state for the panel.
 */
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 =;

/* Returns the panel fixed mode from configuration. */

static void oaktrail_lvds_get_configuration_mode(struct drm_device *dev,
					struct psb_intel_mode_device *mode_dev)
{}

/**
 * oaktrail_lvds_init - setup LVDS connectors on this device
 * @dev: drm device
 * @mode_dev: PSB mode device
 *
 * Create the connector, register the LVDS DDC bus, and try to figure out what
 * modes we can display on the LVDS panel (if present).
 */
void oaktrail_lvds_init(struct drm_device *dev,
		    struct psb_intel_mode_device *mode_dev)
{}