mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / oak / sdram_configs.c
blobc3da0b0d46f5e5e8dbda1e4ff4c97de8c8e82acb
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <boardid.h>
4 #include <console/console.h>
5 #include <soc/emi.h>
7 static const struct mt8173_sdram_params sdram_configs[] = {
8 #include "sdram_inf/sdram-lpddr3-H9CCNNN8GTMLAR-2GB.inc" /* ram_code = 0000 */
9 #include "sdram_inf/sdram-lpddr3-K4E8E304EE-2GB.inc" /* ram_code = 0001 */
10 #include "sdram_inf/sdram-lpddr3-K4E6E304EE-4GB.inc" /* ram_code = 0010 */
11 #include "sdram_inf/sdram-lpddr3-H9CCNNNBLTBLAR-4GB.inc" /* ram_code = 0011 */
12 #include "sdram_inf/sdram-lpddr3-K4E6E304EB-4GB.inc" /* ram_code = 0100 */
13 #include "sdram_inf/sdram-lpddr3-K4E8E324EB-2GB.inc" /* ram_code = 0101 */
14 #include "sdram_inf/sdram-lpddr3-MT52L512M32D2PF-4GB.inc" /* ram_code = 0110 */
15 #include "sdram_inf/sdram-lpddr3-H9CCNNNBJTALAR-4GB.inc" /* ram_code = 0111 */
16 #include "sdram_inf/sdram-lpddr3-MT52L256M32D1PF-2GB.inc" /* ram_code = 1000 */
17 #include "sdram_inf/sdram-lpddr3-K4E6E304ED-4GB.inc" /* ram_code = 1001 */
18 #include "sdram_inf/sdram-lpddr3-NT6CL512T32AM-H0-4GB.inc" /* ram_code = 1010 */
19 #include "sdram_inf/sdram-lpddr3-K4E6E304EC-EGCG-4GB.inc" /* ram_code = 1011 */
20 #include "sdram_inf/sdram-unused.inc" /* ram_code = 1100 */
21 #include "sdram_inf/sdram-unused.inc" /* ram_code = 1101 */
22 #include "sdram_inf/sdram-unused.inc" /* ram_code = 1110 */
23 #include "sdram_inf/sdram-unused.inc" /* ram_code = 1111 */
26 const struct mt8173_sdram_params *get_sdram_config(void)
28 u32 ramcode = ram_code();
30 if (ramcode >= ARRAY_SIZE(sdram_configs)
31 || sdram_configs[ramcode].type == TYPE_INVALID)
32 die("Invalid RAMCODE.");
34 return &sdram_configs[ramcode];