From 470f01d033cc2cf7ffc4bd1112bd1234911fde82 Mon Sep 17 00:00:00 2001 From: hebinglin Date: Thu, 4 Dec 2025 21:13:30 +0800 Subject: [PATCH] change(esp_phy): add btbb_retention_reg.h in esp32h21 and esp32h4 --- .../esp32h21/include/btbb_retention_reg.h | 25 +++++++++++++++++++ .../esp32h4/include/btbb_retention_reg.h | 25 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 components/esp_phy/esp32h21/include/btbb_retention_reg.h create mode 100644 components/esp_phy/esp32h4/include/btbb_retention_reg.h diff --git a/components/esp_phy/esp32h21/include/btbb_retention_reg.h b/components/esp_phy/esp32h21/include/btbb_retention_reg.h new file mode 100644 index 0000000000..db56329ec1 --- /dev/null +++ b/components/esp_phy/esp32h21/include/btbb_retention_reg.h @@ -0,0 +1,25 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +// btbb sleep retention reg + +#define BB_PART_CNT 3 +#define BB_PART_0_SIZE 128 +#define BB_PART_1_SIZE 67 +#define BB_PART_2_SIZE 63 +#define BB_PART_0_ADDR 0x600a2000 +#define BB_PART_1_ADDR 0x600a2800 +#define BB_PART_2_ADDR 0x600a2c00 + +#ifdef __cplusplus +} +#endif diff --git a/components/esp_phy/esp32h4/include/btbb_retention_reg.h b/components/esp_phy/esp32h4/include/btbb_retention_reg.h new file mode 100644 index 0000000000..c15806b17f --- /dev/null +++ b/components/esp_phy/esp32h4/include/btbb_retention_reg.h @@ -0,0 +1,25 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +// btbb sleep retention reg + +#define BB_PART_CNT 3 +#define BB_PART_0_SIZE 128 +#define BB_PART_1_SIZE 67 +#define BB_PART_2_SIZE 63 +#define BB_PART_0_ADDR 0x600c2000 +#define BB_PART_1_ADDR 0x600c2800 +#define BB_PART_2_ADDR 0x600c2c00 + +#ifdef __cplusplus +} +#endif