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