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 EXYNOS_UART0_PADDR  0x13800000
16#define EXYNOS_UART1_PADDR  0x13810000
17#define EXYNOS_UART2_PADDR  0x13820000
18#define EXYNOS_UART3_PADDR  0x13830000
19#define EXYNOS_UART4_PADDR  0x13840000
20
21#define EXYNOS_UART0_IRQ    84
22#define EXYNOS_UART1_IRQ    85
23#define EXYNOS_UART2_IRQ    86
24#define EXYNOS_UART3_IRQ    87
25#define EXYNOS_UART4_IRQ    88
26
27#define UART_DEFAULT_FIN    90000000
28
29/* official device names */
30enum chardev_id {
31    PS_SERIAL0,
32    PS_SERIAL1,
33    PS_SERIAL2,
34    PS_SERIAL3,
35    PS_NSERIAL,
36    /* defaults */
37    PS_SERIAL_DEFAULT = PS_SERIAL1
38};
39
40#include <platsupport/mach/serial.h>
41
42#define DEFAULT_SERIAL_PADDR EXYNOS_UART1_PADDR
43#define DEFAULT_SERIAL_INTERRUPT EXYNOS_UART1_IRQ
44