[RFC PATCH v2 06/19] soc: thead: power-domain: Add power-domain driver for TH1520
Krzysztof Kozlowski
krzk at kernel.org
Mon Dec 23 16:26:31 UTC 2024
On 23/12/2024 13:55, Michal Wilczynski wrote:
> + pd_data->domains = domains;
> + pd_data->num_domains = ARRAY_SIZE(th1520_pd_ranges);
> + pd_data->xlate = th1520_pd_xlate;
> +
> + /*
> + * Initialize all power domains to off to ensure they start in a
> + * low-power state. This allows device drivers to manage power
> + * domains by turning them on or off as needed.
> + */
> + th1520_pd_init_all_off(domains, dev);
> +
> + return of_genpd_add_provider_onecell(dev->of_node, pd_data);
> +}
> +
> +static const struct of_device_id th1520_pd_match[] = {
> + { .compatible = "thead,th1520-pd" },
> + { /* sentinel */ }
> +};
MODULE_DEVICE_TABLE, this applies to all your patches.
Best regards,
Krzysztof
More information about the dri-devel
mailing list