diff options
| author | Patrick Delaunay <[email protected]> | 2025-05-27 15:27:49 +0200 |
|---|---|---|
| committer | Patrice Chotard <[email protected]> | 2025-06-11 09:42:55 +0200 |
| commit | 64b07829f7cd58546f3a0b537b1b0a9d7efddee7 (patch) | |
| tree | 68f0f20199118560ddd2b48a77a6410d38418970 /drivers | |
| parent | 56789994c4629417fadbd56c827ae4f86acb4fec (diff) | |
clk: fixed_rate: configure clock ID with CONFIG_CLK_AUTO_ID
Update CLK ID to avoid 0 id, used for dummy clock with CCF
and to allow selection by clk_get_by_id, used to
get private data associated to the UCLASS_CLK device
Signed-off-by: Patrick Delaunay <[email protected]>
Signed-off-by: Patrice Chotard <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Sean Anderson <[email protected]>
Reviewed-by: Patrick Delaunay <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/clk/clk_fixed_rate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index d1da05cc18a..95a77d2e041 100644 --- a/drivers/clk/clk_fixed_rate.c +++ b/drivers/clk/clk_fixed_rate.c @@ -44,6 +44,7 @@ void clk_fixed_rate_ofdata_to_plat_(struct udevice *dev, dev_set_uclass_priv(dev, clk); clk->dev = dev; + clk->id = CLK_ID(dev, 0); clk->enable_count = 0; } |
