diff options
author | Thierry Reding <treding@nvidia.com> | 2017-03-29 19:34:52 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-06-13 16:23:29 +0300 |
commit | e7149a7a3fc4ee6785f17961738f40ce1266d8d0 (patch) | |
tree | 5d5576d2113537bf01fd81b0db75e1d8b77fb3ee /drivers/firmware/tegra | |
parent | 52b8b80395835c3012bf79fc9d5a1dd82a2d922a (diff) | |
download | linux-e7149a7a3fc4ee6785f17961738f40ce1266d8d0.tar.xz |
soc/tegra: bpmp: Implement generic PM domains
The BPMP firmware, found on Tegra186 and later, provides an ABI that can
be used to enable and disable power to several power partitions in Tegra
SoCs. The ABI allows for enumeration of the available power partitions,
so the driver can be reused on future generations, provided the BPMP ABI
remains stable.
Based on work by Stefan Kristiansson <stefank@nvidia.com> and Mikko
Perttunen <mperttunen@nvidia.com>.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/firmware/tegra')
-rw-r--r-- | drivers/firmware/tegra/bpmp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firmware/tegra/bpmp.c b/drivers/firmware/tegra/bpmp.c index 84e4c9a58a0c..f11c7025b4a1 100644 --- a/drivers/firmware/tegra/bpmp.c +++ b/drivers/firmware/tegra/bpmp.c @@ -810,6 +810,10 @@ static int tegra_bpmp_probe(struct platform_device *pdev) if (err < 0) goto free_mrq; + err = tegra_bpmp_init_powergates(bpmp); + if (err < 0) + goto free_mrq; + platform_set_drvdata(pdev, bpmp); return 0; |