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