Re: [RFC PATCH v2 06/19] soc: thead: power-domain: Add power-domain driver for TH1520

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux