1 /* 2 * Copyright (C) Xiangfu Liu <xiangfu.z@gmail.com> 3 * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 3 of the License, or (at your option) any later version. 9 */ 10 11 /* 12 * This file contains the configuration parameters for the NanoNote. 13 */ 14 #ifndef __CONFIG_NANONOTE_H 15 #define __CONFIG_NANONOTE_H 16 17 /* 18 * Display configuration 19 */ 20 #define LCD_BPP LCD_COLOR32 21 22 /* 23 * Cache configuration 24 */ 25 #define CONFIG_SYS_DCACHE_SIZE 16384 26 #define CONFIG_SYS_ICACHE_SIZE 16384 27 #define CONFIG_SYS_CACHELINE_SIZE 32 28 #define KSEG0 0x80000000 29 30 /* 31 * GPIO definition 32 * See: http://en.qi-hardware.com/wiki/Hardware_basics 33 */ 34 #define GPIO_LCD_CS (2 * 32 + 21) 35 #define GPIO_AMP_EN (3 * 32 + 4) 36 37 #define GPIO_SDPW_EN (3 * 32 + 2) 38 #define GPIO_SD_DETECT (3 * 32 + 0) 39 40 #define GPIO_BUZZ_PWM (3 * 32 + 27) 41 #define GPIO_USB_DETECT (3 * 32 + 28) 42 43 #define GPIO_AUDIO_POP (1 * 32 + 29) 44 #define GPIO_COB_TEST (1 * 32 + 30) 45 46 #define GPIO_KEYOUT_BASE (2 * 32 + 10) 47 #define GPIO_KEYIN_BASE (3 * 32 + 18) 48 #define GPIO_KEYIN_8 (3 * 32 + 26) 49 50 #define GPIO_SD_CD_N GPIO_SD_DETECT /* SD Card insert detect */ 51 #define GPIO_SD_VCC_EN_N GPIO_SDPW_EN /* SD Card Power Enable */ 52 53 #define GPIO_SD_CMD (3 * 32 + 8) 54 55 #define SPEN GPIO_LCD_CS /* LCDCS :Serial command enable */ 56 #define SPDA (2 * 32 + 22) /* LCDSCL:Serial command clock input */ 57 #define SPCK (2 * 32 + 23) /* LCDSDA:Serial command data input */ 58 59 #endif /* __CONFIG_NANONOTE_H */