Home | History | Annotate | Line # | Download | only in sa11x0
sa11x0_reg.h revision 1.4.38.1
      1  1.4.38.1  rpaulo /*	$NetBSD: sa11x0_reg.h,v 1.4.38.1 2006/09/09 02:38:10 rpaulo Exp $	*/
      2       1.1     rjs 
      3       1.1     rjs /*-
      4       1.1     rjs  * Copyright (c) 2001 The NetBSD Foundation, Inc.  All rights reserved.
      5       1.1     rjs  *
      6       1.1     rjs  * This code is derived from software contributed to The NetBSD Foundation
      7       1.1     rjs  * by IWAMOTO Toshihiro.
      8       1.1     rjs  *
      9       1.1     rjs  * Redistribution and use in source and binary forms, with or without
     10       1.1     rjs  * modification, are permitted provided that the following conditions
     11       1.1     rjs  * are met:
     12       1.1     rjs  * 1. Redistributions of source code must retain the above copyright
     13       1.1     rjs  *    notice, this list of conditions and the following disclaimer.
     14       1.1     rjs  * 2. Redistributions in binary form must reproduce the above copyright
     15       1.1     rjs  *    notice, this list of conditions and the following disclaimer in the
     16       1.1     rjs  *    documentation and/or other materials provided with the distribution.
     17       1.1     rjs  * 3. All advertising materials mentioning features or use of this software
     18       1.1     rjs  *    must display the following acknowledgement:
     19       1.1     rjs  *	This product includes software developed by the NetBSD
     20       1.1     rjs  *	Foundation, Inc. and its contributors.
     21       1.1     rjs  * 4. Neither the name of The NetBSD Foundation nor the names of its
     22       1.1     rjs  *    contributors may be used to endorse or promote products derived
     23       1.1     rjs  *    from this software without specific prior written permission.
     24       1.1     rjs  *
     25       1.1     rjs  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     26       1.1     rjs  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     27       1.1     rjs  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     28       1.1     rjs  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     29       1.1     rjs  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     30       1.1     rjs  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     31       1.1     rjs  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     32       1.1     rjs  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     33       1.1     rjs  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     34       1.1     rjs  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     35       1.1     rjs  * POSSIBILITY OF SUCH DAMAGE.
     36       1.1     rjs  */
     37       1.1     rjs 
     38       1.1     rjs #ifndef _ARM_SA11X0_REG_H_
     39       1.1     rjs #define _ARM_SA11X0_REG_H_
     40       1.1     rjs 
     41       1.1     rjs /* Physical register base addresses */
     42       1.1     rjs #define SAOST_BASE		0x90000000	/* OS Timer */
     43       1.1     rjs #define SARTC_BASE		0x90010000	/* Real-Time Clock */
     44       1.1     rjs #define SAPMR_BASE		0x90020000	/* Power Manager */
     45       1.1     rjs #define SARCR_BASE		0x90030000	/* Reset Controller */
     46       1.1     rjs #define SAGPIO_BASE		0x90040000	/* GPIO */
     47       1.1     rjs #define SAIPIC_BASE		0x90050000	/* Interrupt Controller */
     48       1.1     rjs #define SAPPC_BASE		0x90060000	/* Peripheral Pin Controller */
     49       1.1     rjs #define SAUDC_BASE		0x80000000	/* USB Device Controller*/
     50  1.4.38.1  rpaulo #define SACOM1_BASE		0x80010000	/* GPCLK/UART 1 */
     51  1.4.38.1  rpaulo #define SACOM2_BASE		0x80030000	/* Infrared Comm. Port (ICP) */
     52  1.4.38.1  rpaulo #define SACOM3_BASE		0x80050000	/* UART 3  */
     53       1.2     rjs #define SAMCP_BASE		0x80060000	/* MCP Controller */
     54       1.1     rjs #define SASSP_BASE		0x80070000	/* Synchronous serial port */
     55       1.1     rjs 
     56       1.1     rjs #define SADMAC_BASE		0xB0000000	/* DMA Controller */
     57       1.1     rjs #define SALCD_BASE		0xB0100000	/* LCD */
     58       1.1     rjs 
     59       1.1     rjs /* Register base virtual addresses mapped by initarm() */
     60  1.4.38.1  rpaulo #define SACOM3_VBASE		0xd000d000
     61       1.1     rjs 
     62       1.1     rjs /* Interrupt controller registers */
     63       1.1     rjs #define SAIPIC_NPORTS		9
     64       1.1     rjs #define SAIPIC_IP		0x00		/* IRQ pending register */
     65       1.1     rjs #define SAIPIC_MR		0x04		/* Mask register */
     66       1.1     rjs #define SAIPIC_LR		0x08		/* Level register */
     67       1.1     rjs #define SAIPIC_FP		0x10		/* FIQ pending register */
     68       1.1     rjs #define SAIPIC_PR		0x20		/* Pending register */
     69       1.1     rjs #define SAIPIC_CR		0x0C		/* Control register */
     70       1.1     rjs 
     71       1.1     rjs /* width of interrupt controller */
     72       1.1     rjs #define ICU_LEN			32
     73       1.3     rjs 
     74       1.3     rjs /* Reset controller registers */
     75       1.3     rjs #define SARCR_RSRR		0x0		/* Software reset register */
     76       1.3     rjs #define SARCR_RCSR		0x4		/* Reset status register */
     77       1.3     rjs #define SARCR_TUCR		0x8		/* Test Unit control reg */
     78       1.1     rjs 
     79       1.1     rjs #endif /* _ARM_SA11X0_REG_H_ */
     80