1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13#pragma once
14
15#include <autoconf.h>
16#include <platsupport/gen_config.h>
17#include <platsupport/mach/serial.h>
18
19#define UART1_PADDR  0x02020000
20#define UART2_PADDR  0x021E8000
21#define UART3_PADDR  0x021EC000
22#define UART4_PADDR  0x021F0000
23#define UART5_PADDR  0x021F4000
24
25#define UART1_IRQ    58
26#define UART2_IRQ    59
27#define UART3_IRQ    60
28#define UART4_IRQ    61
29#define UART5_IRQ    62
30
31#define UART_REF_CLK 40089600
32
33#if defined(CONFIG_PLAT_SABRE)
34    #define DEFAULT_SERIAL_PADDR UART2_PADDR
35    #define DEFAULT_SERIAL_INTERRUPT UART2_IRQ
36#elif defined(CONFIG_PLAT_WANDQ)
37    #define DEFAULT_SERIAL_PADDR UART1_PADDR
38    #define DEFAULT_SERIAL_INTERRUPT UART1_IRQ
39#endif
40