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#define UART0_PADDR  0x44E09000
16#define UART1_PADDR  0x48022000
17#define UART2_PADDR  0x48024000
18
19#define UART0_IRQ    72
20#define UART1_IRQ    73
21#define UART2_IRQ    74
22
23enum chardev_id {
24    DM_UART0,
25    DM_UART1,
26    DM_UART2,
27    /* Aliases */
28    PS_SERIAL0 = DM_UART0,
29    PS_SERIAL1 = DM_UART1,
30    PS_SERIAL2 = DM_UART2,
31    /* defaults */
32    PS_SERIAL_DEFAULT = DM_UART0
33};
34
35#define DEFAULT_SERIAL_PADDR UART0_PADDR
36#define DEFAULT_SERIAL_INTERRUPT UART0_IRQ
37