1/**
2 * \file
3 * \brief Platform code for ARMv7-A VersatileExpress EMM board
4 */
5
6/*
7 * Copyright (c) 2009-2015 ETH Zurich.
8 * All rights reserved.
9 *
10 * This file is distributed under the terms in the attached LICENSE file.
11 * If you do not find this file, copies can be found by writing to:
12 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
13 */
14
15#include <kernel.h>
16
17#include <maps/vexpress_map.h>
18
19/* XXX - initialise this from the MMAP. */
20lpaddr_t phys_memory_start= GEN_ADDR(31);
21
22#define NUM_UARTS 5
23unsigned serial_console_port = 0;
24unsigned serial_debug_port = 0;
25unsigned serial_num_physical_ports = NUM_UARTS;
26
27const lpaddr_t uart_base[] = {
28    VEXPRESS_MAP_UART0,
29    VEXPRESS_MAP_UART1,
30    VEXPRESS_MAP_UART2,
31    VEXPRESS_MAP_UART3,
32    VEXPRESS_MAP_UART4
33};
34
35const size_t uart_size[] = {
36    VEXPRESS_MAP_UART0_SIZE,
37    VEXPRESS_MAP_UART1_SIZE,
38    VEXPRESS_MAP_UART2_SIZE,
39    VEXPRESS_MAP_UART3_SIZE,
40    VEXPRESS_MAP_UART4_SIZE
41};
42