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, 2016 Paul Boddie <paul@boddie.org.uk> 7 * 8 * This program is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation, either version 3 of the License, or 11 * (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, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef __NANONOTE_H__ 23 #define __NANONOTE_H__ 24 25 /* 26 * GPIO definition 27 * See: http://en.qi-hardware.com/wiki/Hardware_basics 28 */ 29 #define GPIO_LCD_CS (2 * 32 + 21) 30 #define GPIO_AMP_EN (3 * 32 + 4) 31 32 #define GPIO_SDPW_EN (3 * 32 + 2) 33 #define GPIO_SD_DETECT (3 * 32 + 0) 34 35 #define GPIO_BUZZ_PWM (3 * 32 + 27) 36 #define GPIO_USB_DETECT (3 * 32 + 28) 37 38 #define GPIO_AUDIO_POP (1 * 32 + 29) 39 #define GPIO_COB_TEST (1 * 32 + 30) 40 41 #define GPIO_KEYOUT_BASE (2 * 32 + 10) 42 #define GPIO_KEYIN_BASE (3 * 32 + 18) 43 #define GPIO_KEYIN_8 (3 * 32 + 26) 44 45 #define GPIO_POWER (3 * 32 + 29) 46 47 #define GPIO_SD_CD_N GPIO_SD_DETECT /* SD Card insert detect */ 48 #define GPIO_SD_VCC_EN_N GPIO_SDPW_EN /* SD Card Power Enable */ 49 50 #define GPIO_SD_CMD (3 * 32 + 8) 51 52 #define SPEN GPIO_LCD_CS /* LCDCS :Serial command enable */ 53 #define SPDA (2 * 32 + 22) /* LCDSCL:Serial command clock input */ 54 #define SPCK (2 * 32 + 23) /* LCDSDA:Serial command data input */ 55 56 #endif /* __NANONOTE_H__ */