Home
last modified time | relevance | path

Searched refs:power_domain (Results 1 – 11 of 11) sorted by relevance

/external/u-boot/drivers/power/domain/
Dtegra186-power-domain.c15 static int tegra186_power_domain_request(struct power_domain *power_domain) in tegra186_power_domain_request() argument
18 power_domain, power_domain->dev, power_domain->id); in tegra186_power_domain_request()
23 static int tegra186_power_domain_free(struct power_domain *power_domain) in tegra186_power_domain_free() argument
26 power_domain, power_domain->dev, power_domain->id); in tegra186_power_domain_free()
31 static int tegra186_power_domain_common(struct power_domain *power_domain, in tegra186_power_domain_common() argument
38 req.partition_id = power_domain->id; in tegra186_power_domain_common()
48 ret = misc_call(power_domain->dev->parent, MRQ_PG_UPDATE_STATE, &req, in tegra186_power_domain_common()
56 static int tegra186_power_domain_on(struct power_domain *power_domain) in tegra186_power_domain_on() argument
59 power_domain, power_domain->dev, power_domain->id); in tegra186_power_domain_on()
61 return tegra186_power_domain_common(power_domain, true); in tegra186_power_domain_on()
[all …]
Dpower-domain-uclass.c16 static int power_domain_of_xlate_default(struct power_domain *power_domain, in power_domain_of_xlate_default() argument
19 debug("%s(power_domain=%p)\n", __func__, power_domain); in power_domain_of_xlate_default()
26 power_domain->id = args->args[0]; in power_domain_of_xlate_default()
31 int power_domain_get(struct udevice *dev, struct power_domain *power_domain) in power_domain_get() argument
38 debug("%s(dev=%p, power_domain=%p)\n", __func__, dev, power_domain); in power_domain_get()
57 power_domain->dev = dev_power_domain; in power_domain_get()
59 ret = ops->of_xlate(power_domain, &args); in power_domain_get()
61 ret = power_domain_of_xlate_default(power_domain, &args); in power_domain_get()
67 ret = ops->request(power_domain); in power_domain_get()
76 int power_domain_free(struct power_domain *power_domain) in power_domain_free() argument
[all …]
Dsandbox-power-domain.c18 static int sandbox_power_domain_request(struct power_domain *power_domain) in sandbox_power_domain_request() argument
20 debug("%s(power_domain=%p)\n", __func__, power_domain); in sandbox_power_domain_request()
22 if (power_domain->id >= SANDBOX_POWER_DOMAINS) in sandbox_power_domain_request()
28 static int sandbox_power_domain_free(struct power_domain *power_domain) in sandbox_power_domain_free() argument
30 debug("%s(power_domain=%p)\n", __func__, power_domain); in sandbox_power_domain_free()
35 static int sandbox_power_domain_on(struct power_domain *power_domain) in sandbox_power_domain_on() argument
37 struct sandbox_power_domain *sbr = dev_get_priv(power_domain->dev); in sandbox_power_domain_on()
39 debug("%s(power_domain=%p)\n", __func__, power_domain); in sandbox_power_domain_on()
41 sbr->on[power_domain->id] = true; in sandbox_power_domain_on()
46 static int sandbox_power_domain_off(struct power_domain *power_domain) in sandbox_power_domain_off() argument
[all …]
Dbcm6328-power-domain.c17 static int bcm6328_power_domain_request(struct power_domain *power_domain) in bcm6328_power_domain_request() argument
19 if (power_domain->id >= MAX_DOMAINS) in bcm6328_power_domain_request()
25 static int bcm6328_power_domain_free(struct power_domain *power_domain) in bcm6328_power_domain_free() argument
30 static int bcm6328_power_domain_on(struct power_domain *power_domain) in bcm6328_power_domain_on() argument
32 struct bcm6328_power_domain *priv = dev_get_priv(power_domain->dev); in bcm6328_power_domain_on()
34 clrbits_be32(priv->regs, BIT(power_domain->id)); in bcm6328_power_domain_on()
39 static int bcm6328_power_domain_off(struct power_domain *power_domain) in bcm6328_power_domain_off() argument
41 struct bcm6328_power_domain *priv = dev_get_priv(power_domain->dev); in bcm6328_power_domain_off()
43 setbits_be32(priv->regs, BIT(power_domain->id)); in bcm6328_power_domain_off()
Dsandbox-power-domain-test.c13 struct power_domain pd;
/external/u-boot/include/
Dpower-domain-uclass.h41 int (*of_xlate)(struct power_domain *power_domain,
55 int (*request)(struct power_domain *power_domain);
64 int (*free)(struct power_domain *power_domain);
71 int (*on)(struct power_domain *power_domain);
78 int (*off)(struct power_domain *power_domain);
Dpower-domain.h68 struct power_domain { struct
90 int power_domain_get(struct udevice *dev, struct power_domain *power_domain);
99 int power_domain_free(struct power_domain *power_domain);
108 int power_domain_on(struct power_domain *power_domain);
117 int power_domain_off(struct power_domain *power_domain);
/external/u-boot/drivers/phy/
Dbcm6318-usbh-phy.c79 struct power_domain pwr_dom; in bcm6318_usbh_probe()
Dbcm6368-usbh-phy.c115 struct power_domain pwr_dom; in bcm6368_usbh_probe()
/external/u-boot/doc/device-tree-bindings/firmware/
Dnvidia,tegra186-bpmp.txt36 - ../power/power_domain.txt
/external/u-boot/drivers/pci/
Dpci_tegra.c234 struct power_domain pwrdom;