1 /* 2 * Ben NanoNote screen details 3 * 4 * Copyright (C) Xiangfu Liu <xiangfu@sharism.cc> 5 * Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as 9 * published by the Free Software Foundation; either version 2 of 10 * the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * Boston, MA 02110-1301, USA 21 */ 22 23 #include "nanonote_gpm940b0.h" 24 #include "jzlcd.h" 25 #include "nanonote.h" 26 27 struct jzfb_info jzfb = { 28 .cfg=MODE_8BIT_SERIAL_TFT | PCLK_N | HSYNC_N | VSYNC_N, 29 .w=320, .h=240, /* dimensions */ 30 .bpp=32, /* bits per pixel */ 31 .fclk=70, /* frame clock rate */ 32 .hsw=1, .vsw=1, /* sync widths */ 33 .elw=273, .blw=140, /* line limits */ 34 .efw=1, .bfw=20 /* frame limits */ 35 }; 36 37 vidinfo_t panel_info = { 38 .jz_fb=&jzfb, // this will need correcting for user mode usage 39 .lcd=0, // base address for registers 40 };