armcoremodule.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. * SPDX-License-Identifier: GPL-2.0+
  10. */
  11. #ifndef __ARMCOREMODULE_H
  12. #define __ARMCOREMODULE_H
  13. #define CM_BASE 0x10000000
  14. /* CM registers common to all CMs */
  15. /* Note that observed values after reboot into the ARM Boot Monitor
  16. have been used as defaults, rather than the POR values */
  17. #define OS_CTRL 0x0000000C
  18. #define CMMASK_REMAP 0x00000005 /* set remap & led */
  19. #define CMMASK_RESET 0x00000008
  20. #define OS_LOCK 0x00000014
  21. #define CMVAL_LOCK1 0x0000A000 /* locking value */
  22. #define CMVAL_LOCK2 0x0000005F /* locking value */
  23. #define CMVAL_UNLOCK 0x00000000 /* any value != CM_LOCKVAL */
  24. #define OS_SDRAM 0x00000020
  25. #define OS_INIT 0x00000024
  26. #define CMMASK_MAP_SIMPLE 0xFFFDFFFF /* simple mapping */
  27. #define CMMASK_TCRAM_DISABLE 0xFFFEFFFF /* TCRAM disabled */
  28. #define CMMASK_LOWVEC 0x00000000 /* vectors @ 0x00000000 */
  29. #define CMMASK_LE 0xFFFFFFF7 /* little endian */
  30. #define CMMASK_CMxx6_COMMON 0x00000013 /* Common value for CMxx6 */
  31. /* - observed reset value of */
  32. /* CM926EJ-S */
  33. /* CM1136-EJ-S */
  34. #if defined (CONFIG_CM10200E) || defined (CONFIG_CM10220E)
  35. #define CMMASK_INIT_102 0x00000300 /* see CM102xx ref manual */
  36. /* - PLL test clock bypassed */
  37. /* - bus clock ratio 2 */
  38. /* - little endian */
  39. /* - vectors at zero */
  40. #endif /* CM1022xx */
  41. /* Determine CM characteristics */
  42. #undef CONFIG_CM_MULTIPLE_SSRAM
  43. #undef CONFIG_CM_SPD_DETECT
  44. #undef CONFIG_CM_REMAP
  45. #undef CONFIG_CM_INIT
  46. #undef CONFIG_CM_TCRAM
  47. #if defined (CONFIG_CM946E_S) || defined (CONFIG_CM966E_S)
  48. #define CONFIG_CM_MULTIPLE_SSRAM /* CM has multiple SSRAM mapping */
  49. #endif
  50. /* Excalibur core module has reduced functionality */
  51. #ifndef CONFIG_CM922T_XA10
  52. #define CONFIG_CM_SPD_DETECT /* CM supports SPD query */
  53. #define OS_SPD 0x00000100 /* Address of SPD data */
  54. #define CONFIG_CM_REMAP /* CM supports remapping */
  55. #define CONFIG_CM_INIT /* CM has initialization reg */
  56. #endif /* NOT EXCALIBUR */
  57. #if defined(CONFIG_CM926EJ_S) || defined (CONFIG_CM946E_S) || \
  58. defined(CONFIG_CM966E_S) || defined (CONFIG_CM1026EJ_S) || \
  59. defined(CONFIG_CM1136JF_S)
  60. #define CONFIG_CM_TCRAM /* CM has TCRAM */
  61. #endif
  62. #ifdef CONFIG_CM_SPD_DETECT
  63. #define OS_SPD 0x00000100 /* The SDRAM SPD data is copied here */
  64. #endif
  65. #endif /* __ARMCOREMODULE_H */