summaryrefslogtreecommitdiff
path: root/arch/arm/mach-aspeed/include/mach/ast_video.h
blob: 18f918916349d5820131be19bb253e3d11f93f18 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
 /********************************************************************************
* File Name     : drivers/video/ast_video.h
* Author         : Ryan Chen
* Description   : ASPEED Video Engine
*
* Copyright (C) ASPEED Tech. Inc.
* 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.
* 
* This program is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

*   History      :
*    1. 2012/12/27 Ryan Chen create this file
*        
*
********************************************************************************/
typedef enum ast_video_mode {
	VIDEO_SINGLE_MODE = 0,
	VIDEO_FRAME_MODE,
	VIDEO_STREAM_MODE,
} video_mode;

//VR08[2]
typedef enum ast_video_source {
	VIDEO_SOURCE_UNKNOW = 0,	//maybe memory .. TODO ...
	VIDEO_SOURCE_INTERNAL,
	VIDEO_SOURCE_EXTERNAL,
} video_source;

//VR08[5]
typedef enum ast_vga_mode {
	VIDEO_VGA_DIRECT_MODE = 0,
	VIDEO_VGA_CAPTURE_MODE,
} vga_mode;

//VR08[4]
typedef enum ast_video_dis_en {
	VIDEO_EXT_DE_SIGNAL = 0,
	VIDEO_INT_DE_SIGNAL,
} display_enable;

typedef enum video_compress_format {
	VIDEO_YUV444 = 0,
	VIDEO_YUV420,
} compress_formate;

typedef enum video_color_format {
	VIDEO_COLOR_RGB565 = 0,
	VIDEO_COLOR_RGB888,
	VIDEO_COLOR_YUV444,
	VIDEO_COLOR_YUV420,
} color_formate;

typedef enum vga_color_mode {
	VGA_NO_SIGNAL = 0,
	EGA_MODE,
	VGA_MODE,
	VGA_15BPP_MODE,
	VGA_16BPP_MODE,
	VGA_32BPP_MODE,
} color_mode;

typedef enum video_stage {
	NONE,
	POLARITY,
	RESOLUTION,
	INIT,
	RUN,
} stage;

struct ast_video_plat_data {
	u32 (*get_clk)(void);
	void (*ctrl_reset)(void);
	void (*vga_display)(u8 enable);
	u32 (*get_vga_base)(void);
	video_source	input_source;	
	video_mode	mode;
	u8	rc4_enable;
	u8	scaling;
	compress_formate compress;
};