1 /* 2 * Copyright (C) 2009 Qi Hardware Inc. 3 * Authors: Xiangfu Liu <xiangfu@openmobilefree.net> 4 * Copyright (C) 2015 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 8 * as published by the Free Software Foundation; either version 9 * 3 of 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 /* 23 * This file contains the configuration parameters for the NanoNote. 24 */ 25 #ifndef __NANONOTE_H__ 26 #define __NANONOTE_H__ 27 28 /* 29 * Display configuration 30 */ 31 #define LCD_BPP LCD_COLOR32 32 33 /* 34 * GPIO definition 35 * See: http://en.qi-hardware.com/wiki/Hardware_basics 36 */ 37 #define GPIO_LCD_CS (2 * 32 + 21) 38 #define GPIO_AMP_EN (3 * 32 + 4) 39 40 #define GPIO_SDPW_EN (3 * 32 + 2) 41 #define GPIO_SD_DETECT (3 * 32 + 0) 42 43 #define GPIO_BUZZ_PWM (3 * 32 + 27) 44 #define GPIO_USB_DETECT (3 * 32 + 28) 45 46 #define GPIO_AUDIO_POP (1 * 32 + 29) 47 #define GPIO_COB_TEST (1 * 32 + 30) 48 49 #define GPIO_KEYOUT_BASE (2 * 32 + 10) 50 #define GPIO_KEYIN_BASE (3 * 32 + 18) 51 #define GPIO_KEYIN_8 (3 * 32 + 26) 52 53 #define GPIO_SD_CD_N GPIO_SD_DETECT /* SD Card insert detect */ 54 #define GPIO_SD_VCC_EN_N GPIO_SDPW_EN /* SD Card Power Enable */ 55 56 #define GPIO_SD_CMD (3 * 32 + 8) 57 58 #define SPEN GPIO_LCD_CS /* LCDCS :Serial command enable */ 59 #define SPDA (2 * 32 + 22) /* LCDSCL:Serial command clock input */ 60 #define SPCK (2 * 32 + 23) /* LCDSDA:Serial command data input */ 61 62 #endif /* __NANONOTE_H__ */