efuse_definition.xml 9.7 KB

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