soc: mediatek: Refactor sram control
authorWeiyi Lu <weiyi.lu@mediatek.com>
Wed, 28 Aug 2019 09:11:39 +0000 (17:11 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Thu, 7 Nov 2019 09:11:04 +0000 (10:11 +0100)
commit0545aa1b7a1472a4d0499ccc7666634c8cf47305
tree84e862db0a4fcf51c35a9cdb11226903495185ea
parentcef021e2f5cb8a1c8cd23ebc77232e6563ce251d
soc: mediatek: Refactor sram control

Put sram enable and disable control in separate functions.

Signed-off-by: Weiyi Lu <weiyi.lu@mediatek.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
[mb: fix coding style of reading register and changing the read value]
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-scpsys.c