drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / src / soc / mediatek / mt8196 / memory.c
blob2689e5a6c32fc4364737f9a97d97d692d852e5d2
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <stdint.h>
4 #include <commonlib/bsd/mem_chip_info.h>
5 #include <soc/emi.h>
7 enum mem_chip_type map_to_lpddr_dram_type(uint16_t lpddr_type)
9 switch (lpddr_type) {
10 case TYPE_LPDDR4X:
11 return MEM_CHIP_LPDDR4X;
12 case TYPE_LPDDR5:
13 return MEM_CHIP_LPDDR5;
14 case TYPE_LPDDR5X:
15 return MEM_CHIP_LPDDR5X;
16 default:
17 return MEM_CHIP_UNDEFINED;