blob: 1915ad52494216c38e8203b229d7d453731efe7d [file] [log] [blame]
Paul Burtonf5de32a2016-09-08 07:47:39 +01001/*
2 * Copyright (C) 2016 Imagination Technologies
3 *
4 * SPDX-License-Identifier: GPL-2.0
5 */
6
7#ifndef __CONFIGS_BOSTON_H__
8#define __CONFIGS_BOSTON_H__
9
10/*
Paul Burtonf5de32a2016-09-08 07:47:39 +010011 * CPU
12 */
13#define CONFIG_SYS_MIPS_TIMER_FREQ 30000000
14
15/*
16 * PCI
17 */
Paul Burtonf5de32a2016-09-08 07:47:39 +010018#define CONFIG_CMD_PCI
19
20/*
21 * Memory map
22 */
23#ifdef CONFIG_64BIT
24# define CONFIG_SYS_SDRAM_BASE 0xffffffff80000000
25#else
26# define CONFIG_SYS_SDRAM_BASE 0x80000000
27#endif
28
29#define CONFIG_SYS_INIT_SP_OFFSET 0x400000
30
31#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
32
33#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x100000)
34
35#define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE + 0)
36#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x10000000)
37
38#define CONFIG_SYS_MALLOC_LEN (256 * 1024)
39
40/*
41 * Console
42 */
43#define CONFIG_SYS_MAXARGS 16
44#define CONFIG_SYS_CBSIZE 256
45#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
46 sizeof(CONFIG_SYS_PROMPT) + 16)
47#define CONFIG_SYS_LONGHELP
Paul Burtonf5de32a2016-09-08 07:47:39 +010048
49/*
50 * Flash
51 */
52#define CONFIG_FLASH_CFI_DRIVER
53#define CONFIG_SYS_FLASH_CFI
54#define CONFIG_SYS_FLASH_PROTECTION
55#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
56#define CONFIG_SYS_MAX_FLASH_BANKS_DETECT 1
57#define CONFIG_SYS_MAX_FLASH_SECT 1024
58
59/*
60 * Environment
61 */
62#define CONFIG_ENV_IS_IN_FLASH
63#define CONFIG_ENV_SECT_SIZE 0x20000
64#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
65#ifdef CONFIG_64BIT
66# define CONFIG_ENV_ADDR \
67 (0xffffffffb8000000 + (128 << 20) - CONFIG_ENV_SIZE)
68#else
69# define CONFIG_ENV_ADDR \
70 (0xb8000000 + (128 << 20) - CONFIG_ENV_SIZE)
71#endif
72
73#endif /* __CONFIGS_BOSTON_H__ */