1.1 --- a/include/nanonote.h Sat Jun 06 18:03:55 2015 +0200
1.2 +++ b/include/nanonote.h Sat Jun 06 23:29:51 2015 +0200
1.3 @@ -1,5 +1,6 @@
1.4 /*
1.5 - * Authors: Xiangfu Liu <xiangfu.z@gmail.com>
1.6 + * Copyright (C) Xiangfu Liu <xiangfu.z@gmail.com>
1.7 + * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.8 *
1.9 * This program is free software; you can redistribute it and/or
1.10 * modify it under the terms of the GNU General Public License
1.11 @@ -14,31 +15,40 @@
1.12 #define __CONFIG_NANONOTE_H
1.13
1.14 /*
1.15 + * Cache Configuration
1.16 + */
1.17 +#define CONFIG_SYS_DCACHE_SIZE 16384
1.18 +#define CONFIG_SYS_ICACHE_SIZE 16384
1.19 +#define CONFIG_SYS_CACHELINE_SIZE 32
1.20 +#define KSEG0 0x80000000
1.21 +
1.22 +/*
1.23 * GPIO definition
1.24 * See: http://en.qi-hardware.com/wiki/Hardware_basics
1.25 */
1.26 -#define GPIO_LCD_CS (2 * 32 + 21)
1.27 -#define GPIO_AMP_EN (3 * 32 + 4)
1.28 +#define GPIO_LCD_CS (2 * 32 + 21)
1.29 +#define GPIO_AMP_EN (3 * 32 + 4)
1.30
1.31 -#define GPIO_SDPW_EN (3 * 32 + 2)
1.32 -#define GPIO_SD_DETECT (3 * 32 + 0)
1.33 +#define GPIO_SDPW_EN (3 * 32 + 2)
1.34 +#define GPIO_SD_DETECT (3 * 32 + 0)
1.35
1.36 -#define GPIO_BUZZ_PWM (3 * 32 + 27)
1.37 -#define GPIO_USB_DETECT (3 * 32 + 28)
1.38 +#define GPIO_BUZZ_PWM (3 * 32 + 27)
1.39 +#define GPIO_USB_DETECT (3 * 32 + 28)
1.40
1.41 -#define GPIO_AUDIO_POP (1 * 32 + 29)
1.42 -#define GPIO_COB_TEST (1 * 32 + 30)
1.43 +#define GPIO_AUDIO_POP (1 * 32 + 29)
1.44 +#define GPIO_COB_TEST (1 * 32 + 30)
1.45
1.46 -#define GPIO_KEYOUT_BASE (2 * 32 + 10)
1.47 -#define GPIO_KEYIN_BASE (3 * 32 + 18)
1.48 -#define GPIO_KEYIN_8 (3 * 32 + 26)
1.49 +#define GPIO_KEYOUT_BASE (2 * 32 + 10)
1.50 +#define GPIO_KEYIN_BASE (3 * 32 + 18)
1.51 +#define GPIO_KEYIN_8 (3 * 32 + 26)
1.52
1.53 -#define GPIO_SD_CD_N GPIO_SD_DETECT /* SD Card insert detect */
1.54 -#define GPIO_SD_VCC_EN_N GPIO_SDPW_EN /* SD Card Power Enable */
1.55 +#define GPIO_SD_CD_N GPIO_SD_DETECT /* SD Card insert detect */
1.56 +#define GPIO_SD_VCC_EN_N GPIO_SDPW_EN /* SD Card Power Enable */
1.57
1.58 -#define GPIO_SD_CMD (3 * 32 + 8)
1.59 +#define GPIO_SD_CMD (3 * 32 + 8)
1.60
1.61 -#define SPEN GPIO_LCD_CS /* LCDCS :Serial command enable */
1.62 -#define SPDA (2 * 32 + 22) /* LCDSCL:Serial command clock input */
1.63 -#define SPCK (2 * 32 + 23) /* LCDSDA:Serial command data input */
1.64 +#define SPEN GPIO_LCD_CS /* LCDCS :Serial command enable */
1.65 +#define SPDA (2 * 32 + 22) /* LCDSCL:Serial command clock input */
1.66 +#define SPCK (2 * 32 + 23) /* LCDSDA:Serial command data input */
1.67 +
1.68 #endif /* __CONFIG_NANONOTE_H */