|
TT Zephyr Platforms 19.5.0-rc1
Tenstorrent Firmware
|
#include <tenstorrent/bh_power.h>#include <tenstorrent/smc_msg.h>#include <tenstorrent/msgqueue.h>#include <zephyr/logging/log.h>#include <zephyr/drivers/clock_control.h>#include <zephyr/drivers/clock_control/clock_control_tt_bh.h>#include <zephyr/drivers/misc/bh_fwtable.h>#include <zephyr/kernel.h>#include "noc_init.h"#include "aiclk_ppm.h"#include "gddr.h"#include "bh_reset.h"Enumerations | |
| enum | power_bit_flags_e { power_bit_flag_aiclk , power_bit_flag_mrisc , power_bit_flag_tensix , power_bit_flag_l2cpu , power_bit_flag_max } |
| enum | power_settings_e { power_settings_max } |
Functions | |
| LOG_MODULE_REGISTER (power, CONFIG_TT_APP_LOG_LEVEL) | |
| int32_t | bh_set_l2cpu_enable (bool enable) |
| bool | bh_get_aiclk_busy (void) |
| static int32_t | apply_power_settings (const struct power_setting_rqst *power_setting) |
| static uint8_t | power_setting_msg_handler (const union request *request, struct response *response) |
| Handles the request to set the power settings. | |
| REGISTER_MESSAGE (TT_SMC_MSG_POWER_SETTING, power_setting_msg_handler) | |
Variables | |
| static const struct device * | pll4 = DEVICE_DT_GET_OR_NULL(DT_NODELABEL(pll4)) |
| static const struct device * | fwtable_dev = DEVICE_DT_GET_OR_NULL(DT_NODELABEL(fwtable)) |
| static bool | power_state [power_bit_flag_max] |
| enum power_bit_flags_e |
| enum power_settings_e |
|
static |
| bool bh_get_aiclk_busy | ( | void | ) |
| LOG_MODULE_REGISTER | ( | power | , |
| CONFIG_TT_APP_LOG_LEVEL | ) |
|
static |
Handles the request to set the power settings.
| [in] | request | The request, of type power_setting_rqst_t, with command code TT_SMC_MSG_POWER_SETTING |
| [out] | response | The response to the host |
| REGISTER_MESSAGE | ( | TT_SMC_MSG_POWER_SETTING | , |
| power_setting_msg_handler | ) |
|
static |
|
static |
|
static |