Просмотр исходного кода

efuse/esp32s3: Update efuse table

KonstantinKondrashov 4 лет назад
Родитель
Сommit
9490d78f49

+ 38 - 2
components/efuse/esp32s3/esp_efuse_table.c

@@ -1,4 +1,4 @@
-// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD
+// Copyright 2017-2020 Espressif Systems (Shanghai) PTE LTD
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@
 #include <assert.h>
 #include "esp_efuse_table.h"
 
-// md5_digest_table 6a29c09c943d9cb07bd874af57b5870e
+// md5_digest_table 47c4cec4f1affd33418ee25442586183
 // This file was generated from the file esp_efuse_table.csv. DO NOT CHANGE THIS FILE MANUALLY.
 // If you want to change some fields, you need to change esp_efuse_table.csv file
 // then run `efuse_common_table` or `efuse_custom_table` command it will generate this file.
@@ -287,6 +287,22 @@ static const esp_efuse_desc_t SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
     {EFUSE_BLK0, 117, 1}, 	 // Enable aggressive secure boot revoke,
 };
 
+static const esp_efuse_desc_t DIS_USB_JTAG[] = {
+    {EFUSE_BLK0, 118, 1}, 	 // Set to disable usb_serial_jtag-to-jtag function,
+};
+
+static const esp_efuse_desc_t DIS_USB_SERIAL_JTAG[] = {
+    {EFUSE_BLK0, 119, 1}, 	 // Set to disable usb_serial_jtag module,
+};
+
+static const esp_efuse_desc_t STRAP_JTAG_SEL[] = {
+    {EFUSE_BLK0, 120, 1}, 	 // Enable selection between usb_to_jtag or pad_to_jtag through gpio10,
+};
+
+static const esp_efuse_desc_t USB_PHY_SEL[] = {
+    {EFUSE_BLK0, 121, 1}, 	 // Select internal/external PHY for USB OTG and usb_serial_jtag,
+};
+
 static const esp_efuse_desc_t FLASH_TPUW[] = {
     {EFUSE_BLK0, 124, 4}, 	 // Flash wait time after power up. (unit is ms). When value is 15. the time is 30 ms,
 };
@@ -786,6 +802,26 @@ const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
     NULL
 };
 
+const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_JTAG[] = {
+    &DIS_USB_JTAG[0],    		// Set to disable usb_serial_jtag-to-jtag function
+    NULL
+};
+
+const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_SERIAL_JTAG[] = {
+    &DIS_USB_SERIAL_JTAG[0],    		// Set to disable usb_serial_jtag module
+    NULL
+};
+
+const esp_efuse_desc_t* ESP_EFUSE_STRAP_JTAG_SEL[] = {
+    &STRAP_JTAG_SEL[0],    		// Enable selection between usb_to_jtag or pad_to_jtag through gpio10
+    NULL
+};
+
+const esp_efuse_desc_t* ESP_EFUSE_USB_PHY_SEL[] = {
+    &USB_PHY_SEL[0],    		// Select internal/external PHY for USB OTG and usb_serial_jtag
+    NULL
+};
+
 const esp_efuse_desc_t* ESP_EFUSE_FLASH_TPUW[] = {
     &FLASH_TPUW[0],    		// Flash wait time after power up. (unit is ms). When value is 15. the time is 30 ms
     NULL

+ 4 - 0
components/efuse/esp32s3/esp_efuse_table.csv

@@ -86,6 +86,10 @@
         KEY_PURPOSE_5,                    EFUSE_BLK0,  108,    4,     Key5 purpose
         SECURE_BOOT_EN,                   EFUSE_BLK0,  116,    1,     Secure boot enable
         SECURE_BOOT_AGGRESSIVE_REVOKE,    EFUSE_BLK0,  117,    1,     Enable aggressive secure boot revoke
+        DIS_USB_JTAG,                     EFUSE_BLK0,  118,    1,     Set to disable usb_serial_jtag-to-jtag function
+        DIS_USB_SERIAL_JTAG,              EFUSE_BLK0,  119,    1,     Set to disable usb_serial_jtag module
+        STRAP_JTAG_SEL,                   EFUSE_BLK0,  120,    1,     Enable selection between usb_to_jtag or pad_to_jtag through gpio10
+        USB_PHY_SEL,                      EFUSE_BLK0,  121,    1,     Select internal/external PHY for USB OTG and usb_serial_jtag
         FLASH_TPUW,                       EFUSE_BLK0,  124,    4,     Flash wait time after power up. (unit is ms). When value is 15. the time is 30 ms
 
     # EFUSE_RD_REPEAT_DATA3_REG #

+ 6 - 2
components/efuse/esp32s3/include/esp_efuse_table.h

@@ -1,4 +1,4 @@
-// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD
+// Copyright 2017-2020 Espressif Systems (Shanghai) PTE LTD
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@ extern "C" {
 #endif
 
 
-// md5_digest_table 6a29c09c943d9cb07bd874af57b5870e
+// md5_digest_table 47c4cec4f1affd33418ee25442586183
 // This file was generated from the file esp_efuse_table.csv. DO NOT CHANGE THIS FILE MANUALLY.
 // If you want to change some fields, you need to change esp_efuse_table.csv file
 // then run `efuse_common_table` or `efuse_custom_table` command it will generate this file.
@@ -90,6 +90,10 @@ extern const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_4[];
 extern const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_5[];
 extern const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_EN[];
 extern const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_AGGRESSIVE_REVOKE[];
+extern const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_JTAG[];
+extern const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_SERIAL_JTAG[];
+extern const esp_efuse_desc_t* ESP_EFUSE_STRAP_JTAG_SEL[];
+extern const esp_efuse_desc_t* ESP_EFUSE_USB_PHY_SEL[];
 extern const esp_efuse_desc_t* ESP_EFUSE_FLASH_TPUW[];
 extern const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MODE[];
 extern const esp_efuse_desc_t* ESP_EFUSE_DIS_LEGACY_SPI_BOOT[];

+ 1 - 1
components/esptool_py/esptool

@@ -1 +1 @@
-Subproject commit 4698b396730b23fb4aab023c5fb1744db957fc4c
+Subproject commit e5f94fa7ea60403e804d782115f440385e8a5edd