2003-06-19 23:01:32 +00:00
|
|
|
|
/*
|
|
|
|
|
* (C) Copyright 2003
|
|
|
|
|
* David M<EFBFBD>ller ELSOFT AG Switzerland. d.mueller@elsoft.ch
|
|
|
|
|
*
|
|
|
|
|
* See file CREDITS for list of people who contributed to this
|
|
|
|
|
* project.
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
|
* MA 02111-1307 USA
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/************************************************
|
|
|
|
|
* NAME : s3c24x0.h
|
|
|
|
|
* Version : 31.3.2003
|
|
|
|
|
*
|
|
|
|
|
* common stuff for SAMSUNG S3C24X0 SoC
|
|
|
|
|
************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef __S3C24X0_H__
|
|
|
|
|
#define __S3C24X0_H__
|
|
|
|
|
|
|
|
|
|
/* Memory controller (see manual chapter 5) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_memctl {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 BWSCON;
|
|
|
|
|
u32 BANKCON[8];
|
|
|
|
|
u32 REFRESH;
|
|
|
|
|
u32 BANKSIZE;
|
|
|
|
|
u32 MRSRB6;
|
|
|
|
|
u32 MRSRB7;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* USB HOST (see manual chapter 12) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_usb_host {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 HcRevision;
|
|
|
|
|
u32 HcControl;
|
|
|
|
|
u32 HcCommonStatus;
|
|
|
|
|
u32 HcInterruptStatus;
|
|
|
|
|
u32 HcInterruptEnable;
|
|
|
|
|
u32 HcInterruptDisable;
|
|
|
|
|
u32 HcHCCA;
|
|
|
|
|
u32 HcPeriodCuttendED;
|
|
|
|
|
u32 HcControlHeadED;
|
|
|
|
|
u32 HcControlCurrentED;
|
|
|
|
|
u32 HcBulkHeadED;
|
|
|
|
|
u32 HcBuldCurrentED;
|
|
|
|
|
u32 HcDoneHead;
|
|
|
|
|
u32 HcRmInterval;
|
|
|
|
|
u32 HcFmRemaining;
|
|
|
|
|
u32 HcFmNumber;
|
|
|
|
|
u32 HcPeriodicStart;
|
|
|
|
|
u32 HcLSThreshold;
|
|
|
|
|
u32 HcRhDescriptorA;
|
|
|
|
|
u32 HcRhDescriptorB;
|
|
|
|
|
u32 HcRhStatus;
|
|
|
|
|
u32 HcRhPortStatus1;
|
|
|
|
|
u32 HcRhPortStatus2;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* INTERRUPT (see manual chapter 14) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_interrupt {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 SRCPND;
|
|
|
|
|
u32 INTMOD;
|
|
|
|
|
u32 INTMSK;
|
|
|
|
|
u32 PRIORITY;
|
|
|
|
|
u32 INTPND;
|
|
|
|
|
u32 INTOFFSET;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef CONFIG_S3C2410
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 SUBSRCPND;
|
|
|
|
|
u32 INTSUBMSK;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* DMAS (see manual chapter 8) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_dma {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 DISRC;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef CONFIG_S3C2410
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 DISRCC;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 DIDST;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef CONFIG_S3C2410
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 DIDSTC;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 DCON;
|
|
|
|
|
u32 DSTAT;
|
|
|
|
|
u32 DCSRC;
|
|
|
|
|
u32 DCDST;
|
|
|
|
|
u32 DMASKTRIG;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef CONFIG_S3C2400
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 res[1];
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifdef CONFIG_S3C2410
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 res[7];
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_dmas {
|
|
|
|
|
struct s3c24x0_dma dma[4];
|
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* CLOCK & POWER MANAGEMENT (see S3C2400 manual chapter 6) */
|
|
|
|
|
/* (see S3C2410 manual chapter 7) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_clock_power {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 LOCKTIME;
|
|
|
|
|
u32 MPLLCON;
|
|
|
|
|
u32 UPLLCON;
|
|
|
|
|
u32 CLKCON;
|
|
|
|
|
u32 CLKSLOW;
|
|
|
|
|
u32 CLKDIVN;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* LCD CONTROLLER (see manual chapter 15) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_lcd {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 LCDCON1;
|
|
|
|
|
u32 LCDCON2;
|
|
|
|
|
u32 LCDCON3;
|
|
|
|
|
u32 LCDCON4;
|
|
|
|
|
u32 LCDCON5;
|
|
|
|
|
u32 LCDSADDR1;
|
|
|
|
|
u32 LCDSADDR2;
|
|
|
|
|
u32 LCDSADDR3;
|
|
|
|
|
u32 REDLUT;
|
|
|
|
|
u32 GREENLUT;
|
|
|
|
|
u32 BLUELUT;
|
|
|
|
|
u32 res[8];
|
|
|
|
|
u32 DITHMODE;
|
|
|
|
|
u32 TPAL;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef CONFIG_S3C2410
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 LCDINTPND;
|
|
|
|
|
u32 LCDSRCPND;
|
|
|
|
|
u32 LCDINTMSK;
|
|
|
|
|
u32 LPCSEL;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* NAND FLASH (see S3C2410 manual chapter 6) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c2410_nand {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 NFCONF;
|
|
|
|
|
u32 NFCMD;
|
|
|
|
|
u32 NFADDR;
|
|
|
|
|
u32 NFDATA;
|
|
|
|
|
u32 NFSTAT;
|
|
|
|
|
u32 NFECC;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* UART (see manual chapter 11) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_uart {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 ULCON;
|
|
|
|
|
u32 UCON;
|
|
|
|
|
u32 UFCON;
|
|
|
|
|
u32 UMCON;
|
|
|
|
|
u32 UTRSTAT;
|
|
|
|
|
u32 UERSTAT;
|
|
|
|
|
u32 UFSTAT;
|
|
|
|
|
u32 UMSTAT;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef __BIG_ENDIAN
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 res1[3];
|
|
|
|
|
u8 UTXH;
|
|
|
|
|
u8 res2[3];
|
|
|
|
|
u8 URXH;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#else /* Little Endian */
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 UTXH;
|
|
|
|
|
u8 res1[3];
|
|
|
|
|
u8 URXH;
|
|
|
|
|
u8 res2[3];
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 UBRDIV;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* PWM TIMER (see manual chapter 10) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_timer {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 TCNTB;
|
|
|
|
|
u32 TCMPB;
|
|
|
|
|
u32 TCNTO;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_timers {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 TCFG0;
|
|
|
|
|
u32 TCFG1;
|
|
|
|
|
u32 TCON;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_timer ch[4];
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 TCNTB4;
|
|
|
|
|
u32 TCNTO4;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* USB DEVICE (see manual chapter 13) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_usb_dev_fifos {
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef __BIG_ENDIAN
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 res[3];
|
|
|
|
|
u8 EP_FIFO_REG;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#else /* little endian */
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 EP_FIFO_REG;
|
|
|
|
|
u8 res[3];
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_usb_dev_dmas {
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef __BIG_ENDIAN
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 res1[3];
|
|
|
|
|
u8 EP_DMA_CON;
|
|
|
|
|
u8 res2[3];
|
|
|
|
|
u8 EP_DMA_UNIT;
|
|
|
|
|
u8 res3[3];
|
|
|
|
|
u8 EP_DMA_FIFO;
|
|
|
|
|
u8 res4[3];
|
|
|
|
|
u8 EP_DMA_TTC_L;
|
|
|
|
|
u8 res5[3];
|
|
|
|
|
u8 EP_DMA_TTC_M;
|
|
|
|
|
u8 res6[3];
|
|
|
|
|
u8 EP_DMA_TTC_H;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#else /* little endian */
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 EP_DMA_CON;
|
|
|
|
|
u8 res1[3];
|
|
|
|
|
u8 EP_DMA_UNIT;
|
|
|
|
|
u8 res2[3];
|
|
|
|
|
u8 EP_DMA_FIFO;
|
|
|
|
|
u8 res3[3];
|
|
|
|
|
u8 EP_DMA_TTC_L;
|
|
|
|
|
u8 res4[3];
|
|
|
|
|
u8 EP_DMA_TTC_M;
|
|
|
|
|
u8 res5[3];
|
|
|
|
|
u8 EP_DMA_TTC_H;
|
|
|
|
|
u8 res6[3];
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_usb_device {
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef __BIG_ENDIAN
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 res1[3];
|
|
|
|
|
u8 FUNC_ADDR_REG;
|
|
|
|
|
u8 res2[3];
|
|
|
|
|
u8 PWR_REG;
|
|
|
|
|
u8 res3[3];
|
|
|
|
|
u8 EP_INT_REG;
|
|
|
|
|
u8 res4[15];
|
|
|
|
|
u8 USB_INT_REG;
|
|
|
|
|
u8 res5[3];
|
|
|
|
|
u8 EP_INT_EN_REG;
|
|
|
|
|
u8 res6[15];
|
|
|
|
|
u8 USB_INT_EN_REG;
|
|
|
|
|
u8 res7[3];
|
|
|
|
|
u8 FRAME_NUM1_REG;
|
|
|
|
|
u8 res8[3];
|
|
|
|
|
u8 FRAME_NUM2_REG;
|
|
|
|
|
u8 res9[3];
|
|
|
|
|
u8 INDEX_REG;
|
|
|
|
|
u8 res10[7];
|
|
|
|
|
u8 MAXP_REG;
|
|
|
|
|
u8 res11[3];
|
|
|
|
|
u8 EP0_CSR_IN_CSR1_REG;
|
|
|
|
|
u8 res12[3];
|
|
|
|
|
u8 IN_CSR2_REG;
|
|
|
|
|
u8 res13[7];
|
|
|
|
|
u8 OUT_CSR1_REG;
|
|
|
|
|
u8 res14[3];
|
|
|
|
|
u8 OUT_CSR2_REG;
|
|
|
|
|
u8 res15[3];
|
|
|
|
|
u8 OUT_FIFO_CNT1_REG;
|
|
|
|
|
u8 res16[3];
|
|
|
|
|
u8 OUT_FIFO_CNT2_REG;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#else /* little endian */
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 FUNC_ADDR_REG;
|
|
|
|
|
u8 res1[3];
|
|
|
|
|
u8 PWR_REG;
|
|
|
|
|
u8 res2[3];
|
|
|
|
|
u8 EP_INT_REG;
|
|
|
|
|
u8 res3[15];
|
|
|
|
|
u8 USB_INT_REG;
|
|
|
|
|
u8 res4[3];
|
|
|
|
|
u8 EP_INT_EN_REG;
|
|
|
|
|
u8 res5[15];
|
|
|
|
|
u8 USB_INT_EN_REG;
|
|
|
|
|
u8 res6[3];
|
|
|
|
|
u8 FRAME_NUM1_REG;
|
|
|
|
|
u8 res7[3];
|
|
|
|
|
u8 FRAME_NUM2_REG;
|
|
|
|
|
u8 res8[3];
|
|
|
|
|
u8 INDEX_REG;
|
|
|
|
|
u8 res9[7];
|
|
|
|
|
u8 MAXP_REG;
|
|
|
|
|
u8 res10[7];
|
|
|
|
|
u8 EP0_CSR_IN_CSR1_REG;
|
|
|
|
|
u8 res11[3];
|
|
|
|
|
u8 IN_CSR2_REG;
|
|
|
|
|
u8 res12[3];
|
|
|
|
|
u8 OUT_CSR1_REG;
|
|
|
|
|
u8 res13[7];
|
|
|
|
|
u8 OUT_CSR2_REG;
|
|
|
|
|
u8 res14[3];
|
|
|
|
|
u8 OUT_FIFO_CNT1_REG;
|
|
|
|
|
u8 res15[3];
|
|
|
|
|
u8 OUT_FIFO_CNT2_REG;
|
|
|
|
|
u8 res16[3];
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif /* __BIG_ENDIAN */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_usb_dev_fifos fifo[5];
|
|
|
|
|
struct s3c24x0_usb_dev_dmas dma[5];
|
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* WATCH DOG TIMER (see manual chapter 18) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_watchdog {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 WTCON;
|
|
|
|
|
u32 WTDAT;
|
|
|
|
|
u32 WTCNT;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* IIC (see manual chapter 20) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_i2c {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 IICCON;
|
|
|
|
|
u32 IICSTAT;
|
|
|
|
|
u32 IICADD;
|
|
|
|
|
u32 IICDS;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* IIS (see manual chapter 21) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_i2s {
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef __BIG_ENDIAN
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u16 res1;
|
|
|
|
|
u16 IISCON;
|
|
|
|
|
u16 res2;
|
|
|
|
|
u16 IISMOD;
|
|
|
|
|
u16 res3;
|
|
|
|
|
u16 IISPSR;
|
|
|
|
|
u16 res4;
|
|
|
|
|
u16 IISFCON;
|
|
|
|
|
u16 res5;
|
|
|
|
|
u16 IISFIFO;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#else /* little endian */
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u16 IISCON;
|
|
|
|
|
u16 res1;
|
|
|
|
|
u16 IISMOD;
|
|
|
|
|
u16 res2;
|
|
|
|
|
u16 IISPSR;
|
|
|
|
|
u16 res3;
|
|
|
|
|
u16 IISFCON;
|
|
|
|
|
u16 res4;
|
|
|
|
|
u16 IISFIFO;
|
|
|
|
|
u16 res5;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* I/O PORT (see manual chapter 9) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_gpio {
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef CONFIG_S3C2400
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 PACON;
|
|
|
|
|
u32 PADAT;
|
2003-06-27 21:31:46 +00:00
|
|
|
|
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 PBCON;
|
|
|
|
|
u32 PBDAT;
|
|
|
|
|
u32 PBUP;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 PCCON;
|
|
|
|
|
u32 PCDAT;
|
|
|
|
|
u32 PCUP;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 PDCON;
|
|
|
|
|
u32 PDDAT;
|
|
|
|
|
u32 PDUP;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 PECON;
|
|
|
|
|
u32 PEDAT;
|
|
|
|
|
u32 PEUP;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 PFCON;
|
|
|
|
|
u32 PFDAT;
|
|
|
|
|
u32 PFUP;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 PGCON;
|
|
|
|
|
u32 PGDAT;
|
|
|
|
|
u32 PGUP;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 OPENCR;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 MISCCR;
|
|
|
|
|
u32 EXTINT;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifdef CONFIG_S3C2410
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 GPACON;
|
|
|
|
|
u32 GPADAT;
|
|
|
|
|
u32 res1[2];
|
|
|
|
|
u32 GPBCON;
|
|
|
|
|
u32 GPBDAT;
|
|
|
|
|
u32 GPBUP;
|
|
|
|
|
u32 res2;
|
|
|
|
|
u32 GPCCON;
|
|
|
|
|
u32 GPCDAT;
|
|
|
|
|
u32 GPCUP;
|
|
|
|
|
u32 res3;
|
|
|
|
|
u32 GPDCON;
|
|
|
|
|
u32 GPDDAT;
|
|
|
|
|
u32 GPDUP;
|
|
|
|
|
u32 res4;
|
|
|
|
|
u32 GPECON;
|
|
|
|
|
u32 GPEDAT;
|
|
|
|
|
u32 GPEUP;
|
|
|
|
|
u32 res5;
|
|
|
|
|
u32 GPFCON;
|
|
|
|
|
u32 GPFDAT;
|
|
|
|
|
u32 GPFUP;
|
|
|
|
|
u32 res6;
|
|
|
|
|
u32 GPGCON;
|
|
|
|
|
u32 GPGDAT;
|
|
|
|
|
u32 GPGUP;
|
|
|
|
|
u32 res7;
|
|
|
|
|
u32 GPHCON;
|
|
|
|
|
u32 GPHDAT;
|
|
|
|
|
u32 GPHUP;
|
|
|
|
|
u32 res8;
|
|
|
|
|
|
|
|
|
|
u32 MISCCR;
|
|
|
|
|
u32 DCLKCON;
|
|
|
|
|
u32 EXTINT0;
|
|
|
|
|
u32 EXTINT1;
|
|
|
|
|
u32 EXTINT2;
|
|
|
|
|
u32 EINTFLT0;
|
|
|
|
|
u32 EINTFLT1;
|
|
|
|
|
u32 EINTFLT2;
|
|
|
|
|
u32 EINTFLT3;
|
|
|
|
|
u32 EINTMASK;
|
|
|
|
|
u32 EINTPEND;
|
|
|
|
|
u32 GSTATUS0;
|
|
|
|
|
u32 GSTATUS1;
|
|
|
|
|
u32 GSTATUS2;
|
|
|
|
|
u32 GSTATUS3;
|
|
|
|
|
u32 GSTATUS4;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* RTC (see manual chapter 17) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_rtc {
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef __BIG_ENDIAN
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 res1[67];
|
|
|
|
|
u8 RTCCON;
|
|
|
|
|
u8 res2[3];
|
|
|
|
|
u8 TICNT;
|
|
|
|
|
u8 res3[11];
|
|
|
|
|
u8 RTCALM;
|
|
|
|
|
u8 res4[3];
|
|
|
|
|
u8 ALMSEC;
|
|
|
|
|
u8 res5[3];
|
|
|
|
|
u8 ALMMIN;
|
|
|
|
|
u8 res6[3];
|
|
|
|
|
u8 ALMHOUR;
|
|
|
|
|
u8 res7[3];
|
|
|
|
|
u8 ALMDATE;
|
|
|
|
|
u8 res8[3];
|
|
|
|
|
u8 ALMMON;
|
|
|
|
|
u8 res9[3];
|
|
|
|
|
u8 ALMYEAR;
|
|
|
|
|
u8 res10[3];
|
|
|
|
|
u8 RTCRST;
|
|
|
|
|
u8 res11[3];
|
|
|
|
|
u8 BCDSEC;
|
|
|
|
|
u8 res12[3];
|
|
|
|
|
u8 BCDMIN;
|
|
|
|
|
u8 res13[3];
|
|
|
|
|
u8 BCDHOUR;
|
|
|
|
|
u8 res14[3];
|
|
|
|
|
u8 BCDDATE;
|
|
|
|
|
u8 res15[3];
|
|
|
|
|
u8 BCDDAY;
|
|
|
|
|
u8 res16[3];
|
|
|
|
|
u8 BCDMON;
|
|
|
|
|
u8 res17[3];
|
|
|
|
|
u8 BCDYEAR;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#else /* little endian */
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 res0[64];
|
|
|
|
|
u8 RTCCON;
|
|
|
|
|
u8 res1[3];
|
|
|
|
|
u8 TICNT;
|
|
|
|
|
u8 res2[11];
|
|
|
|
|
u8 RTCALM;
|
|
|
|
|
u8 res3[3];
|
|
|
|
|
u8 ALMSEC;
|
|
|
|
|
u8 res4[3];
|
|
|
|
|
u8 ALMMIN;
|
|
|
|
|
u8 res5[3];
|
|
|
|
|
u8 ALMHOUR;
|
|
|
|
|
u8 res6[3];
|
|
|
|
|
u8 ALMDATE;
|
|
|
|
|
u8 res7[3];
|
|
|
|
|
u8 ALMMON;
|
|
|
|
|
u8 res8[3];
|
|
|
|
|
u8 ALMYEAR;
|
|
|
|
|
u8 res9[3];
|
|
|
|
|
u8 RTCRST;
|
|
|
|
|
u8 res10[3];
|
|
|
|
|
u8 BCDSEC;
|
|
|
|
|
u8 res11[3];
|
|
|
|
|
u8 BCDMIN;
|
|
|
|
|
u8 res12[3];
|
|
|
|
|
u8 BCDHOUR;
|
|
|
|
|
u8 res13[3];
|
|
|
|
|
u8 BCDDATE;
|
|
|
|
|
u8 res14[3];
|
|
|
|
|
u8 BCDDAY;
|
|
|
|
|
u8 res15[3];
|
|
|
|
|
u8 BCDMON;
|
|
|
|
|
u8 res16[3];
|
|
|
|
|
u8 BCDYEAR;
|
|
|
|
|
u8 res17[3];
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ADC (see manual chapter 16) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c2400_adc {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 ADCCON;
|
|
|
|
|
u32 ADCDAT;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ADC (see manual chapter 16) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c2410_adc {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 ADCCON;
|
|
|
|
|
u32 ADCTSC;
|
|
|
|
|
u32 ADCDLY;
|
|
|
|
|
u32 ADCDAT0;
|
|
|
|
|
u32 ADCDAT1;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* SPI (see manual chapter 22) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_spi_channel {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 SPCON;
|
|
|
|
|
u8 res1[3];
|
|
|
|
|
u8 SPSTA;
|
|
|
|
|
u8 res2[3];
|
|
|
|
|
u8 SPPIN;
|
|
|
|
|
u8 res3[3];
|
|
|
|
|
u8 SPPRE;
|
|
|
|
|
u8 res4[3];
|
|
|
|
|
u8 SPTDAT;
|
|
|
|
|
u8 res5[3];
|
|
|
|
|
u8 SPRDAT;
|
|
|
|
|
u8 res6[3];
|
|
|
|
|
u8 res7[16];
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c24x0_spi {
|
|
|
|
|
struct s3c24x0_spi_channel ch[S3C24X0_SPI_CHANNELS];
|
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* MMC INTERFACE (see S3C2400 manual chapter 19) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c2400_mmc {
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef __BIG_ENDIAN
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 res1[3];
|
|
|
|
|
u8 MMCON;
|
|
|
|
|
u8 res2[3];
|
|
|
|
|
u8 MMCRR;
|
|
|
|
|
u8 res3[3];
|
|
|
|
|
u8 MMFCON;
|
|
|
|
|
u8 res4[3];
|
|
|
|
|
u8 MMSTA;
|
|
|
|
|
u16 res5;
|
|
|
|
|
u16 MMFSTA;
|
|
|
|
|
u8 res6[3];
|
|
|
|
|
u8 MMPRE;
|
|
|
|
|
u16 res7;
|
|
|
|
|
u16 MMLEN;
|
|
|
|
|
u8 res8[3];
|
|
|
|
|
u8 MMCR7;
|
|
|
|
|
u32 MMRSP[4];
|
|
|
|
|
u8 res9[3];
|
|
|
|
|
u8 MMCMD0;
|
|
|
|
|
u32 MMCMD1;
|
|
|
|
|
u16 res10;
|
|
|
|
|
u16 MMCR16;
|
|
|
|
|
u8 res11[3];
|
|
|
|
|
u8 MMDAT;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#else
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 MMCON;
|
|
|
|
|
u8 res1[3];
|
|
|
|
|
u8 MMCRR;
|
|
|
|
|
u8 res2[3];
|
|
|
|
|
u8 MMFCON;
|
|
|
|
|
u8 res3[3];
|
|
|
|
|
u8 MMSTA;
|
|
|
|
|
u8 res4[3];
|
|
|
|
|
u16 MMFSTA;
|
|
|
|
|
u16 res5;
|
|
|
|
|
u8 MMPRE;
|
|
|
|
|
u8 res6[3];
|
|
|
|
|
u16 MMLEN;
|
|
|
|
|
u16 res7;
|
|
|
|
|
u8 MMCR7;
|
|
|
|
|
u8 res8[3];
|
|
|
|
|
u32 MMRSP[4];
|
|
|
|
|
u8 MMCMD0;
|
|
|
|
|
u8 res9[3];
|
|
|
|
|
u32 MMCMD1;
|
|
|
|
|
u16 MMCR16;
|
|
|
|
|
u16 res10;
|
|
|
|
|
u8 MMDAT;
|
|
|
|
|
u8 res11[3];
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* SD INTERFACE (see S3C2410 manual chapter 19) */
|
2009-10-10 04:32:01 +00:00
|
|
|
|
struct s3c2410_sdi {
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 SDICON;
|
|
|
|
|
u32 SDIPRE;
|
|
|
|
|
u32 SDICARG;
|
|
|
|
|
u32 SDICCON;
|
|
|
|
|
u32 SDICSTA;
|
|
|
|
|
u32 SDIRSP0;
|
|
|
|
|
u32 SDIRSP1;
|
|
|
|
|
u32 SDIRSP2;
|
|
|
|
|
u32 SDIRSP3;
|
|
|
|
|
u32 SDIDTIMER;
|
|
|
|
|
u32 SDIBSIZE;
|
|
|
|
|
u32 SDIDCON;
|
|
|
|
|
u32 SDIDCNT;
|
|
|
|
|
u32 SDIDSTA;
|
|
|
|
|
u32 SDIFSTA;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#ifdef __BIG_ENDIAN
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 res[3];
|
|
|
|
|
u8 SDIDAT;
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#else
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u8 SDIDAT;
|
|
|
|
|
u8 res[3];
|
2003-06-19 23:01:32 +00:00
|
|
|
|
#endif
|
2009-11-04 08:49:31 +00:00
|
|
|
|
u32 SDIIMSK;
|
2009-10-10 04:32:01 +00:00
|
|
|
|
};
|
2003-06-19 23:01:32 +00:00
|
|
|
|
|
|
|
|
|
#endif /*__S3C24X0_H__*/
|