1 /* 2 * Export a panel structure for the Letux 400 notebook computer. 3 * 4 * Copyright (C) 2018, 2021, 2023 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_pclock_positive 29 | Jz4740_lcd_hsync_negative 30 | Jz4740_lcd_vsync_negative 31 | Jz4740_lcd_de_positive), 32 33 .width = 800, 34 .height = 480, 35 .bpp = 16, 36 .frame_rate = 60, 37 .hsync = 80, 38 .vsync = 20, 39 .line_start = 0, 40 .line_end = 0, 41 .frame_start = 0, 42 .frame_end = 0, 43 }; 44 45 /* Employ an opaque pointer type. */ 46 47 void *panel_get(void); 48 49 void *panel_get(void) 50 { 51 return &panel; 52 }