KernelNanopiR5S/drivers/gpu/drm/panel/panel-friendlyelec.h
2024-09-10 09:59:09 +02:00

77 lines
1.6 KiB
C

/*
* drivers/gpu/drm/panel/panel-friendlyelec.h
*
* Copyright (C) Guangzhou FriendlyARM Computer Tech. Co., Ltd.
* (http://www.friendlyarm.com)
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __PANEL_FRIENDLYELEC_H__
#define __PANEL_FRIENDLYELEC_H__
/*
* struct lcd_polarity
* @rise_vclk: if 1, video data is fetched at rising edge
* @inv_hsync: if HSYNC polarity is inversed
* @inv_vsync: if VSYNC polarity is inversed
* @inv_vden: if VDEN polarity is inversed
*/
struct lcd_polarity {
int rise_vclk;
int inv_hsync;
int inv_vsync;
int inv_vden;
};
/*
* struct lcd_timing
* @h_fp: horizontal front porch
* @h_bp: horizontal back porch
* @h_sw: horizontal sync width
* @v_fp: vertical front porch
* @v_fpe: vertical front porch for even field
* @v_bp: vertical back porch
* @v_bpe: vertical back porch for even field
*/
struct lcd_timing {
int h_fp;
int h_bp;
int h_sw;
int v_fp;
int v_fpe;
int v_bp;
int v_bpe;
int v_sw;
};
/*
* struct lcd_desc
* @width: horizontal resolution
* @height: vertical resolution
* @p_width: width of lcd in mm
* @p_height: height of lcd in mm
* @bpp: bits per pixel
* @freq: vframe frequency
* @timing: timing values
* @polarity: polarity settings
*/
struct lcd_desc {
int width;
int height;
int p_width;
int p_height;
int bpp;
int freq;
struct lcd_timing timing;
struct lcd_polarity polarity;
};
#endif /* __PANEL_FRIENDLYELEC_H__ */