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/mach/serial.h>
17
18#define UART1_PADDR  0x30860000
19#define UART2_PADDR  0x30890000
20#define UART3_PADDR  0x30880000
21#define UART4_PADDR  0x30a60000
22
23#define UART1_IRQ    58
24#define UART2_IRQ    59
25#define UART3_IRQ    60
26#define UART4_IRQ    61
27
28#define UART_REF_CLK 12096000
29
30#if defined(CONFIG_PLAT_IMX8MM_EVK)
31#define DEFAULT_SERIAL_PADDR        UART2_PADDR
32#define DEFAULT_SERIAL_INTERRUPT    UART2_IRQ
33#elif defined(CONFIG_PLAT_IMX8MQ_EVK)
34#define DEFAULT_SERIAL_PADDR        UART1_PADDR
35#define DEFAULT_SERIAL_INTERRUPT    UART1_IRQ
36#endif
37