soc: mediatek: add a fixed wait for SRAM stable
authorSean Wang <sean.wang@mediatek.com>
Wed, 2 May 2018 04:03:29 +0000 (12:03 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 14 May 2018 10:19:26 +0000 (12:19 +0200)
commit1ba96062b59222c01cb6b4283451389012337b6e
tree39970e1f864c38848b1dab401ac68ddbb9bf5131
parentddf7aa996ca4cc095f3f24fe298ea044d304faa7
soc: mediatek: add a fixed wait for SRAM stable

MT7622_POWER_DOMAIN_WB doesn't send an ACK when its managed SRAM becomes
stable, which is not like the behavior the other power domains should
have. Therefore, it's necessary for such a power domain to have a fixed
and well-predefined duration to wait until its managed SRAM can be allowed
to access by all functions running on the top.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Weiyi Lu <weiyi.lu@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-scpsys.c