mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 22:53:55 +08:00
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
|
/*
|
||
|
* rcar_du.h -- R-Car Display Unit DRM driver
|
||
|
*
|
||
|
* Copyright (C) 2013 Renesas Corporation
|
||
|
*
|
||
|
* Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation; either version 2 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*/
|
||
|
|
||
|
#ifndef __RCAR_DU_H__
|
||
|
#define __RCAR_DU_H__
|
||
|
|
||
|
#include <drm/drm_mode.h>
|
||
|
|
||
|
enum rcar_du_encoder_type {
|
||
|
RCAR_DU_ENCODER_UNUSED = 0,
|
||
|
RCAR_DU_ENCODER_VGA,
|
||
|
RCAR_DU_ENCODER_LVDS,
|
||
|
};
|
||
|
|
||
|
struct rcar_du_panel_data {
|
||
|
unsigned int width_mm; /* Panel width in mm */
|
||
|
unsigned int height_mm; /* Panel height in mm */
|
||
|
struct drm_mode_modeinfo mode;
|
||
|
};
|
||
|
|
||
|
struct rcar_du_encoder_lvds_data {
|
||
|
struct rcar_du_panel_data panel;
|
||
|
};
|
||
|
|
||
|
struct rcar_du_encoder_vga_data {
|
||
|
/* TODO: Add DDC information for EDID retrieval */
|
||
|
};
|
||
|
|
||
|
struct rcar_du_encoder_data {
|
||
|
enum rcar_du_encoder_type encoder;
|
||
|
unsigned int output;
|
||
|
|
||
|
union {
|
||
|
struct rcar_du_encoder_lvds_data lvds;
|
||
|
struct rcar_du_encoder_vga_data vga;
|
||
|
} u;
|
||
|
};
|
||
|
|
||
|
struct rcar_du_platform_data {
|
||
|
struct rcar_du_encoder_data *encoders;
|
||
|
unsigned int num_encoders;
|
||
|
};
|
||
|
|
||
|
#endif /* __RCAR_DU_H__ */
|