summaryrefslogtreecommitdiff
path: root/arch/arm/mach-aspeed/include/mach/ast_lcd.h
blob: 20963ebf8dc83b2bfc70d3ff1145d222c76f2ef4 (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
 /********************************************************************************
* File Name     : drivers/video/ast_lcd.h
* Author         : Ryan Chen
* Description   : ASPEED LCD Panel Timing 
*
* 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
*        
*
********************************************************************************/
#include <linux/fb.h>

//# Define IO __ for control 
#define YUV_MODE 0x4630
#define CHANGE_YUV_ADDR 0x4631
#define CHANGE_ADDR 0x4632
#define OVERSCAN 0x4634


enum astfb_color_format {
	ASTFB_COLOR_RGB565 = 0,
	ASTFB_COLOR_RGB888,
	ASTFB_COLOR_YUV444,
	ASTFB_COLOR_YUV420,
};

struct aspeed_lcd_panel {
	struct fb_videomode	mode;
	signed short		width;	/* width in mm */
	signed short		height;	/* height in mm */
};

struct ast_monitor_info {
	int status; //0: no data   1:get data
	int type;   //0:dvi  1:hdmi
	struct fb_monspecs specs;
	char edid[256];
};

struct ast_fb_plat_data {
	u32 (*get_clk)(void);
};

int ast_vga_get_info(struct fb_info *fb_info);
int ast_hdmi_get_info(struct fb_info *fb_info);
void ast_hdmi_enable(int en);
int vga_read_edid(void);