armcoremodule.h 3.3 KB

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