FreeRTOS port on GAP8/RISC-V
|
Data Structures | |
struct | pi_freq_cb_t |
Macros | |
#define | FLL_LV_MAX_FREQUENCY |
#define | FLL_NV_MAX_FREQUENCY |
#define | FLL_SOC_MIN_FREQUENCY |
#define | FLL_SOC_MAX_FREQUENCY |
#define | FLL_CLUSTER_MIN_FREQUENCY |
#define | FLL_CLUSTER_MAX_FREQUENCY |
#define | FLL_SOC_FV_SLOPE |
#define | FLL_CLUSTER_FV_SLOPE |
Typedefs | |
typedef void(* | pi_freq_func_t )(void *arg) |
Functions | |
void | pi_fll_init (uint8_t fll_id, uint32_t frequency) |
Initialize an FLL. More... | |
int32_t | pi_fll_frequency_set (uint8_t fll_id, uint32_t frequency, uint8_t check) |
Set FLL to given frequency. More... | |
uint32_t | pi_fll_frequency_get (uint8_t fll_id, uint8_t real) |
Get FLL frequency. More... | |
static int | pi_fll_soc_max_freq_at_V (int voltage) |
Calculate FC SOC domain's max frequency with certain voltage. More... | |
static int | pi_fll_cluster_max_freq_at_V (int voltage) |
Calculate cluster domain's max frequency with certain voltage. More... | |
static void | pi_freq_callback_init (pi_freq_cb_t *cb, pi_freq_func_t func, void *args) |
int | pi_freq_callback_add (pi_freq_cb_t *cb) |
int | pi_freq_callback_remove (pi_freq_cb_t *cb) |
void | pi_freq_callback_exec (void) |
#define FLL_CLUSTER_FV_SLOPE |
Referenced by pi_fll_cluster_max_freq_at_V().
#define FLL_CLUSTER_MAX_FREQUENCY |
#define FLL_CLUSTER_MIN_FREQUENCY |
Referenced by pi_fll_cluster_max_freq_at_V().
#define FLL_LV_MAX_FREQUENCY |
#define FLL_NV_MAX_FREQUENCY |
#define FLL_SOC_FV_SLOPE |
Referenced by pi_fll_soc_max_freq_at_V().
#define FLL_SOC_MAX_FREQUENCY |
#define FLL_SOC_MIN_FREQUENCY |
Referenced by pi_fll_soc_max_freq_at_V().
typedef void(* pi_freq_func_t)(void *arg) |
|
inlinestatic |
voltage | Given voltage |
References DCDC_DEFAULT_LV, FLL_CLUSTER_FV_SLOPE, and FLL_CLUSTER_MIN_FREQUENCY.
uint32_t pi_fll_frequency_get | ( | uint8_t | fll_id, |
uint8_t | real | ||
) |
fll_id | FLL domain. |
real | Compute current frequency. |
int32_t pi_fll_frequency_set | ( | uint8_t | fll_id, |
uint32_t | frequency, | ||
uint8_t | check | ||
) |
fll_id | FLL domain. |
frequency | Frequency value to set. |
check | Check frequency(with current voltage). |
void pi_fll_init | ( | uint8_t | fll_id, |
uint32_t | frequency | ||
) |
This function initializes an FLL at a given frequency if param is not null.
fll_id | FLL domain. |
frequency | Initial frequency. |
|
inlinestatic |
voltage | Given voltage |
References DCDC_DEFAULT_LV, FLL_SOC_FV_SLOPE, and FLL_SOC_MIN_FREQUENCY.
int pi_freq_callback_add | ( | pi_freq_cb_t * | cb | ) |
References g_freq_cb, pi_freq_cb_t::next, and pi_freq_cb_t::prev.
Referenced by __pi_i2c_open(), __pi_pwm_open(), __pi_spi_open(), and __pi_uart_open().
void pi_freq_callback_exec | ( | void | ) |
References pi_freq_cb_t::args, pi_freq_cb_t::function, g_freq_cb, and pi_freq_cb_t::next.
Referenced by pi_fll_frequency_set().
|
inlinestatic |
References pi_freq_cb_t::args, pi_freq_cb_t::function, pi_freq_cb_t::next, and pi_freq_cb_t::prev.
Referenced by __pi_i2c_open(), __pi_pwm_open(), __pi_spi_open(), and __pi_uart_open().
int pi_freq_callback_remove | ( | pi_freq_cb_t * | cb | ) |
References g_freq_cb, pi_freq_cb_t::next, and pi_freq_cb_t::prev.
Referenced by __pi_i2c_close(), __pi_pwm_close(), __pi_spi_close(), and __pi_uart_close().