TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
|
#include "bh_reg_def.h"
#include <stdint.h>
#include <tenstorrent/bh_chip.h>
#include <tenstorrent/event.h>
#include <tenstorrent/jtag_bootrom.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_emul.h>
#include <zephyr/drivers/jtag.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
Functions | |
bool | jtag_axiwait (const struct device *dev, uint32_t addr) |
void | jtag_bitbang_wait_for_id (const struct device *dev) |
int | jtag_bootrom_reset_asic (struct bh_chip *chip) |
int | jtag_bootrom_init (struct bh_chip *chip) |
int | jtag_bootrom_patch_offset (struct bh_chip *chip, const uint32_t *patch, size_t patch_len, const uint32_t start_addr) |
int | jtag_bootrom_verify (const struct device *dev, const uint32_t *patch, size_t patch_len) |
uint32_t | get_arc_start_time (void) |
uint32_t | get_dm_init_duration (void) |
void | jtag_bootrom_soft_reset_arc (struct bh_chip *chip) |
void | jtag_bootrom_teardown (const struct bh_chip *chip) |
Variables | |
static bool | perst_seen |
static uint32_t | arc_start_time |
static uint32_t | perst_start_time |
static uint32_t | dm_init_done |
static const __maybe_unused struct gpio_dt_spec | arc_rambus_jtag_mux_sel |
static const __maybe_unused struct gpio_dt_spec | arc_l2_jtag_mux_sel |
uint32_t get_arc_start_time | ( | void | ) |
uint32_t get_dm_init_duration | ( | void | ) |
void jtag_bitbang_wait_for_id | ( | const struct device * | dev | ) |
int jtag_bootrom_init | ( | struct bh_chip * | chip | ) |
int jtag_bootrom_patch_offset | ( | struct bh_chip * | chip, |
const uint32_t * | patch, | ||
size_t | patch_len, | ||
const uint32_t | start_addr ) |
int jtag_bootrom_reset_asic | ( | struct bh_chip * | chip | ) |
void jtag_bootrom_soft_reset_arc | ( | struct bh_chip * | chip | ) |
void jtag_bootrom_teardown | ( | const struct bh_chip * | chip | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |