summaryrefslogtreecommitdiff
path: root/include/video/mcde_display-av8100.h
blob: c508ebf1f17329606c6d4d53a15f065e769d012a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Copyright (C) ST-Ericsson SA 2010
 *
 * ST-Ericsson MCDE HDMI display driver
 *
 * Author: Per Persson <per-xb-persson@stericsson.com>
 * for ST-Ericsson.
 *
 * License terms: GNU General Public License (GPL), version 2.
 */
#ifndef __DISPLAY_AV8100__H__
#define __DISPLAY_AV8100__H__

#include <linux/regulator/consumer.h>

#include "mcde_display.h"

#define GPIO_AV8100_RSTN	196
#define NATIVE_XRES_HDMI	1280
#define NATIVE_YRES_HDMI	720
#define NATIVE_XRES_SDTV	720
#define NATIVE_YRES_SDTV	576

struct mcde_display_hdmi_platform_data {
	/* Platform info */
	int reset_gpio;
	bool reset_high;
	const char *regulator_id;
	const char *cvbs_regulator_id;
	int reset_delay; /* ms */
	u32 ddb_id;
	struct mcde_col_convert rgb_2_yCbCr_transform;

	/* Driver data */ /* TODO: move to driver data instead */
	bool hdmi_platform_enable;
	struct regulator *regulator;
};

#endif /* __DISPLAY_AV8100__H__ */