]> git.dujemihanovic.xyz Git - u-boot.git/commit
spmi: msm: handle peripheral ownership
authorNeil Armstrong <neil.armstrong@linaro.org>
Fri, 5 Apr 2024 08:21:55 +0000 (10:21 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Tue, 23 Apr 2024 11:29:26 +0000 (13:29 +0200)
commit59e0482b5edc1fceded3967306561a57f60ba4b3
treea4b08bb4f537b4fe5c204dcd7909bae61a47a7b9
parentf0b604d9491dc92c9cb092a9e4c0fdf2036cdb8d
spmi: msm: handle peripheral ownership

The cnfg registers provides the owner id for each peripheral,
so we can use this id to check if we're allowed to write register
to each peripherals.

Since the v5 can handle more peripherals, add the max_channels to
scan more starting from version 5, make the channel_map store
32bit values and introduce the SPMI_CHANNEL_READ_ONLY flag to
mark a peripheral as read-only.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Acked-by: Caleb Connolly <caleb.connolly@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/spmi/spmi-msm.c