3d770f88bdeb92d79157d95c544991ec45ed4ce7
[platform/kernel/u-boot.git] / include / configs / thunderx_88xx.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /**
3  * (C) Copyright 2014, Cavium Inc.
4 **/
5
6 #ifndef __THUNDERX_88XX_H__
7 #define __THUNDERX_88XX_H__
8
9 #define CONFIG_THUNDERX
10
11 #define CONFIG_SYS_64BIT
12
13 #define MEM_BASE                        0x00500000
14
15 #define CONFIG_SYS_LOWMEM_BASE          MEM_BASE
16
17 /* Link Definitions */
18 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
19
20 /* SMP Spin Table Definitions */
21 #define CPU_RELEASE_ADDR                (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
22
23 /* Generic Timer Definitions */
24 #define COUNTER_FREQUENCY               (0x1800000)     /* 24MHz */
25
26 /* PL011 Serial Configuration */
27
28 #define CONFIG_PL011_CLOCK              24000000
29
30 /* Generic Interrupt Controller Definitions */
31 #define GICD_BASE                       (0x801000000000)
32 #define GICR_BASE                       (0x801000002000)
33 #define CONFIG_SYS_SERIAL0              0x87e024000000
34 #define CONFIG_SYS_SERIAL1              0x87e025000000
35
36 /* BOOTP options */
37 #define CONFIG_BOOTP_BOOTFILESIZE
38
39 /* Miscellaneous configurable options */
40
41 /* Physical Memory Map */
42 #define PHYS_SDRAM_1                    (MEM_BASE)        /* SDRAM Bank #1 */
43 #define PHYS_SDRAM_1_SIZE               (0x80000000-MEM_BASE)   /* 2048 MB */
44 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM_1
45
46 /* Initial environment variables */
47 #define UBOOT_IMG_HEAD_SIZE             0x40
48 /* C80000 - 0x40 */
49 #define CONFIG_EXTRA_ENV_SETTINGS       \
50                                         "kernel_addr=08007ffc0\0"       \
51                                         "fdt_addr=0x94C00000\0"         \
52                                         "fdt_high=0x9fffffff\0"
53
54 /* Do not preserve environment */
55
56 /* Monitor Command Prompt */
57 #define CONFIG_SYS_CBSIZE               512     /* Console I/O Buffer Size */
58 #define CONFIG_SYS_MAXARGS              64              /* max command args */
59 #define PLL_REF_CLK                     50000000        /* 50 MHz */
60 #define NS_PER_REF_CLK_TICK             (1000000000/PLL_REF_CLK)
61
62 #endif /* __THUNDERX_88XX_H__ */