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 BUS_ADDR_OFFSET 0x7E000000 16#define PADDDR_OFFSET 0x3F000000 17 18#define UART_BUSADDR 0x7E215000 19 20#define UART_PADDR_0 (UART_BUSADDR-BUS_ADDR_OFFSET+PADDDR_OFFSET) 21/* Broadcom 2835 Peripheral Manual, section 7.5, 22 * table "ARM Peripherals interrupts table" 23 */ 24#define UART_IRQ_0 (57) 25 26enum chardev_id { 27 BCM2837_UART0, 28 29 NUM_CHARDEV, 30 /* Aliases */ 31 PS_SERIAL0 = BCM2837_UART0, 32 /* defaults */ 33 PS_SERIAL_DEFAULT = BCM2837_UART0 34}; 35 36#define DEFAULT_SERIAL_PADDR UART_PADDR_0 37#define DEFAULT_SERIAL_INTERRUPT UART_IRQ_0 38