TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
voltage.c File Reference
#include <zephyr/sys/util.h>
#include <tenstorrent/smc_msg.h>
#include <tenstorrent/msgqueue.h>
#include <zephyr/drivers/misc/bh_fwtable.h>
#include "voltage.h"
#include "regulator.h"
#include "dvfs.h"
Include dependency graph for voltage.c:

Macros

#define VDD_BOOT   750
#define VDD_MAX_UPPER_LIMIT   900U
#define VDD_MAX_LOWER_LIMIT   700U
#define VDD_MIN_UPPER_LIMIT   900U
#define VDD_MIN_LOWER_LIMIT   650U

Functions

void VoltageChange (void)
void VoltageArbRequest (VoltageRequestor req, uint32_t voltage)
void CalculateTargVoltage (void)
int InitVoltagePPM (void)
uint8_t ForceVdd (uint32_t voltage)
static uint8_t ForceVddHandler (const union request *request, struct response *response)
 Handler for TT_SMC_MSG_FORCE_VDD.
 REGISTER_MESSAGE (TT_SMC_MSG_FORCE_VDD, ForceVddHandler)

Variables

static const struct device *const fwtable_dev = DEVICE_DT_GET(DT_NODELABEL(fwtable))
VoltageArbiter voltage_arbiter

Macro Definition Documentation

◆ VDD_BOOT

#define VDD_BOOT   750

◆ VDD_MAX_LOWER_LIMIT

#define VDD_MAX_LOWER_LIMIT   700U

◆ VDD_MAX_UPPER_LIMIT

#define VDD_MAX_UPPER_LIMIT   900U

◆ VDD_MIN_LOWER_LIMIT

#define VDD_MIN_LOWER_LIMIT   650U

◆ VDD_MIN_UPPER_LIMIT

#define VDD_MIN_UPPER_LIMIT   900U

Function Documentation

◆ CalculateTargVoltage()

void CalculateTargVoltage ( void )

◆ ForceVdd()

uint8_t ForceVdd ( uint32_t voltage)

◆ ForceVddHandler()

uint8_t ForceVddHandler ( const union request * request,
struct response * response )
static

Handler for TT_SMC_MSG_FORCE_VDD.

See also
force_vdd_rqst

◆ InitVoltagePPM()

int InitVoltagePPM ( void )

◆ REGISTER_MESSAGE()

REGISTER_MESSAGE ( TT_SMC_MSG_FORCE_VDD ,
ForceVddHandler  )

◆ VoltageArbRequest()

void VoltageArbRequest ( VoltageRequestor req,
uint32_t voltage )

◆ VoltageChange()

void VoltageChange ( void )

Variable Documentation

◆ fwtable_dev

const struct device* const fwtable_dev = DEVICE_DT_GET(DT_NODELABEL(fwtable))
static

◆ voltage_arbiter

VoltageArbiter voltage_arbiter