On December 6, 2023 thus sayeth Apurva Nandan: > Add clk and device data which can be used by respective drivers > to configure clocks and PSC. > > Signed-off-by: Hari Nagalla <hnaga...@ti.com> > Signed-off-by: Apurva Nandan <a-nan...@ti.com> > --- > arch/arm/mach-k3/r5/j784s4/Makefile | 7 + > arch/arm/mach-k3/r5/j784s4/clk-data.c | 428 +++++++++++++++++++++++++ > arch/arm/mach-k3/r5/j784s4/dev-data.c | 98 ++++++ > drivers/clk/ti/clk-k3.c | 6 + > drivers/power/domain/ti-power-domain.c | 6 + > include/k3-clk.h | 1 + > include/k3-dev.h | 1 + > 7 files changed, 547 insertions(+) > create mode 100644 arch/arm/mach-k3/r5/j784s4/Makefile > create mode 100644 arch/arm/mach-k3/r5/j784s4/clk-data.c > create mode 100644 arch/arm/mach-k3/r5/j784s4/dev-data.c
... > diff --git a/arch/arm/mach-k3/r5/j784s4/clk-data.c > b/arch/arm/mach-k3/r5/j784s4/clk-data.c > new file mode 100644 > index 0000000000..d3fac38dd6 > --- /dev/null > +++ b/arch/arm/mach-k3/r5/j784s4/clk-data.c > @@ -0,0 +1,428 @@ ... > +const struct ti_k3_clk_platdata j784s4_clk_platdata = { > + .clk_list = clk_list, > + .clk_list_cnt = 106, > + .soc_dev_clk_data = soc_dev_clk_data, > + .soc_dev_clk_data_cnt = 128, These should probably be updated to use the ARRAY_SIZE() macros instead of their hard coded values. > diff --git a/arch/arm/mach-k3/r5/j784s4/dev-data.c > b/arch/arm/mach-k3/r5/j784s4/dev-data.c > new file mode 100644 > index 0000000000..a9b77d0f49 > --- /dev/null > +++ b/arch/arm/mach-k3/r5/j784s4/dev-data.c > @@ -0,0 +1,98 @@ ... > +const struct ti_k3_pd_platdata j784s4_pd_platdata = { > + .psc = soc_psc_list, > + .pd = soc_pd_list, > + .lpsc = soc_lpsc_list, > + .devs = soc_dev_list, > + .num_psc = 3, > + .num_pd = 8, > + .num_lpsc = 23, > + .num_devs = 30, > +}; Here too, just to make future updates a little easier. ~Bryan