coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lpddr4.h File Reference

Utilities for decoding LPDDR4 info. More...

#include <device/dram/common.h>
#include <types.h>
Include dependency graph for lpddr4.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint16_t lpddr4_speed_mhz_to_reported_mts (uint16_t speed_mhz)
 Converts LPDDR4 clock speed in MHz to the standard reported speed in MT/s. More...
 

Detailed Description

Utilities for decoding LPDDR4 info.

Definition in file lpddr4.h.

Function Documentation

◆ lpddr4_speed_mhz_to_reported_mts()

uint16_t lpddr4_speed_mhz_to_reported_mts ( uint16_t  speed_mhz)

Converts LPDDR4 clock speed in MHz to the standard reported speed in MT/s.

Definition at line 87 of file lpddr4.c.

References ARRAY_SIZE, BIOS_ERR, lpddr4_speeds, lpddr4_speed_attr::max_clock_mhz, lpddr4_speed_attr::min_clock_mhz, printk, and lpddr4_speed_attr::reported_mts.

Referenced by ddr_speed_mhz_to_reported_mts().

Here is the caller graph for this function: