efuse_definition.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <efuse_writer chip="6771" output_bin_size="512">
  2. <definitions>
  3. <!-- Inner Value declaration-->
  4. <inner_value tag="magic-key" attribute="key1">
  5. <require length="8" />
  6. <suppress_log />
  7. </inner_value>
  8. <inner_value tag="magic-key" attribute="key2">
  9. <require length="8" />
  10. <suppress_log />
  11. </inner_value>
  12. <inner_value tag="usb-id" attribute="vid">
  13. <require length="4" />
  14. </inner_value>
  15. <inner_value tag="usb-id" attribute="pid">
  16. <require length="4" />
  17. </inner_value>
  18. <!-- Inner Text declaration-->
  19. <inner_text tag="ac-key">
  20. <require length="32" />
  21. </inner_text>
  22. <inner_text tag="custk">
  23. <require length="32" />
  24. </inner_text>
  25. <inner_text tag="c_data0">
  26. <require length="8" />
  27. </inner_text>
  28. <inner_text tag="c_data1">
  29. <require length="8" />
  30. </inner_text>
  31. <inner_text tag="c_data2">
  32. <require length="8" />
  33. </inner_text>
  34. <inner_text tag="c_data3">
  35. <require length="8" />
  36. </inner_text>
  37. <inner_text tag="c_data4">
  38. <require length="8" />
  39. </inner_text>
  40. <inner_text tag="c_data5">
  41. <require length="8" />
  42. </inner_text>
  43. <inner_text tag="c_ctrl0">
  44. <require length="8" />
  45. </inner_text>
  46. <inner_text tag="c_ctrl1">
  47. <require length="8" />
  48. </inner_text>
  49. <!-- Boolean declaration-->
  50. <boolean tag="common-ctrl" attribute="Disable_UFS_boot" />
  51. <boolean tag="common-ctrl" attribute="USB_download_type" />
  52. <boolean tag="common-ctrl" attribute="Disable_EMMC_boot" />
  53. <boolean tag="secure-ctrl" attribute="Disable_DBGPORT_LOCK" />
  54. <boolean tag="secure-ctrl" attribute="Enable_SW_JTAG_CON" />
  55. <boolean tag="secure-ctrl" attribute="Enable_ACC" />
  56. <boolean tag="secure-ctrl" attribute="Enable_ACK" />
  57. <boolean tag="secure-ctrl" attribute="Enable_SLA" />
  58. <boolean tag="secure-ctrl" attribute="Enable_DAA" />
  59. <boolean tag="secure-ctrl" attribute="Enable_SBC" />
  60. <boolean tag="secure-ctrl" attribute="Disable_JTAG" />
  61. <boolean tag="sec_msc" attribute="md1_sbc_en" />
  62. <boolean tag="sec_msc" attribute="c2k_sbc_en" />
  63. <boolean tag="c_ctrlm" attribute="disable_self_blow" />
  64. <boolean tag="cm_flag" attribute="enable_custk" />
  65. <boolean tag="c_lock" attribute="c_data5_lock" />
  66. <boolean tag="c_lock" attribute="c_data4_lock" />
  67. <boolean tag="c_lock" attribute="c_data3_lock" />
  68. <boolean tag="c_lock" attribute="c_data2_lock" />
  69. <boolean tag="c_lock" attribute="c_data1_lock" />
  70. <boolean tag="c_lock" attribute="c_data0_lock" />
  71. <boolean tag="c_lock" attribute="c_ctrl1_lock" />
  72. <boolean tag="c_lock" attribute="c_ctrl0_lock" />
  73. <boolean tag="c_lock" attribute="c_ctrlm_lock" />
  74. <boolean tag="secure-lock" attribute="custk_lock" />
  75. <boolean tag="secure-lock" attribute="sec_msc_lock" />
  76. <boolean tag="secure-lock" attribute="sec_attr_lock" />
  77. <boolean tag="secure-lock" attribute="ackey_lock" />
  78. <boolean tag="secure-lock" attribute="sbc_pubk_hash_lock" />
  79. <boolean tag="common-lock" attribute="com_ctrl_lock" />
  80. <boolean tag="common-lock" attribute="usb_id_lock" />
  81. <boolean tag="run_time_blowing_config" attribute="bypass_c_data0" />
  82. <boolean tag="run_time_blowing_config" attribute="bypass_c_data1" />
  83. <boolean tag="run_time_blowing_config" attribute="bypass_c_data2" />
  84. <boolean tag="run_time_blowing_config" attribute="bypass_c_data3" />
  85. <boolean tag="run_time_blowing_config" attribute="bypass_c_data4" />
  86. <boolean tag="run_time_blowing_config" attribute="bypass_c_data5" />
  87. <boolean tag="run_time_blowing_config" attribute="bypass_c_ctrl0" />
  88. <boolean tag="run_time_blowing_config" attribute="bypass_c_ctrl1" />
  89. </definitions>
  90. <blow_list>
  91. <efuse offset="0x0" type="inner_value">
  92. <input tag="magic-key" attribute="key1" />
  93. </efuse>
  94. <efuse offset="0x4" type="inner_value">
  95. <input tag="magic-key" attribute="key2" />
  96. </efuse>
  97. <efuse offset="0xC" type="inner_text">
  98. <input tag="ac-key" start_index="0" end_index="7" />
  99. </efuse>
  100. <efuse offset="0x10" type="inner_text">
  101. <input tag="ac-key" start_index="8" end_index="15" />
  102. </efuse>
  103. <efuse offset="0x14" type="inner_text">
  104. <input tag="ac-key" start_index="16" end_index="23" />
  105. </efuse>
  106. <efuse offset="0x18" type="inner_text">
  107. <input tag="ac-key" start_index="24" end_index="31" />
  108. </efuse>
  109. <efuse offset="0x1C" type="external">
  110. <input key="SBC_PUBK_HASH" start_index="0" end_index="7" />
  111. </efuse>
  112. <efuse offset="0x20" type="external">
  113. <input key="SBC_PUBK_HASH" start_index="8" end_index="15" />
  114. </efuse>
  115. <efuse offset="0x24" type="external">
  116. <input key="SBC_PUBK_HASH" start_index="16" end_index="23" />
  117. </efuse>
  118. <efuse offset="0x28" type="external">
  119. <input key="SBC_PUBK_HASH" start_index="24" end_index="31" />
  120. </efuse>
  121. <efuse offset="0x2C" type="external">
  122. <input key="SBC_PUBK_HASH" start_index="32" end_index="39" />
  123. </efuse>
  124. <efuse offset="0x30" type="external">
  125. <input key="SBC_PUBK_HASH" start_index="40" end_index="47" />
  126. </efuse>
  127. <efuse offset="0x34" type="external">
  128. <input key="SBC_PUBK_HASH" start_index="48" end_index="55" />
  129. </efuse>
  130. <efuse offset="0x38" type="external">
  131. <input key="SBC_PUBK_HASH" start_index="56" end_index="63" />
  132. </efuse>
  133. <!-- usb-vid and usb-pid are special cases. They need to be reversed! -->
  134. <efuse offset="0x3C" type="inner_value">
  135. <input tag="usb-id" attribute="pid" reverse_endian="true" />
  136. </efuse>
  137. <!-- usb-vid and usb-pid are special cases. They need to be reversed! -->
  138. <efuse offset="0x40" type="inner_value">
  139. <input tag="usb-id" attribute="vid" reverse_endian="true" />
  140. </efuse>
  141. <efuse offset="0x44" type="inner_text">
  142. <input tag="c_data0" />
  143. </efuse>
  144. <efuse offset="0x48" type="inner_text">
  145. <input tag="c_data1" />
  146. </efuse>
  147. <efuse offset="0x4C" type="inner_text">
  148. <input tag="c_data2" />
  149. </efuse>
  150. <efuse offset="0x50" type="inner_text">
  151. <input tag="c_data3" />
  152. </efuse>
  153. <efuse offset="0x54" type="inner_text">
  154. <input tag="c_data4" />
  155. </efuse>
  156. <efuse offset="0x58" type="inner_text">
  157. <input tag="c_data5" />
  158. </efuse>
  159. <efuse offset="0x5C" type="inner_text">
  160. <input tag="custk" start_index="0" end_index="7" />
  161. </efuse>
  162. <efuse offset="0x60" type="inner_text">
  163. <input tag="custk" start_index="8" end_index="15" />
  164. </efuse>
  165. <efuse offset="0x64" type="inner_text">
  166. <input tag="custk" start_index="16" end_index="23" />
  167. </efuse>
  168. <efuse offset="0x68" type="inner_text">
  169. <input tag="custk" start_index="24" end_index="31" />
  170. </efuse>
  171. <efuse offset="0x6C" type="boolean">
  172. <input bit="0" tag="common-ctrl" attribute="Disable_EMMC_boot" />
  173. <input bit="2" tag="common-ctrl" attribute="USB_download_type" />
  174. <input bit="12" tag="common-ctrl" attribute="Disable_UFS_boot" />
  175. </efuse>
  176. <efuse offset="0x70" type="boolean">
  177. <input bit="0" tag="secure-ctrl" attribute="Disable_JTAG" />
  178. <input bit="1" tag="secure-ctrl" attribute="Enable_SBC" />
  179. <input bit="2" tag="secure-ctrl" attribute="Enable_DAA" />
  180. <input bit="3" tag="secure-ctrl" attribute="Enable_SLA" />
  181. <input bit="4" tag="secure-ctrl" attribute="Enable_ACK" />
  182. <input bit="5" tag="secure-ctrl" attribute="Enable_ACC" />
  183. <input bit="6" tag="secure-ctrl" attribute="Enable_SW_JTAG_CON" />
  184. <input bit="9" tag="secure-ctrl" attribute="Disable_DBGPORT_LOCK" />
  185. </efuse>
  186. <efuse offset="0x74" type="boolean">
  187. <input bit="0" tag="sec_msc" attribute="c2k_sbc_en" />
  188. <input bit="1" tag="sec_msc" attribute="md1_sbc_en" />
  189. </efuse>
  190. <efuse offset="0x78" type="inner_text">
  191. <input tag="c_ctrl0" />
  192. </efuse>
  193. <efuse offset="0x7C" type="inner_text">
  194. <input tag="c_ctrl1" />
  195. </efuse>
  196. <efuse offset="0x80" type="boolean">
  197. <input bit="15" tag="cm_flag" attribute="enable_custk" />
  198. </efuse>
  199. <!-- offset 0x84 is kept for internally automatically blowing -->
  200. <efuse offset="0x88" type="boolean">
  201. <input bit="0" tag="c_ctrlm" attribute="disable_self_blow" />
  202. </efuse>
  203. <efuse offset="0x8C" type="boolean">
  204. <input bit="0" tag="c_lock" attribute="c_ctrlm_lock" />
  205. <input bit="1" tag="c_lock" attribute="c_ctrl0_lock" />
  206. <input bit="2" tag="c_lock" attribute="c_ctrl1_lock" />
  207. <input bit="3" tag="c_lock" attribute="c_data0_lock" />
  208. <input bit="4" tag="c_lock" attribute="c_data1_lock" />
  209. <input bit="5" tag="c_lock" attribute="c_data2_lock" />
  210. <input bit="6" tag="c_lock" attribute="c_data3_lock" />
  211. <input bit="7" tag="c_lock" attribute="c_data4_lock" />
  212. <input bit="8" tag="c_lock" attribute="c_data5_lock" />
  213. </efuse>
  214. <efuse offset="0x90" type="boolean">
  215. <input bit="0" tag="secure-lock" attribute="sbc_pubk_hash_lock" />
  216. <input bit="1" tag="secure-lock" attribute="ackey_lock" />
  217. <input bit="2" tag="secure-lock" attribute="sec_attr_lock" />
  218. <input bit="3" tag="secure-lock" attribute="sec_msc_lock" />
  219. <input bit="4" tag="secure-lock" attribute="custk_lock" />
  220. </efuse>
  221. <efuse offset="0x94" type="boolean">
  222. <input bit="1" tag="common-lock" attribute="usb_id_lock" />
  223. <input bit="2" tag="common-lock" attribute="com_ctrl_lock" />
  224. </efuse>
  225. <efuse offset="0x98" type="boolean">
  226. <input bit="0" tag="run_time_blowing_config" attribute="bypass_c_data0" />
  227. <input bit="1" tag="run_time_blowing_config" attribute="bypass_c_data1" />
  228. <input bit="2" tag="run_time_blowing_config" attribute="bypass_c_data2" />
  229. <input bit="3" tag="run_time_blowing_config" attribute="bypass_c_data3" />
  230. <input bit="4" tag="run_time_blowing_config" attribute="bypass_c_data4" />
  231. <input bit="5" tag="run_time_blowing_config" attribute="bypass_c_data5" />
  232. <input bit="6" tag="run_time_blowing_config" attribute="bypass_c_ctrl0" />
  233. <input bit="7" tag="run_time_blowing_config" attribute="bypass_c_ctrl1" />
  234. </efuse>
  235. </blow_list>
  236. </efuse_writer>