power: reset: at91-poweroff: introduce struct shdwc_reg_config
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Fri, 20 Dec 2019 15:31:17 +0000 (17:31 +0200)
committerSebastian Reichel <sre@kernel.org>
Tue, 14 Jan 2020 22:38:28 +0000 (23:38 +0100)
commita4f06df13db829d3e8615f9bf476f0ea0e25c9a7
treec586f8569fd5b2eed1a46551d3f1a6f69c6011d2
parent46aa27e742082ca4b1a30886876c24d26c2fac49
power: reset: at91-poweroff: introduce struct shdwc_reg_config

This driver uses AT91_PMC_MCKR in poweroff() function. But the
SAM9X60's PMC versions maps AT91_PMC_MCKR functionality at different
offset compared to the SAMA5D2's one. This patch prepares the field
so that different AT91_PMC_MCKR's offsets to be introduced in
struct reg_config so that proper offset to be used for AT91_PMC_MCKR
based on compatible string.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/at91-sama5d2_shdwc.c