![]() |
TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
|
#include <zephyr/drivers/gpio.h>#include <zephyr/drivers/i3c.h>#include <zephyr/logging/log.h>#include <tenstorrent/occp.h>
Data Structures | |
| struct | tt_smc_remoteproc_config |
| struct | tt_smc_remoteproc_data |
Macros | |
| #define | SMC_BOOT_TIMEOUT_MS 1000 |
| #define | DT_DRV_COMPAT tenstorrent_smc_remoteproc |
| #define | TT_SMC_REMOTEPROC_DEFINE(inst) |
Functions | |
| LOG_MODULE_REGISTER (tt_smc_remoteproc, CONFIG_KERNEL_LOG_LEVEL) | |
| BUILD_ASSERT (CONFIG_TT_SMC_REMOTEPROC_INIT_PRIO > CONFIG_I3C_CONTROLLER_INIT_PRIORITY, "TT_SMC_REMOTEPROC_INIT_PRIO must be higher than I3C_CONTROLLER_INIT_PRIORITY") | |
| int | tt_smc_remoteproc_boot (const struct device *dev, uint64_t addr, uint8_t *img_data, size_t img_size) |
| Boot SMC remote processor. | |
| int | tt_smc_remoteproc_init (const struct device *dev) |
| #define DT_DRV_COMPAT tenstorrent_smc_remoteproc |
| #define SMC_BOOT_TIMEOUT_MS 1000 |
| #define TT_SMC_REMOTEPROC_DEFINE | ( | inst | ) |
| BUILD_ASSERT | ( | CONFIG_TT_SMC_REMOTEPROC_INIT_PRIO | , |
| CONFIG_I3C_CONTROLLER_INIT_PRIORITY | , | ||
| "TT_SMC_REMOTEPROC_INIT_PRIO must be higher than I3C_CONTROLLER_INIT_PRIORITY" | ) |
| LOG_MODULE_REGISTER | ( | tt_smc_remoteproc | , |
| CONFIG_KERNEL_LOG_LEVEL | ) |
| int tt_smc_remoteproc_boot | ( | const struct device * | dev, |
| uint64_t | addr, | ||
| uint8_t * | img_data, | ||
| size_t | img_size ) |
Boot SMC remote processor.
Load an image to SMC remote processor SRAM, and boot it
| dev | Pointer to the tt_smc_remoteproc device |
| addr | Address to load the image to |
| img_data | Pointer to image data |
| img_size | Size of image data |
| int tt_smc_remoteproc_init | ( | const struct device * | dev | ) |