/******************************************************************************** * 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 //# 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);