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 * RAM configuration 24 */ 25 #define CONFIG_SYS_SDRAM_BASE 0x80000000 26 27 /* 28 * Cache configuration 29 */ 30 #define CONFIG_SYS_DCACHE_SIZE 16384 31 #define CONFIG_SYS_ICACHE_SIZE 16384 32 #define CONFIG_SYS_CACHELINE_SIZE 32 33 #define KSEG0 0x80000000 34 35 /* 36 * GPIO definition 37 * See: http://en.qi-hardware.com/wiki/Hardware_basics 38 */ 39 #define GPIO_LCD_CS (2 * 32 + 21) 40 #define GPIO_AMP_EN (3 * 32 + 4) 41 42 #define GPIO_SDPW_EN (3 * 32 + 2) 43 #define GPIO_SD_DETECT (3 * 32 + 0) 44 45 #define GPIO_BUZZ_PWM (3 * 32 + 27) 46 #define GPIO_USB_DETECT (3 * 32 + 28) 47 48 #define GPIO_AUDIO_POP (1 * 32 + 29) 49 #define GPIO_COB_TEST (1 * 32 + 30) 50 51 #define GPIO_KEYOUT_BASE (2 * 32 + 10) 52 #define GPIO_KEYIN_BASE (3 * 32 + 18) 53 #define GPIO_KEYIN_8 (3 * 32 + 26) 54 55 #define GPIO_SD_CD_N GPIO_SD_DETECT /* SD Card insert detect */ 56 #define GPIO_SD_VCC_EN_N GPIO_SDPW_EN /* SD Card Power Enable */ 57 58 #define GPIO_SD_CMD (3 * 32 + 8) 59 60 #define SPEN GPIO_LCD_CS /* LCDCS :Serial command enable */ 61 #define SPDA (2 * 32 + 22) /* LCDSCL:Serial command clock input */ 62 #define SPCK (2 * 32 + 23) /* LCDSDA:Serial command data input */ 63 64 #endif /* __CONFIG_NANONOTE_H */