lipengfei28 commented on code in PR #16798: URL: https://github.com/apache/nuttx/pull/16798#discussion_r2259769543
########## arch/arm64/src/imx9/imx9_clockconfig.h: ########## @@ -146,7 +151,60 @@ void imx9_clockconfig(void); ****************************************************************************/ int imx9_get_clock(int clkname, uint32_t *frequency); +#else +/**************************************************************************** + * Name: imx9_configure_clock + * + * Description: + * This function config and enable the clock + * + * Input Parameters: + * clk_config - The clock config + * enabled - If enable the clock + * + * Returned Value: + * Zero (OK) is returned on success; a negated errno value is returned on + * any failure. + * + ****************************************************************************/ + +int imx9_configure_clock(clock_config_t clk_config, bool enabled); + +/**************************************************************************** + * Name: imx9_sm_getipfreq + * + * Description: + * This function get the clock rate + * + * Input Parameters: + * sm_clk - The clock to be get the rate + * + * Returned Value: + * rate is returned on success; a negated errno value is returned on + * any failure. + * + ****************************************************************************/ + +int imx9_sm_getipfreq(sm_clock_t *sm_clk); 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