summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-aspeed/include/mach/ast_lcd.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-aspeed/include/mach/ast_lcd.h')
-rw-r--r--arch/arm/mach-aspeed/include/mach/ast_lcd.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/arch/arm/mach-aspeed/include/mach/ast_lcd.h b/arch/arm/mach-aspeed/include/mach/ast_lcd.h
new file mode 100644
index 0000000..20963eb
--- /dev/null
+++ b/arch/arm/mach-aspeed/include/mach/ast_lcd.h
@@ -0,0 +1,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);
+
OpenPOWER on IntegriCloud