1*9b880bd4SWolfgang Denk /* 2*9b880bd4SWolfgang Denk * (C) Copyright 2005 3*9b880bd4SWolfgang Denk * ARM Ltd. 4*9b880bd4SWolfgang Denk * Peter Pearse, <Peter.Pearse@arm.com> 5*9b880bd4SWolfgang Denk * Configuration for ARM Core Modules. 6*9b880bd4SWolfgang Denk * No standalonw port yet available 7*9b880bd4SWolfgang Denk * - this file is included by both integratorap.h & integratorcp.h 8*9b880bd4SWolfgang Denk * 9*9b880bd4SWolfgang Denk * See file CREDITS for list of people who contributed to this 10*9b880bd4SWolfgang Denk * project. 11*9b880bd4SWolfgang Denk * 12*9b880bd4SWolfgang Denk * This program is free software; you can redistribute it and/or 13*9b880bd4SWolfgang Denk * modify it under the terms of the GNU General Public License as 14*9b880bd4SWolfgang Denk * published by the Free Software Foundation; either version 2 of 15*9b880bd4SWolfgang Denk * the License, or (at your option) any later version. 16*9b880bd4SWolfgang Denk * 17*9b880bd4SWolfgang Denk * This program is distributed in the hope that it will be useful, 18*9b880bd4SWolfgang Denk * but WITHOUT ANY WARRANTY; without even the implied warranty of 19*9b880bd4SWolfgang Denk * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20*9b880bd4SWolfgang Denk * GNU General Public License for more details. 21*9b880bd4SWolfgang Denk * 22*9b880bd4SWolfgang Denk * You should have received a copy of the GNU General Public License 23*9b880bd4SWolfgang Denk * along with this program; if not, write to the Free Software 24*9b880bd4SWolfgang Denk * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 25*9b880bd4SWolfgang Denk * MA 02111-1307 USA 26*9b880bd4SWolfgang Denk */ 27*9b880bd4SWolfgang Denk 28*9b880bd4SWolfgang Denk #ifndef __ARMCOREMODULE_H 29*9b880bd4SWolfgang Denk #define __ARMCOREMODULE_H 30*9b880bd4SWolfgang Denk 31*9b880bd4SWolfgang Denk #define CM_BASE 0x10000000 32*9b880bd4SWolfgang Denk 33*9b880bd4SWolfgang Denk /* CM registers common to all CMs */ 34*9b880bd4SWolfgang Denk /* Note that observed values after reboot into the ARM Boot Monitor 35*9b880bd4SWolfgang Denk have been used as defaults, rather than the POR values */ 36*9b880bd4SWolfgang Denk #define OS_CTRL 0x0000000C 37*9b880bd4SWolfgang Denk #define CMMASK_REMAP 0x00000005 /* set remap & led */ 38*9b880bd4SWolfgang Denk #define CMMASK_RESET 0x00000008 39*9b880bd4SWolfgang Denk #define OS_LOCK 0x00000014 40*9b880bd4SWolfgang Denk #define CMVAL_LOCK1 0x0000A000 /* locking value */ 41*9b880bd4SWolfgang Denk #define CMVAL_LOCK2 0x0000005F /* locking value */ 42*9b880bd4SWolfgang Denk #define CMVAL_UNLOCK 0x00000000 /* any value != CM_LOCKVAL */ 43*9b880bd4SWolfgang Denk #define OS_SDRAM 0x00000020 44*9b880bd4SWolfgang Denk #define OS_INIT 0x00000024 45*9b880bd4SWolfgang Denk #define CMMASK_MAP_SIMPLE 0xFFFDFFFF /* simple mapping */ 46*9b880bd4SWolfgang Denk #define CMMASK_TCRAM_DISABLE 0xFFFEFFFF /* TCRAM disabled */ 47*9b880bd4SWolfgang Denk #define CMMASK_LOWVEC 0x00000000 /* vectors @ 0x00000000 */ 48*9b880bd4SWolfgang Denk #define CMMASK_LE 0xFFFFFFF7 /* little endian */ 49*9b880bd4SWolfgang Denk #define CMMASK_CMxx6_COMMON 0x00000013 /* Common value for CMxx6 */ 50*9b880bd4SWolfgang Denk /* - observed reset value of */ 51*9b880bd4SWolfgang Denk /* CM926EJ-S */ 52*9b880bd4SWolfgang Denk /* CM1136-EJ-S */ 53*9b880bd4SWolfgang Denk 54*9b880bd4SWolfgang Denk #if defined (CONFIG_CM10200E) || defined (CONFIG_CM10220E) 55*9b880bd4SWolfgang Denk #define CMMASK_INIT_102 0x00000300 /* see CM102xx ref manual */ 56*9b880bd4SWolfgang Denk /* - PLL test clock bypassed */ 57*9b880bd4SWolfgang Denk /* - bus clock ratio 2 */ 58*9b880bd4SWolfgang Denk /* - little endian */ 59*9b880bd4SWolfgang Denk /* - vectors at zero */ 60*9b880bd4SWolfgang Denk #endif /* CM1022xx */ 61*9b880bd4SWolfgang Denk 62*9b880bd4SWolfgang Denk /* Determine CM characteristics */ 63*9b880bd4SWolfgang Denk 64*9b880bd4SWolfgang Denk #undef CONFIG_CM_MULTIPLE_SSRAM 65*9b880bd4SWolfgang Denk #undef CONFIG_CM_SPD_DETECT 66*9b880bd4SWolfgang Denk #undef CONFIG_CM_REMAP 67*9b880bd4SWolfgang Denk #undef CONFIG_CM_INIT 68*9b880bd4SWolfgang Denk #undef CONFIG_CM_TCRAM 69*9b880bd4SWolfgang Denk 70*9b880bd4SWolfgang Denk #if defined (CONFIG_CM946E_S) || defined (CONFIG_CM966E_S) 71*9b880bd4SWolfgang Denk #define CONFIG_CM_MULTIPLE_SSRAM /* CM has multiple SSRAM mapping */ 72*9b880bd4SWolfgang Denk #endif 73*9b880bd4SWolfgang Denk 74*9b880bd4SWolfgang Denk /* Excalibur core module has reduced functionality */ 75*9b880bd4SWolfgang Denk #ifndef CONFIG_CM922T_XA10 76*9b880bd4SWolfgang Denk #define CONFIG_CM_SPD_DETECT /* CM supports SPD query */ 77*9b880bd4SWolfgang Denk #define OS_SPD 0x00000100 /* Address of SPD data */ 78*9b880bd4SWolfgang Denk #define CONFIG_CM_REMAP /* CM supports remapping */ 79*9b880bd4SWolfgang Denk #define CONFIG_CM_INIT /* CM has initialization reg */ 80*9b880bd4SWolfgang Denk #endif /* NOT EXCALIBUR */ 81*9b880bd4SWolfgang Denk 82*9b880bd4SWolfgang Denk #if defined(CONFIG_CM926EJ_S) || defined (CONFIG_CM946E_S) || \ 83*9b880bd4SWolfgang Denk defined(CONFIG_CM966E_S) || defined (CONFIG_CM1026EJ_S) || \ 84*9b880bd4SWolfgang Denk defined(CONFIG_CM1136JF_S) 85*9b880bd4SWolfgang Denk #define CONFIG_CM_TCRAM /* CM has TCRAM */ 86*9b880bd4SWolfgang Denk #endif 87*9b880bd4SWolfgang Denk 88*9b880bd4SWolfgang Denk #ifdef CONFIG_CM_SPD_DETECT 89*9b880bd4SWolfgang Denk #define OS_SPD 0x00000100 /* The SDRAM SPD data is copied here */ 90*9b880bd4SWolfgang Denk #endif 91*9b880bd4SWolfgang Denk 92*9b880bd4SWolfgang Denk #endif /* __ARMCOREMODULE_H */ 93