TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
memc_tt_mimir.h File Reference
#include <zephyr/device.h>
#include "err.h"
#include "fw_params.h"
#include "gddr_common_types.h"
#include "gddr_backend.h"
#include "gddr_types.h"
Include dependency graph for memc_tt_mimir.h:
This graph shows which files directly or indirectly include this file:

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.

Function Documentation

◆ memc_tt_mimir_set_config()

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).

Parameters
devThe memc controller device.
backendCaller-owned backend (non-NULL, with a non-NULL get_blob).
paramsfw_params minus gddr_tile_mask
Returns
0 on success, -EINVAL if dev, backend, backend->get_blob, or params is NULL.