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 0xFF180000 16#define UART1_PADDR 0xFF190000 17#define UART2_PADDR 0xFF1A0000 18#define UART3_PADDR 0xFF1B0000 19#define UART4_PADDR 0xFF370000 20 21#define UART0_IRQ 131 22#define UART1_IRQ 130 23#define UART2_IRQ 132 24#define UART3_IRQ 133 25#define UART4_IRQ 134 26 27enum chardev_id { 28 RP_UART0, 29 RP_UART1, 30 RP_UART2, 31 RP_UART3, 32 RP_UART4, 33 /* Aliases */ 34 PS_SERIAL0 = RP_UART0, 35 PS_SERIAL1 = RP_UART1, 36 PS_SERIAL2 = RP_UART2, 37 PS_SERIAL3 = RP_UART3, 38 PS_SERIAL4 = RP_UART4, 39 /* defaults */ 40 PS_SERIAL_DEFAULT = RP_UART2 41}; 42 43#define DEFAULT_SERIAL_PADDR UART2_PADDR 44#define DEFAULT_SERIAL_INTERRUPT UART2_IRQ 45