![]() |
TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
|
#include <zephyr/kernel.h>#include <zephyr/device.h>#include <zephyr/drivers/clock_control.h>#include <zephyr/sys/sys_io.h>#include <zephyr/sys/util.h>#include <zephyr/logging/log.h>#include <platform.h>
Data Structures | |
| struct | clock_control_tt_grendel_config |
| struct | clock_control_tt_grendel_data |
Macros | |
| #define | DT_DRV_COMPAT tenstorrent_grendel_clock_control |
| #define | CGM_READ(reg) |
| #define | CGM_WRITE(reg, val) |
| #define | POSTDIV_CONFIG_BYPASS_THEN_SWITCH 0x0 |
| #define | POSTDIV_CONFIG_ALWAYS_POSTDIV 0x1 |
| #define | POSTDIV_CONFIG_FORCE_BYPASS 0x2 |
| #define | POSTDIV_CONFIG_FORCE_GATE 0x3 |
| #define | FCW_INT_MIN 16 |
| #define | FCW_INT_MAX 255 |
| #define | FCW_FRAC_BITS 14 |
| #define | POSTDIV_MIN 1 |
| #define | POSTDIV_MAX 4 |
| #define | CGM_NUM_OUTPUTS 4 |
| #define | CLOCK_CONTROL_TT_GRENDEL_INIT(_inst) |
Variables | |
| static const struct clock_control_driver_api | clock_control_tt_grendel_api |
| #define CGM_NUM_OUTPUTS 4 |
| #define CGM_READ | ( | reg | ) |
| #define CGM_WRITE | ( | reg, | |
| val ) |
| #define CLOCK_CONTROL_TT_GRENDEL_INIT | ( | _inst | ) |
| #define DT_DRV_COMPAT tenstorrent_grendel_clock_control |
| #define FCW_FRAC_BITS 14 |
| #define FCW_INT_MAX 255 |
| #define FCW_INT_MIN 16 |
| #define POSTDIV_CONFIG_ALWAYS_POSTDIV 0x1 |
| #define POSTDIV_CONFIG_BYPASS_THEN_SWITCH 0x0 |
| #define POSTDIV_CONFIG_FORCE_BYPASS 0x2 |
| #define POSTDIV_CONFIG_FORCE_GATE 0x3 |
| #define POSTDIV_MAX 4 |
| #define POSTDIV_MIN 1 |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| LOG_MODULE_REGISTER | ( | clock_control_tt_grendel | , |
| CONFIG_CLOCK_CONTROL_LOG_LEVEL | ) |
|
static |