summaryrefslogtreecommitdiff
path: root/include/video/mcde_display-av8100.h
blob: 7c13b49e58f790f915efe8ec77430fcdeaa91515 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 * 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
#define DISPONOFF_SIZE		6
#define TIMING_SIZE		2
#define STAYALIVE_SIZE		1

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_transform *rgb_2_yCbCr_transform;

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

struct display_driver_data {
	struct regulator *cvbs_regulator;
	bool cvbs_regulator_enabled;
	bool update_port_pixel_format;
	const char *fbdevname;
	struct mcde_video_mode *video_mode;
};

void hdmi_fb_onoff(struct mcde_display_device *ddev, bool enable,
				u8 cea, u8 vesa_cea_nr);

#endif /* __DISPLAY_AV8100__H__ */