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