Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 1 | /* |
Madhukar | 3fd9049 | 2019-06-04 15:57:18 -0500 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, Arm Limited. All rights reserved. |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | /******************************************************************************* |
| 8 | * FVP specific definitions. Used only by FVP specific code. |
| 9 | ******************************************************************************/ |
| 10 | |
| 11 | #ifndef __FVP_DEF_H__ |
| 12 | #define __FVP_DEF_H__ |
| 13 | |
| 14 | #include <platform_def.h> |
| 15 | |
| 16 | /******************************************************************************* |
| 17 | * Cluster Topology definitions |
| 18 | ******************************************************************************/ |
Madhukar | 3fd9049 | 2019-06-04 15:57:18 -0500 | [diff] [blame] | 19 | #define FVP_MAX_CPUS_PER_CLUSTER 8 |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 20 | /* Currently the highest cluster count on the FVP is 4 (Quad cluster) */ |
| 21 | #define FVP_CLUSTER_COUNT 4 |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 22 | |
| 23 | /******************************************************************************* |
| 24 | * FVP memory map related constants |
| 25 | ******************************************************************************/ |
| 26 | |
| 27 | #define DEVICE0_BASE 0x1a000000 |
| 28 | #define DEVICE0_SIZE 0x12200000 |
| 29 | |
| 30 | #define DEVICE1_BASE 0x2f000000 |
| 31 | #define DEVICE1_SIZE 0x400000 |
| 32 | |
| 33 | /******************************************************************************* |
| 34 | * GIC-400 & interrupt handling related constants |
| 35 | ******************************************************************************/ |
| 36 | /* Base FVP compatible GIC memory map */ |
| 37 | #define GICD_BASE 0x2f000000 |
| 38 | #define GICR_BASE 0x2f100000 |
| 39 | #define GICC_BASE 0x2c000000 |
| 40 | |
| 41 | /******************************************************************************* |
| 42 | * PL011 related constants |
| 43 | ******************************************************************************/ |
| 44 | #define PL011_UART0_BASE 0x1c090000 |
Antonio Nino Diaz | 99f4fd2 | 2018-07-03 20:25:16 +0100 | [diff] [blame] | 45 | #define PL011_UART1_BASE 0x1c0a0000 |
| 46 | #define PL011_UART2_BASE 0x1c0b0000 |
| 47 | #define PL011_UART3_BASE 0x1c0c0000 |
| 48 | |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 49 | #define PL011_UART0_CLK_IN_HZ 24000000 |
Antonio Nino Diaz | 99f4fd2 | 2018-07-03 20:25:16 +0100 | [diff] [blame] | 50 | #define PL011_UART1_CLK_IN_HZ 24000000 |
| 51 | #define PL011_UART2_CLK_IN_HZ 24000000 |
| 52 | #define PL011_UART3_CLK_IN_HZ 24000000 |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 53 | |
| 54 | #define PLAT_ARM_UART_BASE PL011_UART0_BASE |
| 55 | #define PLAT_ARM_UART_CLK_IN_HZ PL011_UART0_CLK_IN_HZ |
| 56 | |
| 57 | #endif /* __FVP_DEF_H__ */ |