soc: mediatek: pwrap: add pwrap driver for mt6797 SoCs
authorArgus Lin <argus.lin@mediatek.com>
Mon, 11 Jun 2018 10:49:59 +0000 (18:49 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 16 Jul 2018 13:50:17 +0000 (15:50 +0200)
commit8e62ac4bad3956536fc08e351454abc90dda1e9f
tree1076dcf3780449a3be564889a871c9b04b6f7701
parentcd760b1cd703f0846362c171ec4c49dadbd7e0eb
soc: mediatek: pwrap: add pwrap driver for mt6797 SoCs

mt6797 is a highly integrated SoCs, it uses mt6351 for power management.
This patch adds pwrap driver to access mt6351. Pwrap of mt6797 support
dynamic priority meichanism, sequence monitor and starvation mechanism
to make transaction more reliable.

A big change from V4 to V5 is we remove INT1 interrupt declaration since
it is only for debug purpose. The PWRAP_RDDMY, RESET and DCM can use legacy
setting, it is backwards compatible. The new caps flag declaration is not
needed, just remove it.

Signed-off-by: Argus Lin <argus.lin@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c