Paul Burton | 25c7de2 | 2018-12-16 19:25:23 -0300 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * CI20 configuration |
| 4 | * |
| 5 | * Copyright (c) 2013 Imagination Technologies |
| 6 | * Author: Paul Burton <paul.burton@imgtec.com> |
| 7 | */ |
| 8 | |
| 9 | #ifndef __CONFIG_CI20_H__ |
| 10 | #define __CONFIG_CI20_H__ |
| 11 | |
Paul Burton | 25c7de2 | 2018-12-16 19:25:23 -0300 | [diff] [blame] | 12 | /* Ingenic JZ4780 clock configuration. */ |
Paul Burton | 25c7de2 | 2018-12-16 19:25:23 -0300 | [diff] [blame] | 13 | #define CONFIG_SYS_MHZ 1200 |
| 14 | #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) |
| 15 | |
| 16 | /* Memory configuration */ |
| 17 | #define CONFIG_SYS_MONITOR_LEN (512 * 1024) |
Paul Burton | 25c7de2 | 2018-12-16 19:25:23 -0300 | [diff] [blame] | 18 | #define CONFIG_SYS_BOOTPARAMS_LEN (128 * 1024) |
| 19 | |
| 20 | #define CONFIG_SYS_SDRAM_BASE 0x80000000 /* cached (KSEG0) address */ |
| 21 | #define CONFIG_SYS_INIT_SP_OFFSET 0x400000 |
Paul Burton | 25c7de2 | 2018-12-16 19:25:23 -0300 | [diff] [blame] | 22 | |
| 23 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE |
| 24 | |
| 25 | /* NS16550-ish UARTs */ |
| 26 | #define CONFIG_SYS_NS16550_CLK 48000000 |
Paul Burton | 25c7de2 | 2018-12-16 19:25:23 -0300 | [diff] [blame] | 27 | |
| 28 | /* Ethernet: davicom DM9000 */ |
| 29 | #define CONFIG_DRIVER_DM9000 1 |
| 30 | #define CONFIG_DM9000_BASE 0xb6000000 |
| 31 | #define DM9000_IO CONFIG_DM9000_BASE |
| 32 | #define DM9000_DATA (CONFIG_DM9000_BASE + 2) |
| 33 | |
Paul Burton | 25c7de2 | 2018-12-16 19:25:23 -0300 | [diff] [blame] | 34 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O buffer size */ |
| 35 | #define CONFIG_SYS_MAXARGS 32 /* Max number of command args */ |
| 36 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 37 | /* Boot argument buffer size */ |
| 38 | #define CONFIG_VERSION_VARIABLE /* U-BOOT version */ |
| 39 | |
| 40 | /* Miscellaneous configuration options */ |
| 41 | #define CONFIG_SYS_BOOTM_LEN (64 << 20) |
| 42 | |
| 43 | /* SPL */ |
| 44 | #define CONFIG_SPL_STACK 0xf4008000 /* only max. 2KB spare! */ |
| 45 | |
Paul Burton | 25c7de2 | 2018-12-16 19:25:23 -0300 | [diff] [blame] | 46 | #define CONFIG_SPL_MAX_SIZE ((14 * 1024) - 0xa00) |
| 47 | |
| 48 | #define CONFIG_SPL_BSS_START_ADDR 0xf4004000 |
| 49 | #define CONFIG_SPL_BSS_MAX_SIZE 0x00002000 /* 512KB, arbitrary */ |
| 50 | |
| 51 | #define CONFIG_SPL_START_S_PATH "arch/mips/mach-jz47xx" |
| 52 | |
| 53 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x1c /* 14 KiB offset */ |
| 54 | |
| 55 | #endif /* __CONFIG_CI20_H__ */ |