boot.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /*
  2. ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. /**
  14. * @file boot.h
  15. * @brief Boot parameters for the SPC563Mxx.
  16. * @{
  17. */
  18. #ifndef BOOT_H
  19. #define BOOT_H
  20. /*===========================================================================*/
  21. /* Module constants. */
  22. /*===========================================================================*/
  23. /**
  24. * @name BUCSR registers definitions
  25. * @{
  26. */
  27. #define BUCSR_BPEN 0x00000001
  28. #define BUCSR_BALLOC_BFI 0x00000200
  29. /** @} */
  30. /**
  31. * @name MSR register definitions
  32. * @{
  33. */
  34. #define MSR_UCLE 0x04000000
  35. #define MSR_SPE 0x02000000
  36. #define MSR_WE 0x00040000
  37. #define MSR_CE 0x00020000
  38. #define MSR_EE 0x00008000
  39. #define MSR_PR 0x00004000
  40. #define MSR_FP 0x00002000
  41. #define MSR_ME 0x00001000
  42. #define MSR_FE0 0x00000800
  43. #define MSR_DE 0x00000200
  44. #define MSR_FE1 0x00000100
  45. #define MSR_IS 0x00000020
  46. #define MSR_DS 0x00000010
  47. #define MSR_RI 0x00000002
  48. /** @} */
  49. /*===========================================================================*/
  50. /* Module pre-compile time settings. */
  51. /*===========================================================================*/
  52. /*
  53. * BUCSR default settings.
  54. */
  55. #if !defined(BOOT_BUCSR_DEFAULT) || defined(__DOXYGEN__)
  56. #define BOOT_BUCSR_DEFAULT (BUCSR_BPEN | BUCSR_BALLOC_BFI)
  57. #endif
  58. /*
  59. * MSR default settings.
  60. */
  61. #if !defined(BOOT_MSR_DEFAULT) || defined(__DOXYGEN__)
  62. #define BOOT_MSR_DEFAULT (MSR_SPE | MSR_WE | MSR_CE | MSR_ME)
  63. #endif
  64. /*
  65. * Boot default settings.
  66. */
  67. #if !defined(BOOT_PERFORM_CORE_INIT) || defined(__DOXYGEN__)
  68. #define BOOT_PERFORM_CORE_INIT 1
  69. #endif
  70. /*
  71. * VLE mode default settings.
  72. */
  73. #if !defined(BOOT_USE_VLE) || defined(__DOXYGEN__)
  74. #define BOOT_USE_VLE 1
  75. #endif
  76. /*
  77. * RAM relocation flag.
  78. */
  79. #if !defined(BOOT_RELOCATE_IN_RAM) || defined(__DOXYGEN__)
  80. #define BOOT_RELOCATE_IN_RAM 0
  81. #endif
  82. /*===========================================================================*/
  83. /* Derived constants and error checks. */
  84. /*===========================================================================*/
  85. /*===========================================================================*/
  86. /* Module data structures and types. */
  87. /*===========================================================================*/
  88. /*===========================================================================*/
  89. /* Module macros. */
  90. /*===========================================================================*/
  91. /*===========================================================================*/
  92. /* External declarations. */
  93. /*===========================================================================*/
  94. /*===========================================================================*/
  95. /* Module inline functions. */
  96. /*===========================================================================*/
  97. #endif /* BOOT_H */
  98. /** @} */