1/* 2 * Copyright 2018, 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#include <platsupport/mach/serial.h> 15 16/* the UARTs are in one page, so we only map the first one */ 17#define UARTA_PADDR 0x03100000 18#define UARTB_PADDR 0x03110000 19#define UARTC_PADDR 0x0c280000 20#define UARTD_PADDR 0x03130000 21 22#define UARTA_OFFSET 0x0 23#define UARTB_OFFSET 0x0 24#define UARTC_OFFSET 0x0 25#define UARTD_OFFSET 0x0 26 27#define UARTA_IRQ (112 + 32) 28#define UARTB_IRQ (113 + 32) 29#define UARTC_IRQ (114 + 32) 30#define UARTD_IRQ (115 + 32) 31 32 33#define PS_SERIAL_DEFAULT NV_UARTA 34#define DEFAULT_SERIAL_PADDR UARTA_PADDR 35#define DEFAULT_SERIAL_INTERRUPT UARTA_IRQ 36