soc: cc13x2: Use residency policy

cc13x2_cc26x2 had its own power policy that was implementing the same
logic available in the default residency policy. Also, this policy was
unnecessarily setting up a timeout to wakeup the system. This is not
necessary, the power subsystem takes care of this.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-06-29 11:00:40 -07:00 committed by Anas Nashif
commit 65e4add74e
4 changed files with 1 additions and 153 deletions

View file

@ -99,14 +99,8 @@ void pm_power_state_set(struct pm_state_info info)
break;
case PM_STATE_STANDBY:
/* schedule the wakeup event */
ClockP_start(ClockP_handle((ClockP_Struct *)
&PowerCC26X2_module.clockObj));
/* go to standby mode */
Power_sleep(PowerCC26XX_STANDBY);
ClockP_stop(ClockP_handle((ClockP_Struct *)
&PowerCC26X2_module.clockObj));
break;
case PM_STATE_SUSPEND_TO_RAM:
__fallthrough;