]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf332b506923b68302dcd0bb3645e04b600a2d35
treec586f8569fd5b2eed1a46551d3f1a6f69c6011d2
parent5fcc5d3c6521461d45b3531d23630884697cc2d5
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