lipengfei28 commented on code in PR #16798: URL: https://github.com/apache/nuttx/pull/16798#discussion_r2265552735
########## arch/arm64/src/imx9/imx9_clockconfig.c: ########## @@ -176,6 +181,136 @@ static int pll_pfd_init(uintptr_t reg, int pfd, struct pfd_parms_s *pfdparm) #endif /* CONFIG_IMX9_CFG_PLLS */ #endif +#ifdef CONFIG_IMX9_CLK_OVER_SCMI + +/**************************************************************************** + * Name: imx9_sm_getipfreq + * + * Description: + * This function get the clock rate + * + * Input Parameters: + * clk - The clock to be get the rate + * + * Returned Value: + * rate is returned on success; a negated errno value is returned on + * any failure. + * + ****************************************************************************/ + +static int imx9_sm_getipfreq(scmi_clock_t *clk) +{ + scmi_clock_rate_t rate = + { + 0, 0 + }; + + uint32_t channel = clk->channel; + uint32_t clock_id = clk->clk_id; + uint32_t pclk_id = clk->pclk_id; + int status = 0; Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org