efuse_definition.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <efuse_writer chip="6739" 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_ctrl0">
  32. <require length="4" />
  33. </inner_text>
  34. <inner_text tag="c_ctrl1">
  35. <require length="4" />
  36. </inner_text>
  37. <inner_text tag="c_ctrl2">
  38. <require length="4" />
  39. </inner_text>
  40. <inner_text tag="c_ctrl3">
  41. <require length="4" />
  42. </inner_text>
  43. <!-- Boolean declaration-->
  44. <boolean tag="common-ctrl" attribute="USB_download_type" />
  45. <boolean tag="common-ctrl" attribute="Disable_NAND_boot" />
  46. <boolean tag="common-ctrl" attribute="Disable_EMMC_boot" />
  47. <boolean tag="secure-ctrl" attribute="Disable_DBGPORT_LOCK" />
  48. <boolean tag="secure-ctrl" attribute="Enable_SW_JTAG_CON" />
  49. <boolean tag="secure-ctrl" attribute="Enable_ACC" />
  50. <boolean tag="secure-ctrl" attribute="Enable_ACK" />
  51. <boolean tag="secure-ctrl" attribute="Enable_SLA" />
  52. <boolean tag="secure-ctrl" attribute="Enable_DAA" />
  53. <boolean tag="secure-ctrl" attribute="Enable_SBC" />
  54. <boolean tag="secure-ctrl" attribute="Disable_JTAG" />
  55. <boolean tag="sec_msc" attribute="md1_sbc_en" />
  56. <boolean tag="c_ctrlm" attribute="disable_self_blow" />
  57. <boolean tag="cm_flag" attribute="enable_custk" />
  58. <boolean tag="c_lock" attribute="c_data0_1_lock" />
  59. <boolean tag="c_lock" attribute="c_ctrl3_lock" />
  60. <boolean tag="c_lock" attribute="c_ctrl2_lock" />
  61. <boolean tag="c_lock" attribute="c_ctrl1_lock" />
  62. <boolean tag="c_lock" attribute="c_ctrl0_lock" />
  63. <boolean tag="secure-lock" attribute="custk_lock" />
  64. <boolean tag="secure-lock" attribute="sec_msc_lock" />
  65. <boolean tag="secure-lock" attribute="sec_attr_lock" />
  66. <boolean tag="secure-lock" attribute="ackey_lock" />
  67. <boolean tag="secure-lock" attribute="sbc_pubk_hash_lock" />
  68. <boolean tag="common-lock" attribute="com_ctrl_lock" />
  69. <boolean tag="common-lock" attribute="usb_id_lock" />
  70. <boolean tag="run_time_blowing_config" attribute="bypass_c_data0" />
  71. <boolean tag="run_time_blowing_config" attribute="bypass_c_data1" />
  72. <boolean tag="run_time_blowing_config" attribute="bypass_c_ctrl0" />
  73. <boolean tag="run_time_blowing_config" attribute="bypass_c_ctrl1" />
  74. <boolean tag="run_time_blowing_config" attribute="bypass_c_ctrl2" />
  75. <boolean tag="run_time_blowing_config" attribute="bypass_c_ctrl3" />
  76. </definitions>
  77. <blow_list>
  78. <efuse offset="0x0" type="inner_value">
  79. <input tag="magic-key" attribute="key1" />
  80. </efuse>
  81. <efuse offset="0x4" type="inner_value">
  82. <input tag="magic-key" attribute="key2" />
  83. </efuse>
  84. <efuse offset="0xC" type="inner_text">
  85. <input tag="ac-key" start_index="0" end_index="7" />
  86. </efuse>
  87. <efuse offset="0x10" type="inner_text">
  88. <input tag="ac-key" start_index="8" end_index="15" />
  89. </efuse>
  90. <efuse offset="0x14" type="inner_text">
  91. <input tag="ac-key" start_index="16" end_index="23" />
  92. </efuse>
  93. <efuse offset="0x18" type="inner_text">
  94. <input tag="ac-key" start_index="24" end_index="31" />
  95. </efuse>
  96. <efuse offset="0x1C" type="external">
  97. <input key="SBC_PUBK_HASH" start_index="0" end_index="7" />
  98. </efuse>
  99. <efuse offset="0x20" type="external">
  100. <input key="SBC_PUBK_HASH" start_index="8" end_index="15" />
  101. </efuse>
  102. <efuse offset="0x24" type="external">
  103. <input key="SBC_PUBK_HASH" start_index="16" end_index="23" />
  104. </efuse>
  105. <efuse offset="0x28" type="external">
  106. <input key="SBC_PUBK_HASH" start_index="24" end_index="31" />
  107. </efuse>
  108. <efuse offset="0x2C" type="external">
  109. <input key="SBC_PUBK_HASH" start_index="32" end_index="39" />
  110. </efuse>
  111. <efuse offset="0x30" type="external">
  112. <input key="SBC_PUBK_HASH" start_index="40" end_index="47" />
  113. </efuse>
  114. <efuse offset="0x34" type="external">
  115. <input key="SBC_PUBK_HASH" start_index="48" end_index="55" />
  116. </efuse>
  117. <efuse offset="0x38" type="external">
  118. <input key="SBC_PUBK_HASH" start_index="56" end_index="63" />
  119. </efuse>
  120. <!-- usb-vid and usb-pid are special cases. They need to be reversed! -->
  121. <efuse offset="0x3C" type="inner_value">
  122. <input tag="usb-id" attribute="pid" reverse_endian="true" />
  123. </efuse>
  124. <!-- usb-vid and usb-pid are special cases. They need to be reversed! -->
  125. <efuse offset="0x40" type="inner_value">
  126. <input tag="usb-id" attribute="vid" reverse_endian="true" />
  127. </efuse>
  128. <efuse offset="0x44" type="inner_text">
  129. <input tag="c_data0" />
  130. </efuse>
  131. <efuse offset="0x48" type="inner_text">
  132. <input tag="c_data1" />
  133. </efuse>
  134. <efuse offset="0x4C" type="inner_text">
  135. <input tag="custk" start_index="0" end_index="7" />
  136. </efuse>
  137. <efuse offset="0x50" type="inner_text">
  138. <input tag="custk" start_index="8" end_index="15" />
  139. </efuse>
  140. <efuse offset="0x54" type="inner_text">
  141. <input tag="custk" start_index="16" end_index="23" />
  142. </efuse>
  143. <efuse offset="0x58" type="inner_text">
  144. <input tag="custk" start_index="24" end_index="31" />
  145. </efuse>
  146. <efuse offset="0x5C" type="boolean">
  147. <input bit="0" tag="common-ctrl" attribute="Disable_EMMC_boot" />
  148. <input bit="1" tag="common-ctrl" attribute="Disable_NAND_boot" />
  149. <input bit="2" tag="common-ctrl" attribute="USB_download_type" />
  150. </efuse>
  151. <efuse offset="0x60" type="boolean">
  152. <input bit="0" tag="secure-ctrl" attribute="Disable_JTAG" />
  153. <input bit="1" tag="secure-ctrl" attribute="Enable_SBC" />
  154. <input bit="2" tag="secure-ctrl" attribute="Enable_DAA" />
  155. <input bit="3" tag="secure-ctrl" attribute="Enable_SLA" />
  156. <input bit="4" tag="secure-ctrl" attribute="Enable_ACK" />
  157. <input bit="5" tag="secure-ctrl" attribute="Enable_ACC" />
  158. <input bit="6" tag="secure-ctrl" attribute="Enable_SW_JTAG_CON" />
  159. <input bit="9" tag="secure-ctrl" attribute="Disable_DBGPORT_LOCK" />
  160. </efuse>
  161. <efuse offset="0x64" type="boolean">
  162. <input bit="0" tag="sec_msc" attribute="md1_sbc_en" />
  163. </efuse>
  164. <efuse offset="0x68" type="inner_text">
  165. <input tag="c_ctrl0" />
  166. </efuse>
  167. <efuse offset="0x6C" type="inner_text">
  168. <input tag="c_ctrl1" />
  169. </efuse>
  170. <efuse offset="0x70" type="inner_text">
  171. <input tag="c_ctrl2" />
  172. </efuse>
  173. <efuse offset="0x74" type="inner_text">
  174. <input tag="c_ctrl3" />
  175. </efuse>
  176. <efuse offset="0x78" type="boolean">
  177. <input bit="15" tag="cm_flag" attribute="enable_custk" />
  178. </efuse>
  179. <!-- offset 0x7C is kept for internally automatically blowing -->
  180. <efuse offset="0x80" type="boolean">
  181. <input bit="26" tag="c_ctrlm" attribute="disable_self_blow" />
  182. </efuse>
  183. <efuse offset="0x84" type="boolean">
  184. <input bit="0" tag="c_lock" attribute="c_ctrl0_lock" />
  185. <input bit="1" tag="c_lock" attribute="c_ctrl1_lock" />
  186. <input bit="2" tag="c_lock" attribute="c_ctrl2_lock" />
  187. <input bit="3" tag="c_lock" attribute="c_ctrl3_lock" />
  188. <input bit="4" tag="c_lock" attribute="c_data0_1_lock" />
  189. </efuse>
  190. <efuse offset="0x88" type="boolean">
  191. <input bit="0" tag="secure-lock" attribute="sbc_pubk_hash_lock" />
  192. <input bit="1" tag="secure-lock" attribute="ackey_lock" />
  193. <input bit="2" tag="secure-lock" attribute="sec_attr_lock" />
  194. <input bit="3" tag="secure-lock" attribute="sec_msc_lock" />
  195. <input bit="4" tag="secure-lock" attribute="custk_lock" />
  196. </efuse>
  197. <efuse offset="0x8C" type="boolean">
  198. <input bit="0" tag="common-lock" attribute="usb_id_lock" />
  199. <input bit="1" tag="common-lock" attribute="com_ctrl_lock" />
  200. </efuse>
  201. <efuse offset="0x90" type="boolean">
  202. <input bit="0" tag="run_time_blowing_config" attribute="bypass_c_data0" />
  203. <input bit="1" tag="run_time_blowing_config" attribute="bypass_c_data1" />
  204. <input bit="6" tag="run_time_blowing_config" attribute="bypass_c_ctrl0" />
  205. <input bit="7" tag="run_time_blowing_config" attribute="bypass_c_ctrl1" />
  206. <input bit="8" tag="run_time_blowing_config" attribute="bypass_c_ctrl2" />
  207. <input bit="9" tag="run_time_blowing_config" attribute="bypass_c_ctrl3" />
  208. </efuse>
  209. </blow_list>
  210. </efuse_writer>