1 /* 2 * Export a panel structure for the MIPS Creator CI20. 3 * 4 * Copyright (C) 2018, 2020 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_underrun_recover 31 | Jz4740_lcd_ps_disabled 32 | Jz4740_lcd_cls_disabled 33 | Jz4740_lcd_spl_disabled 34 | Jz4740_lcd_rev_disabled 35 | Jz4740_lcd_pclock_negative 36 | Jz4740_lcd_hsync_positive 37 | Jz4740_lcd_vsync_positive 38 | Jz4740_lcd_de_positive), 39 40 // NOTE: To be configured using the HDMI DDC mechanism. 41 42 .width = 1280, 43 .height = 1024, 44 .bpp = 24, 45 .frame_rate = 60, 46 .hsync = 112, 47 .vsync = 3, 48 .line_start = 248, // back porch (blanking - hsync - offset) 49 .line_end = 48, // front porch (sync offset) 50 .frame_start = 36, // back porch (blanking - vsync - offset) 51 .frame_end = 3, // front porch (sync offset) 52 }; 53 54 /* Employ an opaque pointer type. */ 55 56 void *panel_get(void); 57 58 void *panel_get(void) 59 { 60 return &panel; 61 }