mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
interconnect: icc-rpm: Add support for bus power domain
Add support for attaching to a power domain. This is required for Aggregate 0 NoC on MSM8996, which is powered by a GDSC. Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> #db820c Link: https://lore.kernel.org/r/20211021132329.234942-3-y.oudjana@protonmail.com Signed-off-by: Georgi Djakov <djakov@kernel.org>
This commit is contained in:
committed by
Georgi Djakov
parent
45c548cc5b
commit
7de109c0ab
@@ -11,6 +11,7 @@
|
|||||||
#include <linux/of_device.h>
|
#include <linux/of_device.h>
|
||||||
#include <linux/of_platform.h>
|
#include <linux/of_platform.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/pm_domain.h>
|
||||||
#include <linux/regmap.h>
|
#include <linux/regmap.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
|
|
||||||
@@ -340,6 +341,12 @@ int qnoc_probe(struct platform_device *pdev)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (desc->has_bus_pd) {
|
||||||
|
ret = dev_pm_domain_attach(dev, true);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
provider = &qp->provider;
|
provider = &qp->provider;
|
||||||
INIT_LIST_HEAD(&provider->nodes);
|
INIT_LIST_HEAD(&provider->nodes);
|
||||||
provider->dev = dev;
|
provider->dev = dev;
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ struct qcom_icc_desc {
|
|||||||
size_t num_nodes;
|
size_t num_nodes;
|
||||||
const char * const *clocks;
|
const char * const *clocks;
|
||||||
size_t num_clocks;
|
size_t num_clocks;
|
||||||
|
bool has_bus_pd;
|
||||||
bool is_bimc_node;
|
bool is_bimc_node;
|
||||||
const struct regmap_config *regmap_cfg;
|
const struct regmap_config *regmap_cfg;
|
||||||
unsigned int qos_offset;
|
unsigned int qos_offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user