efuse_definition.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <efuse_writer chip="6755" 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="c_data_0">
  20. <require length="16" />
  21. </inner_text>
  22. <inner_text tag="c_data_1">
  23. <require length="16" />
  24. </inner_text>
  25. <inner_text tag="ac-key">
  26. <require length="32" />
  27. </inner_text>
  28. <inner_text tag="c_ctrl1">
  29. <require length="4" />
  30. <require valid_start_bit="0" valid_end_bit="13" />
  31. </inner_text>
  32. <!-- Boolean declaration-->
  33. <boolean tag="common-ctrl" attribute="Disable_NAND_boot_speedup" />
  34. <boolean tag="common-ctrl" attribute="USB_download_type" />
  35. <boolean tag="common-ctrl" attribute="Disable_NAND_boot" />
  36. <boolean tag="common-ctrl" attribute="Disable_EMMC_boot" />
  37. <boolean tag="secure-ctrl" attribute="Enable_SW_JTAG_CON" />
  38. <boolean tag="secure-ctrl" attribute="Enable_Root_Cert" />
  39. <boolean tag="secure-ctrl" attribute="Enable_ACC" />
  40. <boolean tag="secure-ctrl" attribute="Enable_ACK" />
  41. <boolean tag="secure-ctrl" attribute="Enable_SLA" />
  42. <boolean tag="secure-ctrl" attribute="Enable_DAA" />
  43. <boolean tag="secure-ctrl" attribute="Enable_SBC" />
  44. <boolean tag="secure-ctrl" attribute="Disable_JTAG" />
  45. <boolean tag="secure-ctrl" attribute="Disable_DBGPORT_LOCK" />
  46. <boolean tag="c_ctrl_0" attribute="c2k_sbc_en" />
  47. <boolean tag="c_ctrl_0" attribute="md1_sbc_en" />
  48. <boolean tag="c_ctrl_0" attribute="disable_self_blow" />
  49. <boolean tag="c_lock" attribute="c_ctrl1_lock" />
  50. <boolean tag="c_lock" attribute="c_ctrl0_lock" />
  51. <boolean tag="c_lock" attribute="c_data1_lock" />
  52. <boolean tag="c_lock" attribute="c_data0_lock" />
  53. <boolean tag="common-lock" attribute="com_ctrl_lock" />
  54. <boolean tag="common-lock" attribute="usb_id_lock" />
  55. <boolean tag="secure-lock" attribute="sbc_pubk_hash_lock" />
  56. <boolean tag="secure-lock" attribute="ackey_lock" />
  57. <boolean tag="secure-lock" attribute="sec_attr_lock" />
  58. </definitions>
  59. <blow_list>
  60. <efuse offset="0x0" type="inner_value">
  61. <input tag="magic-key" attribute="key1" />
  62. </efuse>
  63. <efuse offset="0x4" type="inner_value">
  64. <input tag="magic-key" attribute="key2" />
  65. </efuse>
  66. <efuse offset="0xC" type="inner_text">
  67. <input tag="ac-key" start_index="0" end_index="7" />
  68. </efuse>
  69. <efuse offset="0x10" type="inner_text">
  70. <input tag="ac-key" start_index="8" end_index="15" />
  71. </efuse>
  72. <efuse offset="0x14" type="inner_text">
  73. <input tag="ac-key" start_index="16" end_index="23" />
  74. </efuse>
  75. <efuse offset="0x18" type="inner_text">
  76. <input tag="ac-key" start_index="24" end_index="31" />
  77. </efuse>
  78. <efuse offset="0x1C" type="external">
  79. <input key="SBC_PUBK_HASH" start_index="0" end_index="7" />
  80. </efuse>
  81. <efuse offset="0x20" type="external">
  82. <input key="SBC_PUBK_HASH" start_index="8" end_index="15" />
  83. </efuse>
  84. <efuse offset="0x24" type="external">
  85. <input key="SBC_PUBK_HASH" start_index="16" end_index="23" />
  86. </efuse>
  87. <efuse offset="0x28" type="external">
  88. <input key="SBC_PUBK_HASH" start_index="24" end_index="31" />
  89. </efuse>
  90. <efuse offset="0x2C" type="external">
  91. <input key="SBC_PUBK_HASH" start_index="32" end_index="39" />
  92. </efuse>
  93. <efuse offset="0x30" type="external">
  94. <input key="SBC_PUBK_HASH" start_index="40" end_index="47" />
  95. </efuse>
  96. <efuse offset="0x34" type="external">
  97. <input key="SBC_PUBK_HASH" start_index="48" end_index="55" />
  98. </efuse>
  99. <efuse offset="0x38" type="external">
  100. <input key="SBC_PUBK_HASH" start_index="56" end_index="63" />
  101. </efuse>
  102. <!-- usb-vid and usb-pid are special cases. They need to be reversed! -->
  103. <efuse offset="0x3C" type="inner_value">
  104. <input tag="usb-id" attribute="pid" reverse_endian="true" />
  105. </efuse>
  106. <!-- usb-vid and usb-pid are special cases. They need to be reversed! -->
  107. <efuse offset="0x40" type="inner_value">
  108. <input tag="usb-id" attribute="vid" reverse_endian="true" />
  109. </efuse>
  110. <efuse offset="0x44" type="inner_text">
  111. <input tag="c_data_0" start_index="0" end_index="7" />
  112. </efuse>
  113. <efuse offset="0x48" type="inner_text">
  114. <input tag="c_data_0" start_index="8" end_index="15" />
  115. </efuse>
  116. <efuse offset="0x4C" type="inner_text">
  117. <input tag="c_data_1" start_index="0" end_index="7" />
  118. </efuse>
  119. <efuse offset="0x50" type="inner_text">
  120. <input tag="c_data_1" start_index="8" end_index="15" />
  121. </efuse>
  122. <efuse offset="0x54" type="boolean">
  123. <input bit="0" tag="common-ctrl" attribute="Disable_EMMC_boot" />
  124. <input bit="1" tag="common-ctrl" attribute="Disable_NAND_boot" />
  125. <input bit="2" tag="common-ctrl" attribute="USB_download_type" />
  126. <input bit="4" tag="common-ctrl" attribute="Disable_NAND_boot_speedup" />
  127. </efuse>
  128. <efuse offset="0x58" type="boolean">
  129. <input bit="0" tag="secure-ctrl" attribute="Disable_JTAG" />
  130. <input bit="1" tag="secure-ctrl" attribute="Enable_SBC" />
  131. <input bit="2" tag="secure-ctrl" attribute="Enable_DAA" />
  132. <input bit="3" tag="secure-ctrl" attribute="Enable_SLA" />
  133. <input bit="4" tag="secure-ctrl" attribute="Enable_ACK" />
  134. <input bit="5" tag="secure-ctrl" attribute="Enable_ACC" />
  135. <input bit="6" tag="secure-ctrl" attribute="Enable_SW_JTAG_CON" />
  136. <input bit="7" tag="secure-ctrl" attribute="Enable_Root_Cert" />
  137. <input bit="9" tag="secure-ctrl" attribute="Disable_DBGPORT_LOCK" />
  138. </efuse>
  139. <efuse offset="0x5C" type="inner_text">
  140. <input tag="c_ctrl1" />
  141. </efuse>
  142. <efuse offset="0x60" type="boolean">
  143. <input bit="0" tag="c_ctrl_0" attribute="c2k_sbc_en" />
  144. <input bit="1" tag="c_ctrl_0" attribute="md1_sbc_en" />
  145. <input bit="2" tag="c_ctrl_0" attribute="disable_self_blow" />
  146. </efuse>
  147. <efuse offset="0x64" type="boolean">
  148. <input bit="0" tag="c_lock" attribute="c_data0_lock" />
  149. <input bit="1" tag="c_lock" attribute="c_data1_lock" />
  150. <input bit="4" tag="c_lock" attribute="c_ctrl0_lock" />
  151. <input bit="5" tag="c_lock" attribute="c_ctrl1_lock" />
  152. </efuse>
  153. <efuse offset="0x68" type="boolean">
  154. <input bit="0" tag="secure-lock" attribute="sbc_pubk_hash_lock" />
  155. <input bit="1" tag="secure-lock" attribute="ackey_lock" />
  156. <input bit="2" tag="secure-lock" attribute="sec_attr_lock" />
  157. </efuse>
  158. <efuse offset="0x6C" type="boolean">
  159. <input bit="1" tag="common-lock" attribute="usb_id_lock" />
  160. <input bit="2" tag="common-lock" attribute="com_ctrl_lock" />
  161. </efuse>
  162. </blow_list>
  163. </efuse_writer>