diff options
| author | Kaustabh Chakraborty <kauschluss@disroot.org> | 2025-07-06 21:25:44 +0300 |
|---|---|---|
| committer | Inki Dae <inki.dae@samsung.com> | 2025-09-15 13:55:10 +0300 |
| commit | f08051a4158fec363e1f33b75dd48131f524fa5f (patch) | |
| tree | f1680fd093409473c5480ac4e9c23f43b55e5acc /include | |
| parent | 7ef93667ab19370a2a05b8dbcad36d76b887ff38 (diff) | |
| download | linux-f08051a4158fec363e1f33b75dd48131f524fa5f.tar.xz | |
drm/bridge: samsung-dsim: add ability to define clock names for every variant
Presently, all devices refer to clock names from a single array. The
only controlling parameter is the number of clocks (num_clks field of
samsung_dsim_driver_data) which uses the first n clocks of that array.
As new devices are added, this approach turns out to be cumbersome.
Separate the clock names in individual arrays required by each variant,
in a struct clk_bulk_data. Add a pointer field to the driver data struct
which points to their respective clock names, and rework the clock usage
code to use the clk_bulk_* API instead.
Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/drm/bridge/samsung-dsim.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/bridge/samsung-dsim.h b/include/drm/bridge/samsung-dsim.h index 04ed11787bbd..eb9fdbab1b34 100644 --- a/include/drm/bridge/samsung-dsim.h +++ b/include/drm/bridge/samsung-dsim.h @@ -58,6 +58,7 @@ struct samsung_dsim_driver_data { unsigned int has_clklane_stop:1; unsigned int has_broken_fifoctrl_emptyhdr:1; unsigned int has_sfrctrl:1; + struct clk_bulk_data *clk_data; unsigned int num_clks; unsigned int min_freq; unsigned int max_freq; @@ -104,7 +105,6 @@ struct samsung_dsim { void __iomem *reg_base; struct phy *phy; - struct clk **clks; struct clk *pll_clk; struct regulator_bulk_data supplies[2]; int irq; |
