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