Hi,
I have gone through the U-boot clock initialization C code but there is no device tree parameter given in .dts file used for clock initialization.
u-boot-socfpga/drivers/clk/altera/clk-agilex.c In this file this is the probe function
static int socfpga_clk_probe(struct udevice *dev)
{
struct cm_config *cm_default_cfg = cm_get_default_config();
clk_basic_init(dev, cm_default_cfg);
return 0;
}
cm_get_default_config(); function is used to get clock configuration information from FPGA and if we go through the clk_basic_init(); function. This data which is from FPGA hands-off is used. Then why do we use clock parameters in the device tree?
Thanks,
Regards,
Veerappan P.