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