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