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 0xc1108000 16#define UART1_PADDR 0xc1108000 17#define UART2_PADDR 0xc1108000 18#define UART0_AO_PADDR 0xc8100000 19#define UART2_AO_PADDR 0xc8104000 20 21#define UART0_OFFSET 0x4c0 22#define UART1_OFFSET 0x4dc 23#define UART2_OFFSET 0x700 24#define UART0_AO_OFFSET 0x4c0 25#define UART2_AO_OFFSET 0x4e0 26 27#define UART0_IRQ 54 28#define UART1_IRQ 105 29#define UART2_IRQ 123 30#define UART0_AO_IRQ 225 31#define UART2_AO_IRQ 229 32 33enum chardev_id { 34 UART0, 35 UART1, 36 UART2, 37 UART0_AO, 38 UART2_AO, 39 /* Aliases */ 40 PS_SERIAL0 = UART0, 41 PS_SERIAL1 = UART1, 42 PS_SERIAL2 = UART2, 43 PS_SERIAL3 = UART0_AO, 44 PS_SERIAL4 = UART2_AO, 45 /* defaults */ 46 PS_SERIAL_DEFAULT = PS_SERIAL3 47}; 48 49#define DEFAULT_SERIAL_PADDR UART0_AO_PADDR 50#define DEFAULT_SERIAL_INTERRUPT UART0_AO_IRQ 51