[BACK]Return to fuartreg.h CVS log [TXT][DIR] Up to [local] / prex-old / dev / arm / cats

File: [local] / prex-old / dev / arm / cats / fuartreg.h (download)

Revision 1.1, Fri Aug 8 13:18:16 2008 UTC (15 years, 9 months ago) by nbrk
Branch: MAIN
CVS Tags: HEAD

Start implementing basic hardware support for CATS, based on new autoconfiguration
mechanism. This effectively uses bus_space to abstract children of parents.
Some info about these drivers:
hostio is a host memory-mapped i/o - one and only child of 'root';
footbridge is just a proxy for now;
fuart is a DC21285 UART driver which fills uart_attach_args and attaches
com, which is machine independent driver;

This all is not finished yet (just quick hacks), but commit it so i could work at home.

/*
 * $Id: fuartreg.h,v 1.1 2008/08/08 13:18:16 nbrk Exp $
 */
/* base address */
#define FUART_BASE	0x42000000
#define FUART_SIZE	0x200

/* registers */
#define  UARTDR	0x160	/* data register */
#define  H_UBRLCR	0x168	/* baud rate, line control register */
#define  M_UBRLCR	0x16c	/* baud rate divisor (high) */
#define  L_UBRLCR	0x170	/* baud rate divisor (low) */
#define  UARTCON	0x174	/* control register */
#define  UARTFLG	0x178	/* FIFO status */