]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/thunderx_88xx.h
Merge git://www.denx.de/git/u-boot-marvell
[people/ms/u-boot.git] / include / configs / thunderx_88xx.h
CommitLineData
746f985a
ST
1/**
2 * (C) Copyright 2014, Cavium Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5**/
6
7#ifndef __THUNDERX_88XX_H__
8#define __THUNDERX_88XX_H__
9
10#define CONFIG_REMAKE_ELF
11
12#define CONFIG_THUNDERX
13
14#define CONFIG_SYS_64BIT
15
16#define CONFIG_SYS_NO_FLASH
17
746f985a
ST
18#define MEM_BASE 0x00500000
19
900f88f3
ST
20#define CONFIG_SYS_LOWMEM_BASE MEM_BASE
21
746f985a
ST
22/* Link Definitions */
23#define CONFIG_SYS_TEXT_BASE 0x00500000
24#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
25
746f985a
ST
26/* SMP Spin Table Definitions */
27#define CPU_RELEASE_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
28
746f985a
ST
29/* Generic Timer Definitions */
30#define COUNTER_FREQUENCY (0x1800000) /* 24MHz */
31
746f985a
ST
32#define CONFIG_SYS_MEMTEST_START MEM_BASE
33#define CONFIG_SYS_MEMTEST_END (MEM_BASE + PHYS_SDRAM_1_SIZE)
34
35/* Size of malloc() pool */
36#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 1024 * 1024)
37
38/* PL011 Serial Configuration */
39
40#define CONFIG_PL01X_SERIAL
41#define CONFIG_PL011_CLOCK 24000000
42#define CONFIG_CONS_INDEX 1
43
44/* Generic Interrupt Controller Definitions */
45#define GICD_BASE (0x801000000000)
46#define GICR_BASE (0x801000002000)
47#define CONFIG_SYS_SERIAL0 0x87e024000000
48#define CONFIG_SYS_SERIAL1 0x87e025000000
49
50#define CONFIG_BAUDRATE 115200
51
746f985a
ST
52/* BOOTP options */
53#define CONFIG_BOOTP_BOOTFILESIZE
54#define CONFIG_BOOTP_BOOTPATH
55#define CONFIG_BOOTP_GATEWAY
56#define CONFIG_BOOTP_HOSTNAME
57#define CONFIG_BOOTP_PXE
746f985a
ST
58
59/* Miscellaneous configurable options */
60#define CONFIG_SYS_LOAD_ADDR (MEM_BASE)
61
62/* Physical Memory Map */
63#define CONFIG_NR_DRAM_BANKS 1
64#define PHYS_SDRAM_1 (MEM_BASE) /* SDRAM Bank #1 */
65#define PHYS_SDRAM_1_SIZE (0x80000000-MEM_BASE) /* 2048 MB */
66#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
67
68/* Initial environment variables */
69#define UBOOT_IMG_HEAD_SIZE 0x40
70/* C80000 - 0x40 */
71#define CONFIG_EXTRA_ENV_SETTINGS \
72 "kernel_addr=08007ffc0\0" \
73 "fdt_addr=0x94C00000\0" \
74 "fdt_high=0x9fffffff\0"
75
76#define CONFIG_BOOTARGS \
77 "console=ttyAMA0,115200n8 " \
78 "earlycon=pl011,0x87e024000000 " \
79 "debug maxcpus=48 rootwait rw "\
80 "root=/dev/sda2 coherent_pool=16M"
746f985a
ST
81
82/* Do not preserve environment */
83#define CONFIG_ENV_IS_NOWHERE 1
84#define CONFIG_ENV_SIZE 0x1000
85
86/* Monitor Command Prompt */
87#define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */
88#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
89 sizeof(CONFIG_SYS_PROMPT) + 16)
746f985a
ST
90#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
91#define CONFIG_SYS_LONGHELP
92#define CONFIG_CMDLINE_EDITING 1
93#define CONFIG_SYS_MAXARGS 64 /* max command args */
94#define CONFIG_NO_RELOCATION 1
95#define CONFIG_LIB_RAND
96#define PLL_REF_CLK 50000000 /* 50 MHz */
97#define NS_PER_REF_CLK_TICK (1000000000/PLL_REF_CLK)
98
99#endif /* __THUNDERX_88XX_H__ */