1 #ifndef _SC34510B_UART_H
2 #define _SC34510B_UART_H
5 * linux/include/asm-armnommu/arch-espd_4510b/uart.h
7 * Copyright (c) 2004 Cucy Systems (http://www.cucy.com)
8 * Curt Brune <curt@cucy.com>
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 * Description: S3C4510B UART register layout
26 * Runtime Env: ARM7TDMI
28 * 03-03-04 Create (Curt Brune)
31 /* UART LINE CONTROL register */
32 typedef struct __BF_UART_LINE_CTRL
{
41 typedef union _UART_LINE_CTRL
{
46 /* UART CONTROL register */
47 typedef struct __BF_UART_CTRL
{
57 typedef union _UART_CTRL
{
62 /* UART STATUS register */
63 typedef struct __BF_UART_STAT
{
75 typedef union _UART_STAT
{
80 /* UART BAUD_DIV register */
81 typedef struct __BF_UART_BAUD_DIV
{
87 typedef union _UART_BAUD_DIV
{
92 /* UART register block */
94 volatile UART_LINE_CTRL m_lineCtrl
;
95 volatile UART_CTRL m_ctrl
;
96 volatile UART_STAT m_stat
;
99 volatile UART_BAUD_DIV m_baudDiv
;
100 volatile u32 m_baudCnt
;
101 volatile u32 m_baudClk
;
111 #define UART_ANY_RX (0x2F)