/* * * BRIEF MODULE DESCRIPTION * OMAP730 hardware map * * Copyright (C) 2004 MPC-Data Limited. (http://www.mpc-data.co.uk) * Author: MPC-Data Limited * Dave Peverley * * 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 SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * 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., * 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __INCLUDED_OMAP730_H #define __INCLUDED_OMAP730_H #include /*************************************************************************** * OMAP730 Configuration Registers **************************************************************************/ #define PERSEUS2_MPU_DEV_ID ((unsigned int)(0xFFFE1000)) #define PERSEUS2_GSM_DEV_ID0 ((unsigned int)(0xFFFE1000)) #define PERSEUS2_GDM_DEV_ID1 ((unsigned int)(0xFFFE1002)) #define DSP_CONF ((unsigned int)(0xFFFE1004)) #define PERSEUS2_MPU_DIE_ID0 ((unsigned int)(0xFFFE1008)) #define GSM_ASIC_CONF ((unsigned int)(0xFFFE1008)) #define PERSEUS2_MPU_DIE_ID1 ((unsigned int)(0xFFFE100C)) #define PERSEUS2_MODE1 ((unsigned int)(0xFFFE1010)) #define PERSEUS2_GSM_DIE_ID0 ((unsigned int)(0xFFFE1010)) #define PERSEUS2_GSM_DIE_ID1 ((unsigned int)(0xFFFE1012)) #define PERSEUS2_MODE2 ((unsigned int)(0xFFFE1014)) #define PERSEUS2_GSM_DIE_ID2 ((unsigned int)(0xFFFE1014)) #define PERSEUS2_GSM_DIE_ID3 ((unsigned int)(0xFFFE1016)) #define PERSEUS2_ANALOG_CELLS_CONF ((unsigned int)(0xFFFE1018)) #define SPECCTL ((unsigned int)(0xFFFE101C)) #define SPARE1 ((unsigned int)(0xFFFE1020)) #define SPARE2 ((unsigned int)(0xFFFE1024)) #define GSM_PBG_IRQ ((unsigned int)(0xFFFE1028)) #define DMA_REQ_CONF ((unsigned int)(0xFFFE1030)) #define PE_CONF_NO_DUAL ((unsigned int)(0xFFFE1060)) #define PERSEUS2_IO_CONF0 ((unsigned int)(0xFFFE1070)) #define PERSEUS2_IO_CONF1 ((unsigned int)(0xFFFE1074)) #define PERSEUS2_IO_CONF2 ((unsigned int)(0xFFFE1078)) #define PERSEUS2_IO_CONF3 ((unsigned int)(0xFFFE107C)) #define PERSEUS2_IO_CONF4 ((unsigned int)(0xFFFE1080)) #define PERSEUS2_IO_CONF5 ((unsigned int)(0xFFFE1084)) #define PERSEUS2_IO_CONF6 ((unsigned int)(0xFFFE1088)) #define PERSEUS2_IO_CONF7 ((unsigned int)(0xFFFE108C)) #define PERSEUS2_IO_CONF8 ((unsigned int)(0xFFFE1090)) #define PERSEUS2_IO_CONF9 ((unsigned int)(0xFFFE1094)) #define PERSEUS2_IO_CONF10 ((unsigned int)(0xFFFE1098)) #define PERSEUS2_IO_CONF11 ((unsigned int)(0xFFFE109C)) #define PERSEUS2_IO_CONF12 ((unsigned int)(0xFFFE10A0)) #define PERSEUS2_IO_CONF13 ((unsigned int)(0xFFFE10A4)) #define PERSEUS_PCC_CONF_REG ((unsigned int)(0xFFFE10B4)) #define BIST_STATUS_INTERNAL ((unsigned int)(0xFFFE10B8)) #define BIST_CONTROL ((unsigned int)(0xFFFE10C0)) #define BOOT_ROM_REG ((unsigned int)(0xFFFE10C4)) #define PRODUCTION_ID_REG ((unsigned int)(0xFFFE10C8)) #define BIST_SECROM_SIGNATURE1_INTERNAL ((unsigned int)(0xFFFE10D0)) #define BIST_SECROM_SIGNATURE2_INTERNAL ((unsigned int)(0xFFFE10D4)) #define BIST_CONTROL_2 ((unsigned int)(0xFFFE10D8)) #define DEBUG1 ((unsigned int)(0xFFFE10E0)) #define DEBUG2 ((unsigned int)(0xFFFE10E4)) #define DEBUG_DMA_IRQ ((unsigned int)(0xFFFE10E8)) /*************************************************************************** * OMAP730 EMIFS Registers (TRM 2.5.7) **************************************************************************/ #define TCMIF_BASE 0xFFFECC00 #define EMIFS_LRUREG (TCMIF_BASE + 0x04) #define EMIFS_CONFIG (TCMIF_BASE + 0x0C) #define FLASH_CFG_0 (TCMIF_BASE + 0x10) #define FLASH_CFG_1 (TCMIF_BASE + 0x14) #define FLASH_CFG_2 (TCMIF_BASE + 0x18) #define FLASH_CFG_3 (TCMIF_BASE + 0x1C) #define FL_CFG_DYN_WAIT (TCMIF_BASE + 0x40) #define EMIFS_TIMEOUT1_REG (TCMIF_BASE + 0x28) #define EMIFS_TIMEOUT2_REG (TCMIF_BASE + 0x2C) #define EMIFS_TIMEOUT3_REG (TCMIF_BASE + 0x30) #define EMIFS_ABORT_ADDR (TCMIF_BASE + 0x44) #define EMIFS_ABORT_TYPE (TCMIF_BASE + 0x48) #define EMIFS_ABORT_TOUT (TCMIF_BASE + 0x4C) #define FLASH_ACFG_0_1 (TCMIF_BASE + 0x50) #define FLASH_ACFG_1_1 (TCMIF_BASE + 0x54) #define FLASH_ACFG_2_1 (TCMIF_BASE + 0x58) #define FLASH_ACFG_3_1 (TCMIF_BASE + 0x5C) /*************************************************************************** * OMAP730 Interrupt handlers **************************************************************************/ #define OMAP_IH1_BASE 0xFFFECB00 /* MPU Level 1 IRQ handler */ #define OMAP_IH2_BASE 0xfffe0000 /*************************************************************************** * OMAP730 Timers * * There are three general purpose OS timers in the 730 that can be * configured in autoreload or one-shot modes. **************************************************************************/ #define OMAP730_32kHz_TIMER_BASE 0xFFFB9000 /* 32k Timer Registers */ #define TIMER32k_CR 0x08 #define TIMER32k_TVR 0x00 #define TIMER32k_TCR 0x04 /* 32k Timer Control Register definition */ #define TIMER32k_TSS (1<<0) #define TIMER32k_TRB (1<<1) #define TIMER32k_INT (1<<2) #define TIMER32k_ARL (1<<3) /* MPU Timer base addresses */ #define OMAP730_MPUTIMER_BASE 0xfffec500 #define OMAP730_MPUTIMER_OFF 0x00000100 #define OMAP730_TIMER1_BASE 0xFFFEC500 #define OMAP730_TIMER2_BASE 0xFFFEC600 #define OMAP730_TIMER3_BASE 0xFFFEC700 /* MPU Timer Register offsets */ #define CNTL_TIMER 0x00 /* MPU_CNTL_TIMER */ #define LOAD_TIM 0x04 /* MPU_LOAD_TIMER */ #define READ_TIM 0x08 /* MPU_READ_TIMER */ /* MPU_CNTL_TIMER register bits */ #define MPUTIM_FREE (1<<6) #define MPUTIM_CLOCK_ENABLE (1<<5) #define MPUTIM_PTV_MASK (0x7<