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