Lines Matching +full:sci +full:- +full:dev +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0+
3 * Texas Instruments System Control Interface (TI SCI) power domain driver
5 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
14 #include <power-domain-uclass.h>
18 * struct ti_sci_power_domain_data - pm domain controller information structure
19 * @sci: TI SCI handle used for communication with system controller
22 const struct ti_sci_handle *sci; member
25 static int ti_sci_power_domain_probe(struct udevice *dev) in ti_sci_power_domain_probe() argument
27 struct ti_sci_power_domain_data *data = dev_get_priv(dev); in ti_sci_power_domain_probe()
29 debug("%s(dev=%p)\n", __func__, dev); in ti_sci_power_domain_probe()
32 return -ENOMEM; in ti_sci_power_domain_probe()
35 data->sci = ti_sci_get_handle(dev); in ti_sci_power_domain_probe()
36 if (IS_ERR(data->sci)) in ti_sci_power_domain_probe()
37 return PTR_ERR(data->sci); in ti_sci_power_domain_probe()
56 struct ti_sci_power_domain_data *data = dev_get_priv(pd->dev); in ti_sci_power_domain_on()
57 const struct ti_sci_handle *sci = data->sci; in ti_sci_power_domain_on() local
58 const struct ti_sci_dev_ops *dops = &sci->ops.dev_ops; in ti_sci_power_domain_on()
63 ret = dops->get_device(sci, pd->id); in ti_sci_power_domain_on()
65 dev_err(power_domain->dev, "%s: get_device failed (%d)\n", in ti_sci_power_domain_on()
73 struct ti_sci_power_domain_data *data = dev_get_priv(pd->dev); in ti_sci_power_domain_off()
74 const struct ti_sci_handle *sci = data->sci; in ti_sci_power_domain_off() local
75 const struct ti_sci_dev_ops *dops = &sci->ops.dev_ops; in ti_sci_power_domain_off()
80 ret = dops->put_device(sci, pd->id); in ti_sci_power_domain_off()
82 dev_err(power_domain->dev, "%s: put_device failed (%d)\n", in ti_sci_power_domain_off()
89 { .compatible = "ti,sci-pm-domain" },
101 .name = "ti-sci-pm-domains",
102 .id = UCLASS_POWER_DOMAIN,