soc: mediatek: avoid using fixed spm power status defines
authorMars Cheng <mars.cheng@mediatek.com>
Sat, 8 Apr 2017 01:20:31 +0000 (09:20 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 15 May 2017 08:47:24 +0000 (10:47 +0200)
commitf1be4c4e6c4a33859b57f306611e7d25eb503a04
tree4066196f89dc53050e0092fe9b424b02903ebe27
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
soc: mediatek: avoid using fixed spm power status defines

Use variables to replace fixed defines since the offset
of the status of spm power might be different for some chips

Signed-off-by: Mars Cheng <mars.cheng@mediatek.com>
Signed-off-by: Kevin-CW Chen <kevin-cw.chen@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-scpsys.c