Skip to content

Commit

Permalink
drivers: atmel_shdwc: add call to suspend init
Browse files Browse the repository at this point in the history
Since there is no "suspend" controller per se and that the general
controller used for suspend is the shutdown controller, call suspend
init from shdwc driver.

Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Clément Léger <clement.leger@bootlin.com>
  • Loading branch information
clementleger authored and jforissier committed Jan 31, 2022
1 parent 15300b4 commit d031d1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/arch/arm/plat-sam/conf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ ifeq ($(CFG_ATMEL_PM),y)
# 4 = BACKUP
CFG_ATMEL_PM_SUSPEND_MODE ?= 0

$(call force,CFG_ATMEL_SHDWC,y)
$(call force,CFG_PM_ARM32,y)
endif
3 changes: 2 additions & 1 deletion core/drivers/atmel_shdwc.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <drivers/atmel_shdwc.h>
#include <drivers/sam/at91_ddr.h>
#include <drivers/pm/sam/atmel_pm.h>
#include <io.h>
#include <kernel/dt.h>
#include <kernel/thread.h>
Expand Down Expand Up @@ -166,7 +167,7 @@ static TEE_Result atmel_shdwc_probe(const void *fdt, int node,

at91_shdwc_dt_configure(fdt, node);

return TEE_SUCCESS;
return sama5d2_pm_init(fdt, shdwc_base);
}

static const struct dt_device_match atmel_shdwc_match_table[] = {
Expand Down

0 comments on commit d031d1e

Please sign in to comment.