@@ -141,11 +141,9 @@ lpm_shutdown(uint32_t wakeup_pin, uint32_t io_pull, uint32_t wake_on)
141
141
ti_lib_aon_wuc_mcu_power_down_config (AONWUC_NO_CLOCK );
142
142
ti_lib_aon_wuc_aux_power_down_config (AONWUC_NO_CLOCK );
143
143
144
- /* Disable retentions: SRAM, CPU, AUX, RFCORE - possibly not required */
144
+ /* Disable SRAM and AUX retentions */
145
145
ti_lib_aon_wuc_mcu_sram_config (0 );
146
- ti_lib_prcm_retention_disable (PRCM_DOMAIN_CPU );
147
146
ti_lib_aon_wuc_aux_sram_config (false);
148
- ti_lib_prcm_retention_disable (PRCM_DOMAIN_RFCORE );
149
147
150
148
/*
151
149
* Request CPU, SYSBYS and VIMS PD off.
@@ -160,7 +158,7 @@ lpm_shutdown(uint32_t wakeup_pin, uint32_t io_pull, uint32_t wake_on)
160
158
/* Turn off AUX */
161
159
ti_lib_aux_wuc_power_ctrl (AUX_WUC_POWER_OFF );
162
160
ti_lib_aon_wuc_domain_power_down_enable ();
163
- while (ti_lib_aon_wuc_power_status () & AONWUC_AUX_POWER_ON );
161
+ while (ti_lib_aon_wuc_power_status_get () & AONWUC_AUX_POWER_ON );
164
162
165
163
/*
166
164
* Request MCU VD power off.
@@ -176,7 +174,7 @@ lpm_shutdown(uint32_t wakeup_pin, uint32_t io_pull, uint32_t wake_on)
176
174
ti_lib_pwr_ctrl_io_freeze_enable ();
177
175
178
176
/* Turn off VIMS cache, CRAM and TRAM - possibly not required */
179
- ti_lib_prcm_retention_disable ( PRCM_DOMAIN_VIMS );
177
+ ti_lib_prcm_cache_retention_disable ( );
180
178
ti_lib_vims_mode_set (VIMS_BASE , VIMS_MODE_OFF );
181
179
182
180
/* Enable shutdown and sync AON */
@@ -216,7 +214,7 @@ wake_up(void)
216
214
217
215
/* Turn on cache again */
218
216
ti_lib_vims_mode_set (VIMS_BASE , VIMS_MODE_ENABLED );
219
- ti_lib_prcm_retention_enable ( PRCM_DOMAIN_VIMS );
217
+ ti_lib_prcm_cache_retention_enable ( );
220
218
221
219
ti_lib_aon_ioc_freeze_disable ();
222
220
ti_lib_sys_ctrl_aon_sync ();
@@ -340,15 +338,9 @@ lpm_drop()
340
338
ti_lib_aon_wuc_mcu_sram_config (MCU_RAM0_RETENTION | MCU_RAM1_RETENTION |
341
339
MCU_RAM2_RETENTION | MCU_RAM3_RETENTION );
342
340
343
- /* Enable retention on the CPU domain */
344
- ti_lib_prcm_retention_enable (PRCM_DOMAIN_CPU );
345
-
346
341
/* Disable retention of AUX RAM */
347
342
ti_lib_aon_wuc_aux_sram_config (false);
348
343
349
- /* Disable retention in the RFCORE RAM */
350
- ti_lib_prcm_retention_disable (PRCM_DOMAIN_RFCORE );
351
-
352
344
/*
353
345
* Always turn off RFCORE, CPU, SYSBUS and VIMS. RFCORE should be off
354
346
* already
@@ -362,7 +354,7 @@ lpm_drop()
362
354
/* Turn off AUX */
363
355
ti_lib_aux_wuc_power_ctrl (AUX_WUC_POWER_OFF );
364
356
ti_lib_aon_wuc_domain_power_down_enable ();
365
- while (ti_lib_aon_wuc_power_status () & AONWUC_AUX_POWER_ON );
357
+ while (ti_lib_aon_wuc_power_status_get () & AONWUC_AUX_POWER_ON );
366
358
367
359
/* Configure the recharge controller */
368
360
ti_lib_sys_ctrl_set_recharge_before_power_down (false);
@@ -389,7 +381,7 @@ lpm_drop()
389
381
* until right before deep sleep to be able to use the cache for as long
390
382
* as possible.
391
383
*/
392
- ti_lib_prcm_retention_disable ( PRCM_DOMAIN_VIMS );
384
+ ti_lib_prcm_cache_retention_disable ( );
393
385
ti_lib_vims_mode_set (VIMS_BASE , VIMS_MODE_OFF );
394
386
395
387
/* Deep Sleep */
0 commit comments