mailbox: pcc: Consolidate subspace doorbell register parsing
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 17 Sep 2021 13:33:48 +0000 (14:33 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 Oct 2021 03:46:38 +0000 (22:46 -0500)
commit4e3c96ff950ed2bf0f8ef24bd54ec134e2717c55
treee37fba453a9a0e9cd93eac15b1a8d8c17085fd11
parent319bfb35bd1dbc1b67e577c9893b9e8b29650b19
mailbox: pcc: Consolidate subspace doorbell register parsing

Extended PCC subspaces(Type 3 and 4) differ from generic(Type 0) and
HW-Reduced Communication(Type 1 and 2) subspace structures. However some
fields share same offsets and same type of structure can be use to
extract the fields. In order to simplify that, let us move all the doorbell
register parsing into pcc_parse_subspace_db_reg and consolidate there.
It will be easier to extend it if required within the same.

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/pcc.c