TT Zephyr Platforms 19.0.0-rc2
Tenstorrent Firmware
Loading...
Searching...
No Matches
clock_wave.c File Reference
#include "clock_wave.h"
#include <zephyr/kernel.h>
#include <tenstorrent/smc_msg.h>
#include <tenstorrent/msgqueue.h>
#include "timer.h"
#include "reg.h"

Data Structures

struct  PLL_CNTL_WRAPPER_CLOCK_WAVE_CNTL_reg_t
union  PLL_CNTL_WRAPPER_CLOCK_WAVE_CNTL_reg_u

Macros

#define PLL_CNTL_WRAPPER_CLOCK_WAVE_CNTL_REG_ADDR   0x80020038
#define PLL_CNTL_WRAPPER_CLOCK_WAVE_CNTL_REG_DEFAULT   0x00000001

Functions

static void switch_clk_scheme (enum tt_clk_scheme clk_scheme)
static uint8_t switch_clk_scheme_handler (const union request *request, struct response *response)
 Handler for TT_SMC_MSG_SWITCH_CLK_SCHEME messages.
 REGISTER_MESSAGE (TT_SMC_MSG_SWITCH_CLK_SCHEME, switch_clk_scheme_handler)

Macro Definition Documentation

◆ PLL_CNTL_WRAPPER_CLOCK_WAVE_CNTL_REG_ADDR

#define PLL_CNTL_WRAPPER_CLOCK_WAVE_CNTL_REG_ADDR   0x80020038

◆ PLL_CNTL_WRAPPER_CLOCK_WAVE_CNTL_REG_DEFAULT

#define PLL_CNTL_WRAPPER_CLOCK_WAVE_CNTL_REG_DEFAULT   0x00000001

Function Documentation

◆ REGISTER_MESSAGE()

◆ switch_clk_scheme()

void switch_clk_scheme ( enum tt_clk_scheme clk_scheme)
static

◆ switch_clk_scheme_handler()

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

Handler for TT_SMC_MSG_SWITCH_CLK_SCHEME messages.

Switches the clock scheme configuration. This affects the AI clock distribution and timing.

Parameters
requestPointer to the host request message, use request->switch_clk_scheme for structured access
responsePointer to the response message to be sent back to host
Returns
0 on success
non-zero on error
See also
switch_clk_scheme_rqst