1 /* 2 * Export a panel structure for the MIPS Creator CI20. 3 * 4 * Copyright (C) 2018, 2020, 2021 Paul Boddie <paul@boddie.org.uk> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of 9 * the License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * Boston, MA 02110-1301, USA 20 */ 21 22 #include <l4/devices/lcd-jz4740-config.h> 23 #include <l4/devices/lcd-jz4740-panel.h> 24 25 static struct Jz4740_lcd_panel panel = { 26 .config = ( 27 Jz4740_lcd_mode_tft_generic 28 | Jz4740_lcd_bpp_24 29 | Jz4740_lcd_desc_8_word 30 | Jz4740_lcd_ps_disabled 31 | Jz4740_lcd_cls_disabled 32 | Jz4740_lcd_spl_disabled 33 | Jz4740_lcd_rev_disabled 34 | Jz4740_lcd_de_positive), 35 36 // NOTE: To be configured using the HDMI DDC mechanism. 37 38 .width = 1280, 39 .height = 1024, 40 .bpp = 24, 41 .frame_rate = 60, 42 .hsync = 112, 43 .vsync = 3, 44 .line_start = 248, // back porch (blanking - hsync - offset) 45 .line_end = 48, // front porch (sync offset) 46 .frame_start = 36, // back porch (blanking - vsync - offset) 47 .frame_end = 3, // front porch (sync offset) 48 }; 49 50 /* Employ an opaque pointer type. */ 51 52 void *panel_get(void); 53 54 void *panel_get(void) 55 { 56 return &panel; 57 }