soc: mediatek: introduce a CAPS flag for scp_domain_data
authorSean Wang <sean.wang@mediatek.com>
Mon, 23 Apr 2018 08:36:21 +0000 (16:36 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 14 May 2018 10:19:25 +0000 (12:19 +0200)
commitddf7aa996ca4cc095f3f24fe298ea044d304faa7
tree21e454cf65f68688641ccb21e81b0b75dc0bce35
parent090c6243b14b909b2136fb40ee084faf842165d2
soc: mediatek: introduce a CAPS flag for scp_domain_data

Instead of adding more and more fields to scp_domain_data which get
checked in the code flow, add a caps field used for an indication the
characteristics for each SCP domain.

At present, type u8 for the caps field is selected which can satisfy the
current situation and doesn't take up extra space against type bool
previously used.

Suggested-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-scpsys.c