1 /* 2 * Ben NanoNote configuration parameters 3 * 4 * Copyright (C) 2009 Qi Hardware Inc. 5 * Authors: Xiangfu Liu <xiangfu@openmobilefree.net> 6 * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk> 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License 10 * as published by the Free Software Foundation; either version 11 * 3 of the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 * Boston, MA 02110-1301, USA 22 */ 23 24 #ifndef __NANONOTE_H__ 25 #define __NANONOTE_H__ 26 27 /* 28 * Display configuration 29 */ 30 #define LCD_BPP LCD_COLOR32 31 32 /* 33 * GPIO definition 34 * See: http://en.qi-hardware.com/wiki/Hardware_basics 35 */ 36 #define GPIO_LCD_CS (2 * 32 + 21) 37 #define GPIO_AMP_EN (3 * 32 + 4) 38 39 #define GPIO_SDPW_EN (3 * 32 + 2) 40 #define GPIO_SD_DETECT (3 * 32 + 0) 41 42 #define GPIO_BUZZ_PWM (3 * 32 + 27) 43 #define GPIO_USB_DETECT (3 * 32 + 28) 44 45 #define GPIO_AUDIO_POP (1 * 32 + 29) 46 #define GPIO_COB_TEST (1 * 32 + 30) 47 48 #define GPIO_KEYOUT_BASE (2 * 32 + 10) 49 #define GPIO_KEYIN_BASE (3 * 32 + 18) 50 #define GPIO_KEYIN_8 (3 * 32 + 26) 51 52 #define GPIO_SD_CD_N GPIO_SD_DETECT /* SD Card insert detect */ 53 #define GPIO_SD_VCC_EN_N GPIO_SDPW_EN /* SD Card Power Enable */ 54 55 #define GPIO_SD_CMD (3 * 32 + 8) 56 57 #define SPEN GPIO_LCD_CS /* LCDCS :Serial command enable */ 58 #define SPDA (2 * 32 + 22) /* LCDSCL:Serial command clock input */ 59 #define SPCK (2 * 32 + 23) /* LCDSDA:Serial command data input */ 60 61 #endif /* __NANONOTE_H__ */