Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef __JUNO_DEF_H__ |
| 8 | #define __JUNO_DEF_H__ |
| 9 | |
| 10 | #include <platform_def.h> |
| 11 | |
| 12 | /******************************************************************************* |
| 13 | * Juno memory map related constants |
| 14 | ******************************************************************************/ |
| 15 | /* First peripherals region excluding Non-Trusted ROM and Non-Trusted RAM */ |
| 16 | #define DEVICE0_BASE 0x20000000 |
| 17 | #define DEVICE0_SIZE 0x0e000000 |
| 18 | |
| 19 | /* PCIe expansion region and 2nd peripherals region */ |
| 20 | #define DEVICE1_BASE 0x40000000 |
| 21 | #define DEVICE1_SIZE 0x40000000 |
| 22 | |
| 23 | #define IOFPGA_PERIPHERALS_BASE 0x1c000000 |
| 24 | #define IOFPGA_PERIPHERALS_SIZE 0x3000000 |
| 25 | |
| 26 | /******************************************************************************* |
| 27 | * GIC-400 & interrupt handling related constants |
| 28 | ******************************************************************************/ |
| 29 | #define GICD_BASE 0x2c010000 |
| 30 | #define GICC_BASE 0x2c02f000 |
| 31 | /* Juno doesn't support GIC Redistributor, it's a GICv3 feature */ |
| 32 | #define GICR_BASE 0 |
| 33 | |
| 34 | /******************************************************************************* |
| 35 | * PL011 related constants |
| 36 | ******************************************************************************/ |
| 37 | /* SoC UART0 */ |
| 38 | #define PL011_UART2_BASE 0x7ff80000 |
| 39 | #define PL011_UART2_CLK_IN_HZ 7273800 |
| 40 | |
| 41 | #define PLAT_ARM_UART_BASE PL011_UART2_BASE |
| 42 | #define PLAT_ARM_UART_CLK_IN_HZ PL011_UART2_CLK_IN_HZ |
| 43 | |
| 44 | /******************************************************************************* |
| 45 | * Motherboard timer related constants |
| 46 | ******************************************************************************/ |
| 47 | #define MB_TIMER1_BASE 0x1C120000 |
| 48 | #define MB_TIMER1_IRQ 198 |
| 49 | #define MB_TIMER1_FREQ 32000 |
| 50 | |
| 51 | /******************************************************************************* |
| 52 | * Ethernet controller related constants |
| 53 | ******************************************************************************/ |
| 54 | #define ETHERNET_BASE 0x18000000 |
| 55 | #define ETHERNET_SIZE 0x04000000 |
| 56 | #define ETHERNET_IRQ_CFG_OFFSET 0x54 |
| 57 | #define ETHERNET_IRQ_CFG_VAL 0x11 |
| 58 | |
| 59 | #endif /* __JUNO_DEF_H__ */ |
| 60 | |