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