mpc75x.h 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  3. * Andreas Heppel <aheppel@sysgo.de>
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. /*
  24. * mpc75x.h
  25. *
  26. * MPC75x/MPC74xx specific definitions
  27. */
  28. #ifndef __MPC75X_H__
  29. #define __MPC75X_H__
  30. /*----------------------------------------------------------------
  31. * Exception offsets (PowerPC standard)
  32. */
  33. #define EXC_OFF_SYS_RESET 0x0100 /* default system reset offset */
  34. /*----------------------------------------------------------------
  35. * l2cr values
  36. */
  37. #define l2cr 1017
  38. #define L2CR_L2E 0x80000000 /* bit 0 - enable */
  39. #define L2CR_L2PE 0x40000000 /* bit 1 - data parity */
  40. #define L2CR_L2SIZ_2M 0x00000000 /* bits 2-3 - 2MB, MPC7400 only! */
  41. #define L2CR_L2SIZ_1M 0x30000000 /* ... 1MB */
  42. #define L2CR_L2SIZ_HM 0x20000000 /* ... 512K */
  43. #define L2CR_L2SIZ_QM 0x10000000 /* ... 256k */
  44. #define L2CR_L2CLK_1 0x02000000 /* bits 4-6 clock ratio div 1 */
  45. #define L2CR_L2CLK_1_5 0x04000000 /* bits 4-6 clock ratio div 1.5 */
  46. #define L2CR_L2CLK_2 0x08000000 /* bits 4-6 clock ratio div 2 */
  47. #define L2CR_L2CLK_2_5 0x0a000000 /* bits 4-6 clock ratio div 2.5 */
  48. #define L2CR_L2CLK_3 0x0c000000 /* bits 4-6 clock ratio div 3 */
  49. #define L2CR_L2CLK_3_5 0x06000000 /* bits 4-6 clock ratio div 3.5 */
  50. #define L2CR_L2CLK_4 0x0e000000 /* bits 4-6 clock ratio div 4 */
  51. #define L2CR_L2RAM_BURST 0x01000000 /* bits 7-8 - burst SRAM */
  52. #define L2CR_DO 0x00400000 /* bit 9 - enable caching of instr. in L2 */
  53. #define L2CR_L2I 0x00200000 /* bit 10 - global invalidate bit */
  54. #define L2CR_L2CTL 0x00100000 /* bit 11 - l2 ram control */
  55. #define L2CR_L2WT 0x00080000 /* bit 12 - l2 write-through */
  56. #define L2CR_TS 0x00040000 /* bit 13 - test support on */
  57. #define L2CR_TS_OFF -L2CR_TS /* bit 13 - test support off */
  58. #define L2CR_L2OH_5 0x00000000 /* bits 14-15 - output hold time = short */
  59. #define L2CR_L2OH_1 0x00010000 /* bits 14-15 - output hold time = medium */
  60. #define L2CR_L2OH_INV 0x00020000 /* bits 14-15 - output hold time = long */
  61. #define L2CR_L2IP 0x00000001 /* global invalidate in progress */
  62. /*----------------------------------------------------------------
  63. * BAT settings. Look in config_<BOARD>.h for the actual setup
  64. */
  65. #define BATU_BL_128K 0x00000000
  66. #define BATU_BL_256K 0x00000004
  67. #define BATU_BL_512K 0x0000000c
  68. #define BATU_BL_1M 0x0000001c
  69. #define BATU_BL_2M 0x0000003c
  70. #define BATU_BL_4M 0x0000007c
  71. #define BATU_BL_8M 0x000000fc
  72. #define BATU_BL_16M 0x000001fc
  73. #define BATU_BL_32M 0x000003fc
  74. #define BATU_BL_64M 0x000007fc
  75. #define BATU_BL_128M 0x00000ffc
  76. #define BATU_BL_256M 0x00001ffc
  77. #define BATU_VS 0x00000002
  78. #define BATU_VP 0x00000001
  79. #define BATU_INVALID 0x00000000
  80. #define BATL_WRITETHROUGH 0x00000080
  81. #define BATL_CACHEINHIBIT 0x00000040
  82. #define BATL_COHERENT 0x00000020
  83. #define BATL_GUARDED 0x00000010
  84. #define BATL_NO_ACCESS 0x00000000
  85. #define BATL_RO 0x00000001
  86. #define BATL_RW 0x00000002
  87. #endif /* __MPC75X_H__ */