1/*
2 * Copyright 2019, 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#define UART0_PADDR  0x1c090000
16#define UART1_PADDR  0x1c0a0000
17#define UART2_PADDR  0x1c0b0000
18#define UART3_PADDR  0x1c0c0000
19
20#define UART0_IRQ    37
21#define UART1_IRQ    38
22#define UART2_IRQ    39
23#define UART3_IRQ    40
24
25enum chardev_id {
26    PL001_UART0,
27    PL001_UART1,
28    PL001_UART2,
29    PL001_UART3,
30    /* Aliases */
31    PS_SERIAL0 = PL001_UART0,
32    PS_SERIAL1 = PL001_UART1,
33    PS_SERIAL2 = PL001_UART2,
34    PS_SERIAL3 = PL001_UART3,
35    /* defaults */
36    PS_SERIAL_DEFAULT = PL001_UART0
37};
38
39#define DEFAULT_SERIAL_PADDR        UART0_PADDR
40#define DEFAULT_SERIAL_INTERRUPT    UART0_IRQ
41
42