Go to the source code of this file.
◆ GDDR_MSG_STRUCT_ADDR
| #define GDDR_MSG_STRUCT_ADDR 0x6000 |
◆ GDDR_SPEED_TO_MEMCLK_RATIO
| #define GDDR_SPEED_TO_MEMCLK_RATIO 16 |
◆ GDDR_TELEMETRY_TABLE_ADDR
| #define GDDR_TELEMETRY_TABLE_ADDR 0x8000 |
◆ MAX_GDDR_SPEED
| #define MAX_GDDR_SPEED 20000 |
◆ MIN_GDDR_SPEED
| #define MIN_GDDR_SPEED 12000 |
◆ MRISC_INIT_BEFORE
| #define MRISC_INIT_BEFORE 0x11111111 |
◆ MRISC_INIT_FAILED
| #define MRISC_INIT_FAILED 0xfa11 |
◆ MRISC_INIT_FINISHED
| #define MRISC_INIT_FINISHED 0xdeadbeef |
◆ MRISC_INIT_STARTED
| #define MRISC_INIT_STARTED 0x0 |
◆ MRISC_INIT_STATUS
◆ MRISC_INIT_TIMEOUT
| #define MRISC_INIT_TIMEOUT 1000 /* In ms */ |
◆ MRISC_MEMTEST_TIMEOUT
| #define MRISC_MEMTEST_TIMEOUT 1000 /* In ms */ |
◆ MRISC_MSG_REGISTER
◆ MRISC_MSG_TYPE_NONE
| #define MRISC_MSG_TYPE_NONE 0 |
MRISC message type when no active message is signalled; acts as a completion signal from MRISC.
◆ MRISC_MSG_TYPE_PHY_POWERDOWN
| #define MRISC_MSG_TYPE_PHY_POWERDOWN 1 |
MRISC message to set the phy to power down state.
◆ MRISC_MSG_TYPE_PHY_WAKEUP
| #define MRISC_MSG_TYPE_PHY_WAKEUP 2 |
MRISC message to set the phy to wake up state.
◆ MRISC_MSG_TYPE_RUN_MEMTEST
| #define MRISC_MSG_TYPE_RUN_MEMTEST 8 |
MRISC message to run the memory test.
◆ MRISC_POST_CODE
◆ MRISC_POWER_SETTING_TIMEOUT_MS
| #define MRISC_POWER_SETTING_TIMEOUT_MS 1000 |
◆ NUM_GDDR
◆ NUM_MRISC_NOC2AXI_PORT
| #define NUM_MRISC_NOC2AXI_PORT 3 |
◆ RISC_CTRL_A_SCRATCH_0__REG_ADDR
| #define RISC_CTRL_A_SCRATCH_0__REG_ADDR 0xFFB14010 |
◆ RISC_CTRL_A_SCRATCH_1__REG_ADDR
| #define RISC_CTRL_A_SCRATCH_1__REG_ADDR 0xFFB14014 |
◆ RISC_CTRL_A_SCRATCH_2__REG_ADDR
| #define RISC_CTRL_A_SCRATCH_2__REG_ADDR 0xFFB14018 |
◆ get_gddr_bist_info()
Get GDDR BIST status.
- Returns
- Per-instance bitmasks indicating which instances have completed BIST and which have failed.
◆ get_gddr_mrisc_noc2axi_port()
Get the noc2axi port MRISC FW is loaded on for a GDDR instance.
- Parameters
-
| [in] | gddr_inst | GDDR controller instance (0 - NUM_GDDR - 1). |
- Returns
- noc2axi port index (0, 1 or 2).
◆ get_gddr_temps()
Read the DRAM die temperatures for all enabled GDDR instances.
Disabled instances are left zeroed. Reads that fail are logged and skipped, leaving the corresponding entry zeroed while the remaining instances are still read.
- Parameters
-
| [out] | temps | Destination struct. Fully overwritten on entry. |
- Returns
- 0 if all enabled instances were read successfully. If one or more reads failed, the last error code encountered is returned (the rest are still read).
◆ read_gddr_telemetry_table()
◆ set_mrisc_power_setting()
Sets the MRISC power setting for all active MRISCs.
- Parameters
-
- Returns
- 0 on success. Negative error code on failure.