pm: Fix weak linkage symbols
Define SoC hooks as weak symbols so this way applications can overwritten them defining strong symbols. The problem is that currently SoCs are defining these interfaces as strong symbol inhibiting the possibility of applications bring their own implementation. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
96d5a58a46
commit
d45a0e1919
13 changed files with 27 additions and 30 deletions
|
@ -56,7 +56,7 @@ extern PowerCC26X2_ModuleState PowerCC26X2_module;
|
|||
*/
|
||||
|
||||
/* Invoke Low Power/System Off specific Tasks */
|
||||
void pm_power_state_set(struct pm_state_info info)
|
||||
__weak void pm_power_state_set(struct pm_state_info info)
|
||||
{
|
||||
uint32_t modeVIMS;
|
||||
uint32_t constraints;
|
||||
|
@ -118,7 +118,7 @@ void pm_power_state_set(struct pm_state_info info)
|
|||
}
|
||||
|
||||
/* Handle SOC specific activity after Low Power Mode Exit */
|
||||
void pm_power_state_exit_post_ops(struct pm_state_info info)
|
||||
__weak void pm_power_state_exit_post_ops(struct pm_state_info info)
|
||||
{
|
||||
/*
|
||||
* System is now in active mode. Reenable interrupts which were disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue