Skip to content

Commit 8205a48

Browse files
esp-lisQingzhaoYin
authored andcommitted
change(esp_phy): update phy retention context for esp32c61
1 parent bc5bef5 commit 8205a48

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

components/esp_phy/esp32c61/phy_init_data.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,15 @@ static const char* TAG = "phy_sleep";
157157

158158
static esp_err_t sleep_retention_wifi_bb_init(void *arg)
159159
{
160-
#define N_REGS_WIFI_AGC() (121)
161-
#define N_REGS_WIFI_TX() (14)
162-
#define N_REGS_WIFI_NRX() (136)
163-
#define N_REGS_WIFI_BB() (53)
160+
#define N_REGS_WIFI_AGC() (130)
161+
#define N_REGS_WIFI_TX() (30)
162+
#define N_REGS_WIFI_NRX() (145)
163+
#define N_REGS_WIFI_BB() (82)
164164
#define N_REGS_WIFI_BRX() (39)
165-
#define N_REGS_WIFI_FE_COEX() (58)
166-
#define N_REGS_WIFI_FE_DATA() (41)
167-
#define N_REGS_WIFI_FE_CTRL() (87)
165+
#define N_REGS_WIFI_FE_COEX() (21)
166+
#define N_REGS_WIFI_FE_DATA() (34)
167+
#define N_REGS_WIFI_FE_CTRL() (56)
168+
#define N_REGS_WIFI_FE_WIFI() (21)
168169

169170
const static sleep_retention_entries_config_t bb_regs_retention[] = {
170171
[0] = { .config = REGDMA_LINK_CONTINUOUS_INIT(0x0b00, 0x600a7000, 0x600a7000, N_REGS_WIFI_AGC(), 0, 0), .owner = BIT(0) | BIT(1) }, /* AGC */
@@ -175,6 +176,7 @@ static esp_err_t sleep_retention_wifi_bb_init(void *arg)
175176
[5] = { .config = REGDMA_LINK_CONTINUOUS_INIT(0x0b06, 0x600a8000, 0x600a8000, N_REGS_WIFI_BRX(), 0, 0), .owner = BIT(0) | BIT(1) }, /* BRX */
176177
[6] = { .config = REGDMA_LINK_CONTINUOUS_INIT(0x0b07, 0x600a0400, 0x600a0400, N_REGS_WIFI_FE_DATA(), 0, 0), .owner = BIT(0) | BIT(1) }, /* FE DATA */
177178
[7] = { .config = REGDMA_LINK_CONTINUOUS_INIT(0x0b08, 0x600a0800, 0x600a0800, N_REGS_WIFI_FE_CTRL(), 0, 0), .owner = BIT(0) | BIT(1) }, /* FE CTRL */
179+
[8] = { .config = REGDMA_LINK_CONTINUOUS_INIT(0x0b09, 0x600a0c00, 0x600a0c00, N_REGS_WIFI_FE_WIFI(), 0, 0), .owner = BIT(0) | BIT(1) } /* FE WiFi DATA */
178180
};
179181
esp_err_t err = sleep_retention_entries_create(bb_regs_retention, ARRAY_SIZE(bb_regs_retention), 3, SLEEP_RETENTION_MODULE_WIFI_BB);
180182
ESP_RETURN_ON_ERROR(err, TAG, "failed to allocate memory for modem (%s) retention", "WiFi BB");

0 commit comments

Comments
 (0)