1 /* 2 * Authors: Xiangfu Liu <xiangfu.z@gmail.com> 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 3 of the License, or (at your option) any later version. 8 */ 9 10 /* 11 * This file contains the configuration parameters for the NanoNote. 12 */ 13 #ifndef __CONFIG_NANONOTE_H 14 #define __CONFIG_NANONOTE_H 15 16 /* 17 * GPIO definition 18 * See: http://en.qi-hardware.com/wiki/Hardware_basics 19 */ 20 #define GPIO_LCD_CS (2 * 32 + 21) 21 #define GPIO_AMP_EN (3 * 32 + 4) 22 23 #define GPIO_SDPW_EN (3 * 32 + 2) 24 #define GPIO_SD_DETECT (3 * 32 + 0) 25 26 #define GPIO_BUZZ_PWM (3 * 32 + 27) 27 #define GPIO_USB_DETECT (3 * 32 + 28) 28 29 #define GPIO_AUDIO_POP (1 * 32 + 29) 30 #define GPIO_COB_TEST (1 * 32 + 30) 31 32 #define GPIO_KEYOUT_BASE (2 * 32 + 10) 33 #define GPIO_KEYIN_BASE (3 * 32 + 18) 34 #define GPIO_KEYIN_8 (3 * 32 + 26) 35 36 #define GPIO_SD_CD_N GPIO_SD_DETECT /* SD Card insert detect */ 37 #define GPIO_SD_VCC_EN_N GPIO_SDPW_EN /* SD Card Power Enable */ 38 39 #define SPEN GPIO_LCD_CS /* LCDCS :Serial command enable */ 40 #define SPDA (2 * 32 + 22) /* LCDSCL:Serial command clock input */ 41 #define SPCK (2 * 32 + 23) /* LCDSDA:Serial command data input */ 42 #endif /* __CONFIG_NANONOTE_H */