Skip to content

Commit e55d530

Browse files
committed
adsp: boot: power: Separate watchdog state from core power
The watchdog is controlled by ll-scheduler and should not be resumed when a core is bringing up. Watchdog pause control code was removed. Signed-off-by: Adrian Warecki <[email protected]>
1 parent 229d832 commit e55d530

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

soc/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_boot.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ struct dspcs {
5757
#define DSPBR_BATTR_LPSCTL_L1_MIN_WAY BIT(15)
5858
#define DSPBR_BATTR_LPSCTL_BATTR_SLAVE_CORE BIT(16)
5959

60-
#define DSPBR_WDT_RESUME BIT(8)
61-
#define DSPBR_WDT_RESTART_COMMAND 0x76
62-
6360
#define DSPCS (*(volatile struct dspcs *)DSPCS_REG)
6461

6562
#endif /* ZEPHYR_SOC_INTEL_ADSP_BOOT_H_ */

soc/xtensa/intel_adsp/ace/multiprocessing.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ void soc_mp_startup(uint32_t cpu)
129129
/* Prevent idle from powering us off */
130130
DSPCS.bootctl[cpu].bctl |=
131131
DSPBR_BCTL_WAITIPCG | DSPBR_BCTL_WAITIPPG;
132-
/* checking if WDT was stopped during D3 transition */
133-
if (DSPCS.bootctl[cpu].wdtcs & DSPBR_WDT_RESUME) {
134-
DSPCS.bootctl[cpu].wdtcs = DSPBR_WDT_RESUME;
135-
/* TODO: delete this IF when FW starts using imr restore vector */
136-
}
137132
}
138133

139134
void arch_sched_ipi(void)

soc/xtensa/intel_adsp/ace/power.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ __weak void pm_state_set(enum pm_state state, uint8_t substate_id)
221221
core_desc[cpu].intenable = XTENSA_RSR("INTENABLE");
222222
z_xt_ints_off(0xffffffff);
223223
core_desc[cpu].bctl = DSPCS.bootctl[cpu].bctl;
224-
DSPCS.bootctl[cpu].wdtcs = DSPBR_WDT_RESTART_COMMAND;
225224
DSPCS.bootctl[cpu].bctl &= ~DSPBR_BCTL_WAITIPCG;
226225
soc_cpus_active[cpu] = false;
227226
z_xtensa_cache_flush_inv_all();
@@ -309,7 +308,6 @@ __weak void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id)
309308
uint32_t cpu = arch_proc_id();
310309

311310
if (state == PM_STATE_SOFT_OFF) {
312-
DSPCS.bootctl[cpu].wdtcs = DSPBR_WDT_RESUME;
313311
/* restore clock gating state */
314312
DSPCS.bootctl[cpu].bctl |=
315313
(core_desc[0].bctl & DSPBR_BCTL_WAITIPCG);

0 commit comments

Comments
 (0)