device/dram: Add LPDDR4 utilities
commitf892b85e18bfead6ed1f135e50ed4e9544553278
authorRob Barnes <robbarnes@google.com>
Mon, 7 Jun 2021 14:55:14 +0000 (7 08:55 -0600)
committerFelix Held <felix-coreboot@felixheld.de>
Wed, 9 Jun 2021 15:10:34 +0000 (9 15:10 +0000)
tree4da60b66b8b32b2f226744ba675cedb0e816b742
parenteca3e6278abd37da60cd68bb3705ce1cc01d4f47
device/dram: Add LPDDR4 utilities

Add lpddr4.c utility file with lpddr4_speed_mhz_to_reported_mts.
Fill in lpddr4_speeds using JDEC 209-4C table 210.
LPDDR4 SPD decoding utilities are not included since there isn't
a present need.

BUG=b:184124605
TEST=Build and run on guybrush

Change-Id: Id8ddfc98fff4255670c50e1ddd4d0a1326265772
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52745
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/device/dram/Makefile.inc
src/device/dram/lpddr4.c [new file with mode: 0644]
src/include/device/dram/lpddr4.h [new file with mode: 0644]