Module Name:    src
Committed By:   matt
Date:           Tue Feb 19 16:07:23 UTC 2013

Added Files:
        src/sys/arch/arm/cortina: files.g2 g2_intr.h g2_reg.h

Log Message:
Start of Cortina CS75xx support.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/cortina/files.g2 \
    src/sys/arch/arm/cortina/g2_intr.h src/sys/arch/arm/cortina/g2_reg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/sys/arch/arm/cortina/files.g2
diff -u /dev/null src/sys/arch/arm/cortina/files.g2:1.1
--- /dev/null	Tue Feb 19 16:07:23 2013
+++ src/sys/arch/arm/cortina/files.g2	Tue Feb 19 16:07:23 2013
@@ -0,0 +1,96 @@
+#	$NetBSD: files.g2,v 1.1 2013/02/19 16:07:23 matt Exp $
+#
+# Configuration info for Broadcom BCM5301X ARM Peripherals
+#
+
+include "arch/arm/pic/files.pic"
+include "arch/arm/cortex/files.cortex"
+
+file	arch/arm/arm32/arm32_boot.c
+file	arch/arm/arm32/arm32_kvminit.c
+file	arch/arm/arm32/arm32_reboot.c
+file	arch/arm/arm32/irq_dispatch.S
+
+file	arch/arm/cortina/g2_board.c
+file	arch/arm/broadcom/bcmgen_space.c
+
+# Console parameters
+defparam opt_cortina.h				CONADDR
+defparam opt_cortina.h				CONSPEED
+defparam opt_cortina.h				CONMODE
+defparam opt_cortina.h				MEMSIZE
+defflag opt_cortina.h				G2_CONSOLE_EARLY
+defflag opt_cortina.h				G2ETH_COUNTERS
+
+# G2 Peripherial attach point
+device	g2periph { [channel=-1] } : bus_space_generic
+attach	g2periph at mainbus
+file	arch/arm/cortina/g2_periph.c		g2periph	needs-flag
+
+device	g2com { } : tty
+attach	g2com at g2periph with g2com
+file	arch/arm/cortina/g2_com.c		g2com
+
+device	g2pcie : pcibus
+attach	g2pcie at g2periph
+file	arch/arm/cortina/g2_pcie.c		g2pcie
+
+device	g2i2c : i2cbus, i2cexec
+attach	g2i2c at g2periph with bcmi2c_ccb
+file	arch/arm/cortina/g2_i2c.c		g2i2c
+
+device	g2trng
+attach	g2trng at g2periph
+file	arch/arm/cortina/g2_trng.c		g2trng	needs-flag
+
+device	g2mdio : mii
+attach	g2mdio at g2periph
+file	arch/arm/cortina/g2_mdio.c		g2mdio
+
+device	g2eth { } : ether, ifnet, arp
+attach	g2eth at g2periph
+file	arch/arm/cortina/g2_eth.c		g2eth
+
+# USB2 Host Controller (EHCI)
+attach	ohci at g2periph with g2ohci
+attach	ehci at g2periph with g2ehci
+file	arch/arm/cortina/g2_ohci.c		g2ohci
+file	arch/arm/cortina/g2_ehci.c		g2ehci
+
+# External Mass Media Controller (SDHC)
+attach	sdhc at g2periph with g2sdhc
+file	arch/arm/cortina/g2_sdhc.c		g2sdhc
+
+# Advanced Host Controller Interface (SATA)
+attach	ahcisata at g2periph with g2ahci
+file	arch/arm/cortina/g2_ahci.c		g2ahci
+
+# Crypto Engine
+device	g2sec : opencrypto
+attach	g2sec at g2periph
+file	arch/arm/cortina/g2_sec.c		g2sec
+
+# Real Time Clock
+device	g2rtc
+attach	g2rtc at g2periph
+file	arch/arm/cortina/g2_rtc.c		g2rtc
+
+# General Purpose I/O
+device	g2gpio : gpiobus
+attach	g2gpio at g2periph
+file	arch/arm/cortina/g2_gpio.c		g2gpio
+
+# Serial Peripheral Interface
+device	g2spi : spibus
+attach	g2spi at g2periph
+file	arch/arm/cortina/g2_spi.c		g2spi
+
+# Flash (NAND)
+device	g2flash : nandbus
+attach	g2flash at g2periph
+file	arch/arm/cortina/g2_flash.c		g2flash
+
+# Sony/Philips Digital Interconnect Format
+device	g2spdif : audiobus
+attach	g2spdif at g2periph
+file	arch/arm/cortina/g2_spdif.c		g2spdif
Index: src/sys/arch/arm/cortina/g2_intr.h
diff -u /dev/null src/sys/arch/arm/cortina/g2_intr.h:1.1
--- /dev/null	Tue Feb 19 16:07:23 2013
+++ src/sys/arch/arm/cortina/g2_intr.h	Tue Feb 19 16:07:23 2013
@@ -0,0 +1,166 @@
+/* $NetBSD: g2_intr.h,v 1.1 2013/02/19 16:07:23 matt Exp $ */
+/*-
+ * Copyright (c) 2013 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Matt Thomas of 3am Software Foundry.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef _ARM_CORTINA_G2_INTR_H_
+#define _ARM_CORTINA_G2_INTR_H_
+
+#define	PIC_G2_GIC_MAXSOURCES		80
+#define	PIC_G2_REGBUS_MAXSOURCES	16
+#define	PIC_G2_PCIE_MAXSOURCES		8	/* times 3 */
+#define	PIC_G2_DMAENG_MAXSOURCES	20
+#define	PIC_G2_DMASSP_MAXSOURCES	16
+#define	PIC_G2_GPIO_MAXSOURCES		32	/* times 5 */
+
+#define	PIC_MAXSOURCES		PIC_G2_GIC_MAXSOURCES
+#define	PIC_MAXMAXSOURCES	\
+	(PIC_G2_GIC_MAXSOURCES + PIC_G2_REGBUS_MAXSOURCES \
+	 + 3*PIC_G2_PCIE_MAXSOURCES + PIC_G2_DMAENG_MAXSOURCES \
+	 + PIC_G2_DMASSP_MAXSOURCES + 5 * PIC_G2_GPIO_MAXSOURCES)
+
+#define	PIC_G2_GIC_BASE		0
+#define	PIC_G2_REGBUS_BASE	PIC_G2_GIC_MAXSOURCES
+#define	PIC_G2_PCIE0_BASE	(PIC_G2_REGBUS_BASE + PIC_G2_REGBUS_MAXSOURCES)
+#define	PIC_G2_PCIE1_BASE	(PIC_G2_PCIE0_BASE + PIC_G2_PCIE_MAXSOURCES)
+#define	PIC_G2_PCIE2_BASE	(PIC_G2_PCIE1_BASE + PIC_G2_PCIE_MAXSOURCES)
+#define	PIC_G2_DMAENG_BASE	(PIC_G2_PCIE2_BASE + PIC_G2_PCIE_MAXSOURCES)
+#define	PIC_G2_DMASSP_BASE	(PIC_G2_DMAENG_BASE + PIC_G2_DMAENG_MAXSOURCES)
+#define	PIC_G2_GPIO0_BASE	(PIC_G2_DMASSP_BASE + PIC_G2_DMASSP_MAXSOURCES)
+#define	PIC_G2_GPIO1_BASE	(PIC_G2_GPIO0_BASE + PIC_G2_GPIO_MAXSOURCES)
+#define	PIC_G2_GPIO2_BASE	(PIC_G2_GPIO1_BASE + PIC_G2_GPIO_MAXSOURCES)
+#define	PIC_G2_GPIO3_BASE	(PIC_G2_GPIO2_BASE + PIC_G2_GPIO_MAXSOURCES)
+#define	PIC_G2_GPIO4_BASE	(PIC_G2_GPIO3_BASE + PIC_G2_GPIO_MAXSOURCES)
+
+/*
+ * The BCM53xx uses a generic interrupt controller so pull that stuff.
+ */
+#include <arm/cortex/gic_intr.h>
+#include <arm/cortex/a9tmr_intr.h>	/* A9 Timer PPIs */
+
+#define	IRQ_GLOBAL_SYS		(PIC_G2_GIC_BASE + 32)
+#define	IRQ_NETENG		(PIC_G2_GIC_BASE + 33)
+#define	IRQ_ARM_PARITY		(PIC_G2_GIC_BASE + 34)
+#define	IRQ_PERIPH_REGBUS	(PIC_G2_GIC_BASE + 35)
+#define	IRQ_L2_CTRL		(PIC_G2_GIC_BASE + 36)
+#define	IRQ_SDRAM_CTRL		(PIC_G2_GIC_BASE + 37)
+#define	IRQ_UART0		(PIC_G2_GIC_BASE + 38)
+#define	IRQ_UART1		(PIC_G2_GIC_BASE + 39)
+#define	IRQ_UART2		(PIC_G2_GIC_BASE + 40)
+#define	IRQ_UART3		(PIC_G2_GIC_BASE + 41)
+#define	IRQ_RTC_ALARM		(PIC_G2_GIC_BASE + 42)
+#define	IRQ_RTC_PERIODIC	(PIC_G2_GIC_BASE + 43)
+#define	IRQ_WAKEONLAN0		(PIC_G2_GIC_BASE + 44)
+#define	IRQ_WAKEONLAN1		(PIC_G2_GIC_BASE + 45)
+#define	IRQ_WAKEONLAN2		(PIC_G2_GIC_BASE + 46)
+#define	IRQ_DMA			(PIC_G2_GIC_BASE + 47)
+#define	IRQ_SW0			(PIC_G2_GIC_BASE + 48)
+#define	IRQ_SW1			(PIC_G2_GIC_BASE + 49)
+#define	IRQ_FLASH_CTRL		(PIC_G2_GIC_BASE + 50)
+#define	IRQ_TS_CTRL		(PIC_G2_GIC_BASE + 51)
+#define	IRQ_CIR_CTRL		(PIC_G2_GIC_BASE + 52)
+#define	IRQ_PWR_CTRL		(PIC_G2_GIC_BASE + 53)
+#define	IRQ_RECIRC_MB0		(PIC_G2_GIC_BASE + 54)
+#define	IRQ_RECIRC_MB1		(PIC_G2_GIC_BASE + 55)
+#define	IRQ_CRYPTO_ENG0		(PIC_G2_GIC_BASE + 56)
+#define	IRQ_CRYPTO_ENG1		(PIC_G2_GIC_BASE + 57)
+#define	IRQ_SDMMC		(PIC_G2_GIC_BASE + 58)
+#define	IRQ_ARM_CTIRQ0		(PIC_G2_GIC_BASE + 59)
+#define	IRQ_ARM_CTIRQ1		(PIC_G2_GIC_BASE + 60)
+#define	IRQ_USB_DEV		(PIC_G2_GIC_BASE + 61)
+#define	IRQ_USB_EHCI		(PIC_G2_GIC_BASE + 62)
+#define	IRQ_USB_OHCI		(PIC_G2_GIC_BASE + 63)
+#define	IRQ_AHCI_CTRL		(PIC_G2_GIC_BASE + 64)
+#define	IRQ_PCIE0		(PIC_G2_GIC_BASE + 65)
+#define	IRQ_PCIE1		(PIC_G2_GIC_BASE + 66)
+#define	IRQ_PCIE2		(PIC_G2_GIC_BASE + 67)
+#define	IRQ_LCD			(PIC_G2_GIC_BASE + 68)
+#define	IRQ_NI_RX_XRAM0		(PIC_G2_GIC_BASE + 69)
+#define	IRQ_NI_RX_XRAM1		(PIC_G2_GIC_BASE + 70)
+#define	IRQ_NI_RX_XRAM2		(PIC_G2_GIC_BASE + 71)
+#define	IRQ_NI_RX_XRAM3		(PIC_G2_GIC_BASE + 72)
+#define	IRQ_NI_RX_XRAM4		(PIC_G2_GIC_BASE + 73)
+#define	IRQ_NI_RX_XRAM5		(PIC_G2_GIC_BASE + 74)
+#define	IRQ_NI_RX_XRAM6		(PIC_G2_GIC_BASE + 75)
+#define	IRQ_NI_RX_XRAM7		(PIC_G2_GIC_BASE + 76)
+#define	IRQ_NI_RX_XRAM8		(PIC_G2_GIC_BASE + 77)
+#define	IRQ_SPDIF		(PIC_G2_GIC_BASE + 78)
+
+#define	IRQ_REGBUS_SOFT0	(PIC_G2_REGBUS_BASE + 0)
+#define	IRQ_REGBUS_SOFT1	(PIC_G2_REGBUS_BASE + 1)
+#define	IRQ_REGBUS_TIMER0	(PIC_G2_REGBUS_BASE + 2)
+#define	IRQ_REGBUS_TIMER1	(PIC_G2_REGBUS_BASE + 3)
+#define	IRQ_REGBUS_AXII		(PIC_G2_REGBUS_BASE + 4)
+#define	IRQ_REGBUS_SPI		(PIC_G2_REGBUS_BASE + 5)
+#define	IRQ_REGBUS_GPIO0	(PIC_G2_REGBUS_BASE + 6)
+#define	IRQ_REGBUS_GPIO1	(PIC_G2_REGBUS_BASE + 7)
+#define	IRQ_REGBUS_GPIO2	(PIC_G2_REGBUS_BASE + 8)
+#define	IRQ_REGBUS_GPIO3	(PIC_G2_REGBUS_BASE + 9)
+#define	IRQ_REGBUS_GPIO4	(PIC_G2_REGBUS_BASE + 10)
+#define	IRQ_REGBUS_BIWI		(PIC_G2_REGBUS_BASE + 11)
+#define	IRQ_REGBUS_MDIO		(PIC_G2_REGBUS_BASE + 12)
+#define	IRQ_REGBUS_DMASSP	(PIC_G2_REGBUS_BASE + 13)
+#define	IRQ_REGBUS_TRNG		(PIC_G2_REGBUS_BASE + 14)
+
+#define	IRQ_DMAENG_DESC		(PIC_G2_DMAENG_BASE + 0)
+#define	IRQ_DMAENG_RX_0		(PIC_G2_DMAENG_BASE + 1)
+#define	IRQ_DMAENG_RX_1		(PIC_G2_DMAENG_BASE + 2)
+#define	IRQ_DMAENG_RX_2		(PIC_G2_DMAENG_BASE + 3)
+#define	IRQ_DMAENG_RX_3		(PIC_G2_DMAENG_BASE + 4)
+#define	IRQ_DMAENG_RX_4		(PIC_G2_DMAENG_BASE + 5)
+#define	IRQ_DMAENG_RX_5		(PIC_G2_DMAENG_BASE + 6)
+#define	IRQ_DMAENG_RX_6		(PIC_G2_DMAENG_BASE + 7)
+#define	IRQ_DMAENG_RX_7		(PIC_G2_DMAENG_BASE + 8)
+#define	IRQ_DMAENG_TX_0		(PIC_G2_DMAENG_BASE + 9)
+#define	IRQ_DMAENG_TX_1		(PIC_G2_DMAENG_BASE + 10)
+#define	IRQ_DMAENG_TX_2		(PIC_G2_DMAENG_BASE + 11)
+#define	IRQ_DMAENG_TX_3		(PIC_G2_DMAENG_BASE + 12)
+#define	IRQ_DMAENG_TX_4		(PIC_G2_DMAENG_BASE + 13)
+#define	IRQ_DMAENG_TX_5		(PIC_G2_DMAENG_BASE + 14)
+#define	IRQ_DMAENG_TX_6		(PIC_G2_DMAENG_BASE + 15)
+#define	IRQ_DMAENG_TX_7		(PIC_G2_DMAENG_BASE + 16)
+#define	IRQ_DMAENG_BMC_0	(PIC_G2_DMAENG_BASE + 17)
+#define	IRQ_DMAENG_BMC_1	(PIC_G2_DMAENG_BASE + 18)
+
+#define	IRQ_DMASSP_DESC		(PIC_G2_DMASSP_BASE + 0)
+#define	IRQ_DMASSP_RX_5		(PIC_G2_DMASSP_BASE + 1)
+#define	IRQ_DMASSP_RX_6		(PIC_G2_DMASSP_BASE + 2)
+#define	IRQ_DMASSP_RX_7		(PIC_G2_DMASSP_BASE + 3)
+#define	IRQ_DMASSP_TX_5		(PIC_G2_DMASSP_BASE + 4)
+#define	IRQ_DMASSP_TX_6		(PIC_G2_DMASSP_BASE + 5)
+#define	IRQ_DMASSP_TX_7		(PIC_G2_DMASSP_BASE + 6)
+#define	IRQ_DMASSP_AXI_RX_RD_DESC (PIC_G2_DMASSP_BASE + 7)
+#define	IRQ_DMASSP_AXI_TX_RD_DESC (PIC_G2_DMASSP_BASE + 8)
+#define	IRQ_DMASSP_AXI_TX_RD_DATA (PIC_G2_DMASSP_BASE + 9)
+#define	IRQ_DMASSP_AXI_RX_WR_DESC (PIC_G2_DMASSP_BASE + 10)
+#define	IRQ_DMASSP_AXI_RX_WR_DATA (PIC_G2_DMASSP_BASE + 11)
+#define	IRQ_DMASSP_AXI_TX_WR_DESC (PIC_G2_DMASSP_BASE + 12)
+#define	IRQ_DMASSP_SSP_0	(PIC_G2_DMASSP_BASE + 13)
+#define	IRQ_DMASSP_SSP_1	(PIC_G2_DMASSP_BASE + 14)
+
+#endif /* _ARM_CORTINA_G2_INTR_H_ */
Index: src/sys/arch/arm/cortina/g2_reg.h
diff -u /dev/null src/sys/arch/arm/cortina/g2_reg.h:1.1
--- /dev/null	Tue Feb 19 16:07:23 2013
+++ src/sys/arch/arm/cortina/g2_reg.h	Tue Feb 19 16:07:23 2013
@@ -0,0 +1,117 @@
+/* $NetBSD: g2_reg.h,v 1.1 2013/02/19 16:07:23 matt Exp $ */
+/*-
+ * Copyright (c) 2013 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Matt Thomas of 3am Software Foundry.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef _ARM_CORTINA_G2_REG_H_
+#define _ARM_CORTINA_G2_REG_H_
+
+#define	G2_PERIPH_PBASE		0xf0000000
+#define	G2_PERIPH_SIZE		0x00100000
+
+#define	G2_SDRAM_PBASE		0xf0500000
+
+#define	G2_TRNG_PBASE		0xf0600000
+
+#define	G2_AHBAXI_PBASE		0xf4000000
+#define	G2_EHCI_PBASE		0xf4000000
+#define	G2_OHCI_PBASE		0xf4040000
+#define	G2_USBD_PBASE		0xf4080000
+#define	G2_SDC_PBASE		0xf40c0000
+#define	G2_AHCI_PBASE		0xf4100000
+
+#define	G2_RTC_PBASE		0xf4200000
+#define	G2_CIR_PWRCTRL_PBASE	0xf4210000
+#define	G2_SPDIF_PBASE		0xf4270000
+
+#define	G2_ROMOTP_PBASE		0xf5008800
+
+#define	G2_CRYPTO_PBASE		0xf6600000
+#define	G2_CRYPTO_SIZE		0x00300000
+#define	G2_RECIRC_TOP		0xf6800000
+
+#define	G2_ARMCORE_PBASE	0xf8000000
+#define	G2_ARMCORE_SIZE		0x00002000
+
+#define	G2_PCIE0_PBASE		0x80000000
+#define	G2_PCIE1_PBASE		0xa0000000
+#define	G2_PCIE2_PBASE		0xc0000000
+#defien	G2_PCIE_MEM_SIZE	0x20000000
+
+#define	G2_UART0_BASE		0x70110
+#define	G2_UART1_BASE		0x70140
+#define	G2_UART2_BASE		0x70170
+#define	G2_UART3_BASE		0x701a0
+
+#define	G2_UART_CFG		0x00
+#define	G2_UART_FC		0x04
+#define	G2_UART_RXSAMPLE	0x08
+#define	G2_UART_TXDAT		0x10
+#define	G2_UART_RXDAT		0x14
+#define	G2_UART_INFO		0x18
+#define	G2_UART_IE0		0x1c
+#define	G2_UART_IE1		0x20
+#define	G2_UART_INT0		0x24
+#define	G2_UART_INT1		0x28
+#define	G2_UART_STAT		0x2c
+
+#define	UART_CFG_BAUD_COUNT	__BITS(31,8)
+#define	UART_CFG_UART_EN	__BIT(7)
+#define	UART_CFG_RX_SM_EN	__BIT(6)
+#define	UART_CFG_TX_SM_EN	__BIT(5)
+#define	UART_CFG_PARITY_EN	__BIT(4)
+#define	UART_CFG_EVEN_EN	__BIT(3)
+#define	UART_CFG_STOP_2BIT	__BIT(2)
+#define	UART_CFG_CHAR_CNT	__BITS(1,0)
+
+#define	UART_FC_NO_RTS		__BIT(10)
+#define	UART_FC_INV_RTS		__BIT(9)
+#define	UART_FC_CTS_REG		__BIT(8)
+#define	UART_FC_NO_CTS		__BIT(7)
+#define	UART_FC_INV_CTS		__BIT(6)
+#define	UART_FC_RX_WM		__BITS(5,0)
+
+#define	UART_RXSAMPLE_CENTER	__BITS(23,0)
+
+#define	UART_RXDAT_VALID	__BIT(8)
+#define	UART_RXDAT_DATA		__BITS(7,0)
+
+#define	UART_INFO_TXFIFO_EMPTY	__BIT(3)
+#define	UART_INFO_TXFIFO_FULL	__BIT(2)
+#define	UART_INFO_RXFIFO_EMPTY	__BIT(1)
+#define	UART_INFO_RXFIFO_FULL	__BIT(0)
+
+#define	UART_IE_RXFIFO_NONEMPTY	_BIT(6)
+#define	UART_IE_TXFIFO_EMPTY	_BIT(5)
+#define	UART_IE_RXFIFO_UNDERRUN	_BIT(4)
+#define	UART_IE_RXFIFO_OVERRUN	_BIT(3)
+#define	UART_IE_RXPARITY_ERR	_BIT(2)
+#define	UART_IE_RXSTOP_ERR	_BIT(1)
+#define	UART_IE_TXFIFO_OVERRUN	_BIT(0)
+
+#endif /* _ARM_CORTINA_G2_REG_H_ */

Reply via email to