soc: mediatek: mmsys: add sw0_rst_offset in mmsys driver data
authorRex-BC Chen <rex-bc.chen@mediatek.com>
Thu, 17 Feb 2022 08:26:25 +0000 (16:26 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 4 Mar 2022 09:15:47 +0000 (10:15 +0100)
commit62dc30150c06774a8122c52aedd0eddaceaf5940
tree8b31b9af06d4f64e08ac10a99987a42ab3aadf61
parenteb1b02bef52ae545d5eb24116d5c099f738d39d5
soc: mediatek: mmsys: add sw0_rst_offset in mmsys driver data

There are different software reset registers for difference MTK SoCs.
Therefore, we add a new variable "sw0_rst_offset" to control it.

Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220217082626.15728-2-rex-bc.chen@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mt8183-mmsys.h
drivers/soc/mediatek/mtk-mmsys.c
drivers/soc/mediatek/mtk-mmsys.h