![]() |
TT-System-Firmware APIs 19.8.99
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/kernel.h>#include <zephyr/sys/__assert.h>#include "noc_init.h"#include "aiclk_ppm.h"#include "gddr.h"#include "bh_reset.h"Functions | |
| LOG_MODULE_REGISTER (power, CONFIG_TT_APP_LOG_LEVEL) | |
| int32_t | bh_set_l2cpu_enable (bool enable) |
| int | bh_power_state_get (enum bh_power_domain domain, bool *state) |
| Returns the power state of the specified domain. | |
| 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 bool | power_state [BH_POWER_DOMAIN_COUNT] |
|
static |
| int bh_power_state_get | ( | enum bh_power_domain | domain, |
| bool * | state ) |
Returns the power state of the specified domain.
| [out] | state | True if power state is high (busy for AICLK), false if power state is low (idle for AICLK) |
| 0 | On success |
| -EINVAL | If domain is invalid |
| 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, 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 |