e300.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * Copyright 2004 Freescale Semiconductor, Inc.
  3. * Liberty Eran (liberty@freescale.com)
  4. */
  5. #ifndef __E300_H__
  6. #define __E300_H__
  7. #define PVR_E300C1 0x80830000
  8. #define PVR_E300C2 0x80840000
  9. #define PVR_E300C3 0x80850000
  10. #define PVR_E300C4 0x80860000
  11. /*
  12. * Hardware Implementation-Dependent Register 0 (HID0)
  13. */
  14. /* #define HID0 1008 already defined in processor.h */
  15. #define HID0_MASK_MACHINE_CHECK 0x00000000
  16. #define HID0_ENABLE_MACHINE_CHECK 0x80000000
  17. #define HID0_DISABLE_CACHE_PARITY 0x00000000
  18. #define HID0_ENABLE_CACHE_PARITY 0x40000000
  19. #define HID0_DISABLE_ADDRESS_PARITY 0x00000000 /* on mpc8349ads must be disabled */
  20. #define HID0_ENABLE_ADDRESS_PARITY 0x20000000
  21. #define HID0_DISABLE_DATA_PARITY 0x00000000 /* on mpc8349ads must be disabled */
  22. #define HID0_ENABLE_DATE_PARITY 0x10000000
  23. #define HID0_CORE_CLK_OUT 0x00000000
  24. #define HID0_CORE_CLK_OUT_DIV_2 0x08000000
  25. #define HID0_ENABLE_ARTRY_OUT_PRECHARGE 0x00000000 /* on mpc8349ads must be enabled */
  26. #define HID0_DISABLE_ARTRY_OUT_PRECHARGE 0x01000000
  27. #define HID0_DISABLE_DOSE_MODE 0x00000000
  28. #define HID0_ENABLE_DOSE_MODE 0x00800000
  29. #define HID0_DISABLE_NAP_MODE 0x00000000
  30. #define HID0_ENABLE_NAP_MODE 0x00400000
  31. #define HID0_DISABLE_SLEEP_MODE 0x00000000
  32. #define HID0_ENABLE_SLEEP_MODE 0x00200000
  33. #define HID0_DISABLE_DYNAMIC_POWER_MANAGMENT 0x00000000
  34. #define HID0_ENABLE_DYNAMIC_POWER_MANAGMENT 0x00100000
  35. #define HID0_SOFT_RESET 0x00010000
  36. #define HID0_DISABLE_INSTRUCTION_CACHE 0x00000000
  37. #define HID0_ENABLE_INSTRUCTION_CACHE 0x00008000
  38. #define HID0_DISABLE_DATA_CACHE 0x00000000
  39. #define HID0_ENABLE_DATA_CACHE 0x00004000
  40. #define HID0_LOCK_INSTRUCTION_CACHE 0x00002000
  41. #define HID0_LOCK_DATA_CACHE 0x00001000
  42. #define HID0_INVALIDATE_INSTRUCTION_CACHE 0x00000800
  43. #define HID0_INVALIDATE_DATA_CACHE 0x00000400
  44. #define HID0_DISABLE_M_BIT 0x00000000
  45. #define HID0_ENABLE_M_BIT 0x00000080
  46. #define HID0_FBIOB 0x00000010
  47. #define HID0_DISABLE_ADDRESS_BROADCAST 0x00000000
  48. #define HID0_ENABLE_ADDRESS_BROADCAST 0x00000008
  49. #define HID0_ENABLE_NOOP_DCACHE_INSTRUCTION 0x00000000
  50. #define HID0_DISABLE_NOOP_DCACHE_INSTRUCTION 0x00000001
  51. /*
  52. * Hardware Implementation-Dependent Register 2 (HID2)
  53. */
  54. #define HID2 1011
  55. #define HID2_LET 0x08000000
  56. #define HID2_HBE 0x00040000
  57. #define HID2_IWLCK_000 0x00000000 /* no ways locked */
  58. #define HID2_IWLCK_001 0x00002000 /* way 0 locked */
  59. #define HID2_IWLCK_010 0x00004000 /* way 0 through way 1 locked */
  60. #define HID2_IWLCK_011 0x00006000 /* way 0 through way 2 locked */
  61. #define HID2_IWLCK_100 0x00008000 /* way 0 through way 3 locked */
  62. #define HID2_IWLCK_101 0x0000A000 /* way 0 through way 4 locked */
  63. #define HID2_IWLCK_110 0x0000C000 /* way 0 through way 5 locked */
  64. #endif /* __E300_H__ */