boot_config.h.in 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _BOOT_CONFIG_H_
  13. #define _BOOT_CONFIG_H_
  14. #include "hal_config.h"
  15. // @AUTO_GENERATION_NOTICE@
  16. /**
  17. * Whether to enable debug event in bootloader and fdl
  18. */
  19. #cmakedefine CONFIG_BOOT_EVENT_ENABLED
  20. /**
  21. * Whether to enable log in bootloader
  22. */
  23. #cmakedefine CONFIG_BOOT_LOG_ENABLED
  24. /**
  25. * Whether to enable log in fdl
  26. */
  27. #cmakedefine CONFIG_FDL_LOG_ENABLED
  28. /**
  29. * Perform signature check before flash write
  30. */
  31. #cmakedefine CONFIG_FDL_FLASH_SIGCHECK_BEFORE_WRITE
  32. /**
  33. * bootloader image start address (8910, 8811)
  34. *
  35. * This is the bootloader loaded address in SRAM, rather than the address
  36. * on flash. Also, it is start address of image header. It should match
  37. * system ROM.
  38. */
  39. #cmakedefine CONFIG_BOOT_IMAGE_START @CONFIG_BOOT_IMAGE_START@
  40. /**
  41. * bootloader maximum image size, excluding signature
  42. */
  43. #cmakedefine CONFIG_BOOT_UNSIGN_IMAGE_SIZE @CONFIG_BOOT_UNSIGN_IMAGE_SIZE@
  44. /**
  45. * bootloader maximum sram size, including header and non-romed sram
  46. */
  47. #cmakedefine CONFIG_BOOT_IMAGE_SIZE @CONFIG_BOOT_IMAGE_SIZE@
  48. /**
  49. * BOOT2 (decompressed) image address (8910)
  50. */
  51. #cmakedefine CONFIG_BOOT2_IMAGE_START @CONFIG_BOOT2_IMAGE_START@
  52. /**
  53. * BOOT2 (decompressed) sram size, including header and non-romed sram (8910)
  54. */
  55. #cmakedefine CONFIG_BOOT2_IMAGE_SIZE @CONFIG_BOOT2_IMAGE_SIZE@
  56. /**
  57. * FDL1 image address in SRAM (8910)
  58. *
  59. * It should match system ROM.
  60. */
  61. #cmakedefine CONFIG_FDL1_IMAGE_START @CONFIG_FDL1_IMAGE_START@
  62. /**
  63. * FDL1 maximum sram size, including header and non-romed sram (8910)
  64. */
  65. #cmakedefine CONFIG_FDL1_IMAGE_SIZE @CONFIG_FDL1_IMAGE_SIZE@
  66. /**
  67. * FDL2 image address in SRAM (8910)
  68. */
  69. #cmakedefine CONFIG_FDL2_IMAGE_START @CONFIG_FDL2_IMAGE_START@
  70. /**
  71. * FDL2 maximum sram size, including header and non-romed sram (8910)
  72. */
  73. #cmakedefine CONFIG_FDL2_IMAGE_SIZE @CONFIG_FDL2_IMAGE_SIZE@
  74. /**
  75. * NORFDL image address in SRAM (8811)
  76. *
  77. * It should match system ROM.
  78. */
  79. #cmakedefine CONFIG_NORFDL_IMAGE_START @CONFIG_NORFDL_IMAGE_START@
  80. /**
  81. * system SRAM data size used by sysrom (8850)
  82. */
  83. #cmakedefine CONFIG_ROM_SRAM_DATA_SIZE @CONFIG_ROM_SRAM_DATA_SIZE@
  84. /**
  85. * NORFDL maximum image size (8811)
  86. */
  87. #cmakedefine CONFIG_NORFDL_IMAGE_SIZE @CONFIG_NORFDL_IMAGE_SIZE@
  88. /**
  89. * bootloader/fdl IRQ stack size (8910)
  90. */
  91. #cmakedefine CONFIG_BOOT_IRQ_STACK_SIZE @CONFIG_BOOT_IRQ_STACK_SIZE@
  92. /**
  93. * bootloader/fdl SYS stack size (8910)
  94. */
  95. #cmakedefine CONFIG_BOOT_SYS_STACK_SIZE @CONFIG_BOOT_SYS_STACK_SIZE@
  96. /**
  97. * bootloader/fdl main stack size (8811)
  98. */
  99. #cmakedefine CONFIG_BOOT_MAIN_STACK_SIZE @CONFIG_BOOT_MAIN_STACK_SIZE@
  100. /**
  101. * bootloader/fdl process stack size (8811)
  102. */
  103. #cmakedefine CONFIG_BOOT_PROCESS_STACK_SIZE @CONFIG_BOOT_PROCESS_STACK_SIZE@
  104. /**
  105. * whether to enable timer interrupt in bootloader (8910)
  106. */
  107. #cmakedefine CONFIG_BOOT_TIMER_IRQ_ENABLE
  108. /**
  109. * bootloader timer interval in milliseconds (8910)
  110. */
  111. #cmakedefine CONFIG_BOOT_TIMER_PERIOD @CONFIG_BOOT_TIMER_PERIOD@
  112. /**
  113. * maximum FDL packet length
  114. */
  115. #cmakedefine CONFIG_FDL1_PACKET_MAX_LEN @CONFIG_FDL1_PACKET_MAX_LEN@
  116. /**
  117. * maximum FDL packet length
  118. */
  119. #cmakedefine CONFIG_FDL_PACKET_MAX_LEN @CONFIG_FDL_PACKET_MAX_LEN@
  120. /**
  121. * fixed nv bin maximum size in bytes (8910, 8811)
  122. */
  123. #cmakedefine CONFIG_NVBIN_FIXED_SIZE @CONFIG_NVBIN_FIXED_SIZE@
  124. /**
  125. * FDL1, FDL2 default uart device (8910)
  126. */
  127. #cmakedefine CONFIG_FDL_DEFAULT_UART @CONFIG_FDL_DEFAULT_UART@
  128. /**
  129. * FDL1, FDL2 default uart baud rate (8910)
  130. */
  131. #cmakedefine CONFIG_FDL_UART_BAUD @CONFIG_FDL_UART_BAUD@
  132. /**
  133. * Enable SMPL(Sudden Momentary Power Loss)(8910)
  134. */
  135. #cmakedefine CONFIG_BOOT_SMPL_ENABLE
  136. /**
  137. * Set SMPL thimer threshold (8910)
  138. */
  139. #cmakedefine CONFIG_BOOT_SMPL_THRESHOLD @CONFIG_BOOT_SMPL_THRESHOLD@
  140. /**
  141. * Enable pbint 7s reset (8910)
  142. */
  143. #cmakedefine CONFIG_BOOT_PB_7S_RESET_ENABLE
  144. /**
  145. * Enable UART download in bootloader through PDL protocol
  146. */
  147. #cmakedefine CONFIG_BOOT_UART1_PDL_ENABLE
  148. /**
  149. * bootloader unity output to uart
  150. */
  151. #cmakedefine CONFIG_BOOT_UNITY_OUTPUT_UART
  152. /**
  153. * bootloader unity unit test uart
  154. */
  155. #cmakedefine CONFIG_BOOT_UNITY_UART_NAME @CONFIG_BOOT_UNITY_UART_NAME@
  156. /**
  157. * bootloader unity unit test uart baud rate
  158. */
  159. #cmakedefine CONFIG_BOOT_UNITY_UART_BAUD @CONFIG_BOOT_UNITY_UART_BAUD@
  160. #endif