Home | History | Annotate | Line # | Download | only in s3c2xx0
s3c2400reg.h revision 1.1
      1  1.1  bsh /* $NetBSD: s3c2400reg.h,v 1.1 2003/07/31 19:49:41 bsh 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.1  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.1  bsh #define S3C2400_BANK_START(n)	(0x02000000*(n))
     50  1.1  bsh #define S3C2400_SDRAM_START	S3C2400_BANK_START(6)
     51  1.1  bsh #define S3C2400_AHB_START	0x14000000
     52  1.1  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.1  bsh #define S3C2400_MEMCTL_BASE	0x14000000 /* memory controller */
     58  1.1  bsh #define S3C2400_MEMCTL_SIZE	0x34
     59  1.1  bsh #define	S3C2400_USBHC_BASE 	0x14200000 /* USB Host controller */
     60  1.1  bsh #define	S3C2400_USBHC_SIZE	0x5c
     61  1.1  bsh #define S3C2400_INTCTL_BASE	0x14400000 /* Interrupt controller */
     62  1.1  bsh #define S3C2400_INTCTL_SIZE	0x18
     63  1.1  bsh #define S3C2400_DMAC_BASE	0x14600000 /* DMA controllers */
     64  1.1  bsh #define	S3C2400_DMAC_SIZE 	0x80
     65  1.1  bsh #define S3C2400_CLKMAN_BASE	0x14800000 /* clock & power management */
     66  1.1  bsh #define S3C2400_CLKMAN_SIZE	0x18
     67  1.1  bsh #define	S3C2400_LCDC_BASE 	0x14a00000
     68  1.1  bsh #define	S3C2400_LCDC_SIZE 	0x54
     69  1.1  bsh #define S3C2400_UART_BASE	0x15000000
     70  1.1  bsh #define S3C2400_UART_BASE(n)	(S3C2400_UART_BASE+0x4000*(n))
     71  1.1  bsh #define	S3C2400_UART_SIZE 	0x2c
     72  1.1  bsh #define	S3C2400_TIMER_BASE 	0x15100000 /* Timers */
     73  1.1  bsh #define	S3C2400_PWM_SIZE 	0x44
     74  1.1  bsh #define	S3C2400_USBDC_BASE 	0x15200000 /* USB Device controller */
     75  1.1  bsh #define	S3C2400_USBDC_SIZE 	0x1fc
     76  1.1  bsh #define	S3C2400_WDT_BASE 	0x15300000 /* Watch dog timer */
     77  1.1  bsh #define	S3C2400_WDT_SIZE 	0x0c
     78  1.1  bsh #define	S3C2400_IIC_BASE 	0x15400000
     79  1.1  bsh #deifne	S3C2400_IIC_SIZE 	0x0c
     80  1.1  bsh #define	S3C2400_IIS_BASE 	0x15508000
     81  1.1  bsh #deifne	S3C2400_IIS_SIZE 	0x14
     82  1.1  bsh #define S3C2400_GPIO_BASE	0x15600000
     83  1.1  bsh #define S3C2400_GPIO_SIZE	0x5c
     84  1.1  bsh #define	S3C2400_RTC_BASE 	0x15700040
     85  1.1  bsh #define	S3C2400_RTC_SIZE 	0x4c
     86  1.1  bsh #define	S3C2400_ADC_BASE 	0x15800000 /* A/D converter */
     87  1.1  bsh #define	S3C2400_ADC_SIZE 	0x08
     88  1.1  bsh #define	S3C2400_SPI_BASE 	0x15900000
     89  1.1  bsh #define	S3C2400_SPI_SIZE 	0x18
     90  1.1  bsh #define	S3C2400_MMC_BASE 	0x15a00000
     91  1.1  bsh #define	S3C2400_MMC_SIZE 	0x40
     92  1.1  bsh 
     93  1.1  bsh /* GPIO */
     94  1.1  bsh #define GPIO_PACON	0x00	/* port A configuration */
     95  1.1  bsh #define  PCON_INPUT	0	/* Input port */
     96  1.1  bsh #define  PCON_OUTPUT	1	/* Output port */
     97  1.1  bsh #define  PCON_ALTFUN	2	/* Alternate function */
     98  1.1  bsh #define GPIO_PADAT	0x04	/* port A data */
     99  1.1  bsh #define GPIO_PBCON	0x08
    100  1.1  bsh #define GPIO_PBDAT	0x0c
    101  1.1  bsh #define	GPIO_PBUP 	0x10
    102  1.1  bsh #define GPIO_PCCON	0x14
    103  1.1  bsh #define GPIO_PCDAT	0x18
    104  1.1  bsh #define GPIO_PCUP	0x1c
    105  1.1  bsh #define GPIO_PDCON	0x20
    106  1.1  bsh #define GPIO_PDDAT	0x24
    107  1.1  bsh #define GPIO_PDUP	0x28
    108  1.1  bsh #define GPIO_PECON	0x3c
    109  1.1  bsh #define GPIO_PEDAT	0x30
    110  1.1  bsh #define GPIO_PEUP	0x34
    111  1.1  bsh #define GPIO_PFCON	0x38
    112  1.1  bsh #define GPIO_PFDAT	0x3c
    113  1.1  bsh #define GPIO_PFUP	0x40
    114  1.1  bsh #define	GPIO_PGCON	0x44
    115  1.1  bsh #define	GPIO_PGDAT	0x49
    116  1.1  bsh #define	GPIO_PGUP	0x4c
    117  1.1  bsh #define	GPIO_OPENCR 	0x50	/* Open drain enable */
    118  1.1  bsh #define	GPIO_MISCCR 	0x54	/* miscellaneous control */
    119  1.1  bsh 
    120  1.1  bsh #define GPIO_EXTINTR	0x48	/* external interrupt control */
    121  1.1  bsh #define  EXTINTR_LOW	 0x00
    122  1.1  bsh #define  EXTINTR_HIGH	 0x01
    123  1.1  bsh #define  EXTINTR_FALLING 0x02
    124  1.1  bsh #define  EXTINTR_RISING  0x04
    125  1.1  bsh #define  EXTINTR_BOTH    0x06
    126  1.1  bsh 
    127  1.1  bsh /* MMC */ /* XXX */
    128  1.1  bsh 
    129  1.1  bsh #endif /* _ARM_S3C2400_S3C2400REG_H_ */
    130