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 */ 19 #define GPIO_LCD_CS (2 * 32 + 21) 20 #define GPIO_AMP_EN (3 * 32 + 4) 21 22 #define GPIO_SDPW_EN (3 * 32 + 2) 23 #define GPIO_SD_DETECT (3 * 32 + 0) 24 25 #define GPIO_BUZZ_PWM (3 * 32 + 27) 26 #define GPIO_USB_DETECT (3 * 32 + 28) 27 28 #define GPIO_AUDIO_POP (1 * 32 + 29) 29 #define GPIO_COB_TEST (1 * 32 + 30) 30 31 #define GPIO_KEYOUT_BASE (2 * 32 + 10) 32 #define GPIO_KEYIN_BASE (3 * 32 + 18) 33 #define GPIO_KEYIN_8 (3 * 32 + 26) 34 35 #define GPIO_SD_CD_N GPIO_SD_DETECT /* SD Card insert detect */ 36 #define GPIO_SD_VCC_EN_N GPIO_SDPW_EN /* SD Card Power Enable */ 37 38 #define SPEN GPIO_LCD_CS /* LCDCS :Serial command enable */ 39 #define SPDA (2 * 32 + 22) /* LCDSCL:Serial command clock input */ 40 #define SPCK (2 * 32 + 23) /* LCDSDA:Serial command data input */ 41 #endif /* __CONFIG_NANONOTE_H */