Home | History | Annotate | Line # | Download | only in s3c2xx0
      1  1.4  christos /* $NetBSD: s3c2400reg.h,v 1.4 2005/12/11 12:16:51 christos Exp $ */
      2  1.1       bsh 
      3  1.1       bsh /*
      4  1.1       bsh  * Copyright (c) 2002, 2003  Genetec corp.  All rights reserved.
      5  1.1       bsh  * Written by Hiroyuki Bessho for Genetec corp.
      6  1.1       bsh  *
      7  1.1       bsh  * Redistribution and use in source and binary forms, with or without
      8  1.1       bsh  * modification, are permitted provided that the following conditions
      9  1.1       bsh  * are met:
     10  1.1       bsh  * 1. Redistributions of source code must retain the above copyright
     11  1.1       bsh  *    notice, this list of conditions and the following disclaimer.
     12  1.1       bsh  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1       bsh  *    notice, this list of conditions and the following disclaimer in the
     14  1.1       bsh  *    documentation and/or other materials provided with the distribution.
     15  1.1       bsh  * 3. The name of Genetec corporation may not be used to endorse
     16  1.1       bsh  *    or promote products derived from this software without specific prior
     17  1.1       bsh  *    written permission.
     18  1.1       bsh  *
     19  1.1       bsh  * THIS SOFTWARE IS PROVIDED BY GENETEC CORP. ``AS IS'' AND
     20  1.1       bsh  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     21  1.1       bsh  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     22  1.1       bsh  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL GENETEC CORP.
     23  1.1       bsh  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     24  1.1       bsh  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     25  1.1       bsh  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     26  1.1       bsh  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     27  1.1       bsh  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     28  1.1       bsh  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29  1.1       bsh  * POSSIBILITY OF SUCH DAMAGE.
     30  1.1       bsh  */
     31  1.1       bsh 
     32  1.1       bsh 
     33  1.1       bsh /*
     34  1.1       bsh  * Samsung S3C2400 processor is ARM920T based integrated CPU
     35  1.1       bsh  *
     36  1.1       bsh  * Reference:
     37  1.1       bsh  *  S3C2400X User's Manual
     38  1.1       bsh  */
     39  1.1       bsh #ifndef _ARM_S3C2400_S3C24X0REG_H_
     40  1.3       bsh #define	_ARM_S3C2400_S3C24X0REG_H_
     41  1.1       bsh 
     42  1.1       bsh /* common definitions for S3C2800, S3C2400X and S3C2410X */
     43  1.1       bsh #include <arm/s3c2xx0/s3c2xx0reg.h>
     44  1.1       bsh 
     45  1.1       bsh /*
     46  1.1       bsh  * Memory Map
     47  1.1       bsh  */
     48  1.1       bsh 
     49  1.3       bsh #define	S3C2400_BANK_START(n)	(0x02000000*(n))
     50  1.3       bsh #define	S3C2400_SDRAM_START	S3C2400_BANK_START(6)
     51  1.3       bsh #define	S3C2400_AHB_START	0x14000000
     52  1.3       bsh #define	S3C2400_APB_START	0x15000000
     53  1.1       bsh 
     54  1.1       bsh /*
     55  1.1       bsh  * Physical address of integrated peripherals
     56  1.1       bsh  */
     57  1.3       bsh #define	S3C2400_MEMCTL_BASE	0x14000000 /* memory controller */
     58  1.1       bsh #define	S3C2400_USBHC_BASE 	0x14200000 /* USB Host controller */
     59  1.3       bsh #define	S3C2400_INTCTL_BASE	0x14400000 /* Interrupt controller */
     60  1.3       bsh #define	S3C2400_INTCTL_SIZE	0x18
     61  1.3       bsh #define	S3C2400_DMAC_BASE	0x14600000 /* DMA controllers */
     62  1.1       bsh #define	S3C2400_DMAC_SIZE 	0x80
     63  1.3       bsh #define	S3C2400_CLKMAN_BASE	0x14800000 /* clock & power management */
     64  1.3       bsh #define	S3C2400_CLKMAN_SIZE	0x18
     65  1.1       bsh #define	S3C2400_LCDC_BASE 	0x14a00000
     66  1.3       bsh #define	S3C2400_UART_BASE	0x15000000
     67  1.3       bsh #define	S3C2400_UART_BASE(n)	(S3C2400_UART_BASE+0x4000*(n))
     68  1.1       bsh #define	S3C2400_TIMER_BASE 	0x15100000 /* Timers */
     69  1.1       bsh #define	S3C2400_USBDC_BASE 	0x15200000 /* USB Device controller */
     70  1.1       bsh #define	S3C2400_USBDC_SIZE 	0x1fc
     71  1.1       bsh #define	S3C2400_WDT_BASE 	0x15300000 /* Watch dog timer */
     72  1.1       bsh #define	S3C2400_IIC_BASE 	0x15400000
     73  1.1       bsh #define	S3C2400_IIS_BASE 	0x15508000
     74  1.3       bsh #define	S3C2400_GPIO_BASE	0x15600000
     75  1.3       bsh #define	S3C2400_GPIO_SIZE	0x5c
     76  1.1       bsh #define	S3C2400_RTC_BASE 	0x15700040
     77  1.1       bsh #define	S3C2400_RTC_SIZE 	0x4c
     78  1.1       bsh #define	S3C2400_ADC_BASE 	0x15800000 /* A/D converter */
     79  1.1       bsh #define	S3C2400_ADC_SIZE 	0x08
     80  1.1       bsh #define	S3C2400_SPI_BASE 	0x15900000
     81  1.1       bsh #define	S3C2400_MMC_BASE 	0x15a00000
     82  1.1       bsh #define	S3C2400_MMC_SIZE 	0x40
     83  1.1       bsh 
     84  1.1       bsh /* GPIO */
     85  1.3       bsh #define	GPIO_PACON	0x00	/* port A configuration */
     86  1.3       bsh #define	 PCON_INPUT	0	/* Input port */
     87  1.3       bsh #define	 PCON_OUTPUT	1	/* Output port */
     88  1.3       bsh #define	 PCON_ALTFUN	2	/* Alternate function */
     89  1.3       bsh #define	GPIO_PADAT	0x04	/* port A data */
     90  1.3       bsh #define	GPIO_PBCON	0x08
     91  1.3       bsh #define	GPIO_PBDAT	0x0c
     92  1.1       bsh #define	GPIO_PBUP 	0x10
     93  1.3       bsh #define	GPIO_PCCON	0x14
     94  1.3       bsh #define	GPIO_PCDAT	0x18
     95  1.3       bsh #define	GPIO_PCUP	0x1c
     96  1.3       bsh #define	GPIO_PDCON	0x20
     97  1.3       bsh #define	GPIO_PDDAT	0x24
     98  1.3       bsh #define	GPIO_PDUP	0x28
     99  1.3       bsh #define	GPIO_PECON	0x3c
    100  1.3       bsh #define	GPIO_PEDAT	0x30
    101  1.3       bsh #define	GPIO_PEUP	0x34
    102  1.3       bsh #define	GPIO_PFCON	0x38
    103  1.3       bsh #define	GPIO_PFDAT	0x3c
    104  1.3       bsh #define	GPIO_PFUP	0x40
    105  1.1       bsh #define	GPIO_PGCON	0x44
    106  1.1       bsh #define	GPIO_PGDAT	0x49
    107  1.1       bsh #define	GPIO_PGUP	0x4c
    108  1.1       bsh #define	GPIO_OPENCR 	0x50	/* Open drain enable */
    109  1.1       bsh #define	GPIO_MISCCR 	0x54	/* miscellaneous control */
    110  1.1       bsh 
    111  1.3       bsh #define	GPIO_EXTINTR	0x48	/* external interrupt control */
    112  1.3       bsh #define	 EXTINTR_LOW	 0x00
    113  1.3       bsh #define	 EXTINTR_HIGH	 0x01
    114  1.3       bsh #define	 EXTINTR_FALLING 0x02
    115  1.3       bsh #define	 EXTINTR_RISING  0x04
    116  1.3       bsh #define	 EXTINTR_BOTH    0x06
    117  1.1       bsh 
    118  1.1       bsh /* MMC */ /* XXX */
    119  1.1       bsh 
    120  1.1       bsh #endif /* _ARM_S3C2400_S3C2400REG_H_ */
    121