![]() |
TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
|
#include <zephyr/device.h>#include "err.h"#include "fw_params.h"#include "gddr_common_types.h"#include "gddr_backend.h"#include "gddr_types.h"

Go to the source code of this file.
Functions | |
| int | memc_tt_mimir_set_config (const struct device *dev, const gddr_backend_t *backend, fw_params_t *params) |
| Install the platform GDDR configuration for the controller. | |
| int memc_tt_mimir_set_config | ( | const struct device * | dev, |
| const gddr_backend_t * | backend, | ||
| fw_params_t * | params ) |
Install the platform GDDR configuration for the controller.
Stores the backend and fw_params in the device's data; the device passes them to gddr_init() at its own init. Call once, before the memc device initializes.
The backend and fw_params are runtime/platform-supplied (host-written params, environment-selected backend), which is why they arrive through this API rather than devicetree. params is non-const because this call fills in gddr_tile_mask from the controller's own DT topology (the mem-tiles).
| dev | The memc controller device. |
| backend | Caller-owned backend (non-NULL, with a non-NULL get_blob). |
| params | fw_params minus gddr_tile_mask |
dev, backend, backend->get_blob, or params is NULL.