aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/arm/mach-at91/pm_data-offsets.c
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2020-01-20 14:10:01 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-02-18 21:47:31 +0100
commit6ec1587b5c172f53ff27e8c00e6ff9927d2650d4 (patch)
treeb9136f05cd75a17d0aed8074f7290b23a2ccedbf /arch/arm/mach-at91/pm_data-offsets.c
parentARM: at91: Drop unneeded select of COMMON_CLK (diff)
downloadwireguard-linux-6ec1587b5c172f53ff27e8c00e6ff9927d2650d4.tar.xz
wireguard-linux-6ec1587b5c172f53ff27e8c00e6ff9927d2650d4.zip
ARM: at91: pm: use proper master clock register offset
SAM9X60's PMC has different master clock register offset than the other SoCs' PMC. Due to this, specify master clock register offset based on PMC compatible and pass it to pm_suspend.S since it is also needed in there. When PM part for SAM9X60 was published the SAM9X60's PMC (commit f6deae46039c ("clk: at91: add sam9x60 pmc driver")) wasn't integrated. Fixes: 01c7031cfa73 ("ARM: at91: pm: initial PM support for SAM9X60") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/1579522208-19523-2-git-send-email-claudiu.beznea@microchip.com
Diffstat (limited to 'arch/arm/mach-at91/pm_data-offsets.c')
-rw-r--r--arch/arm/mach-at91/pm_data-offsets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/pm_data-offsets.c b/arch/arm/mach-at91/pm_data-offsets.c
index f2d893c03cd9..dfcbe626865c 100644
--- a/arch/arm/mach-at91/pm_data-offsets.c
+++ b/arch/arm/mach-at91/pm_data-offsets.c
@@ -12,6 +12,8 @@ int main(void)
DEFINE(PM_DATA_MODE, offsetof(struct at91_pm_data, mode));
DEFINE(PM_DATA_SHDWC, offsetof(struct at91_pm_data, shdwc));
DEFINE(PM_DATA_SFRBU, offsetof(struct at91_pm_data, sfrbu));
+ DEFINE(PM_DATA_PMC_MCKR_OFFSET, offsetof(struct at91_pm_data,
+ pmc_mckr_offset));
return 0;
}