Support set min or max clock

In addition to be able to set clock range, new setextremum option
is added to set only min/max clock as sometimes one of them may
not be supported.

Change-Id: I7c91ba308f3fc6c78efc88117509c515d403a6cb
Cette révision appartient à :
Bill(Shuzhou) Liu
2024-02-09 09:22:51 -06:00
Parent 1015cba489
révision 4e0a7f2f67
3 fichiers modifiés avec 126 ajouts et 1 suppressions
+25
Voir le fichier
@@ -2761,6 +2761,31 @@ rsmi_status_t rsmi_dev_clk_range_set(uint32_t dv_ind, uint64_t minclkvalue,
uint64_t maxclkvalue,
rsmi_clk_type_t clkType);
/**
* @brief This function sets the clock min/max level
*
* @details Given a device index @p dv_ind, a clock value @p minclkvalue,
* a maximum clock value @p maxclkvalue and a clock type @p clkType this function
* will set the sclk|mclk range
*
* @param[in] dv_ind a device index
*
* @param[in] level RSMI_FREQ_IND_MIN|RSMI_FREQ_IND_MAX
*
* @param[in] clkvalue value to apply to the clock level. Frequency values
* are in MHz.
*
* @param[in] clkType RSMI_CLK_TYPE_SYS | RSMI_CLK_TYPE_MEM level type
*
* @retval ::RSMI_STATUS_SUCCESS call was successful
* @retval ::RSMI_STATUS_NOT_SUPPORTED installed software or hardware does not
* support this function with the given arguments
* @retval ::RSMI_STATUS_INVALID_ARGS the provided arguments are not valid
*/
rsmi_status_t rsmi_dev_clk_extremum_set(uint32_t dv_ind, rsmi_freq_ind_t level,
uint64_t clkvalue,
rsmi_clk_type_t clkType);
/**
* @brief This function sets the clock frequency information
*