soc/tegra: pmc: Add driver state syncing
authorDmitry Osipenko <digetx@gmail.com>
Tue, 1 Jun 2021 02:31:18 +0000 (05:31 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 2 Jun 2021 08:58:55 +0000 (10:58 +0200)
commit41bafa698ddd07533914f34aeb432e762ed0cd30
tree2b5643b55937815d6f0dd85a8bcf7072992f0eef
parentf880ee9e96887786dc21e9433ede1719bc3b2624
soc/tegra: pmc: Add driver state syncing

Add driver state syncing that is invoked once all PMC consumers are
attached and ready. The consumers are the power domain clients.
The synchronization callback is invoked once all client drivers are
probed, the driver core handles this for us. This callback informs
PMC driver that all voltage votes are initialized by each PD client
and it's safe to begin voltage scaling of the core power domain.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
[treding@nvidia.com: squash DT backwards-compatibility patch]
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c
include/soc/tegra/pmc.h