device/pci_ids: Add Intel Panther Lake device IDs for Bluetooth CNVi
[coreboot.git] / src / mainboard / google / fatcat / variants / francka / memory.c
blob74d74cdea3f12edb23b79baf3deaa0e151a0aa39
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/variants.h>
4 #include <soc/romstage.h>
5 #include <soc/meminit.h>
7 static const struct mb_cfg lp5_mem_config = {
8 .type = MEM_TYPE_LP5X,
10 .lpx_dq_map = {
11 .ddr0 = {
12 .dq0 = { 13, 14, 12, 15, 11, 10, 8, 9 },
13 .dq1 = { 7, 5, 4, 6, 0, 3, 1, 2 },
15 .ddr1 = {
16 .dq0 = { 1, 3, 0, 2, 7, 4, 6, 5 },
17 .dq1 = { 12, 13, 14, 15, 11, 10, 9, 8 },
19 .ddr2 = {
20 .dq0 = { 0, 2, 1, 3, 6, 4, 7, 5 },
21 .dq1 = { 14, 13, 15, 12, 8, 11, 10, 9 },
23 .ddr3 = {
24 .dq0 = { 6, 5, 7, 4, 2, 3, 1, 0 },
25 .dq1 = { 10, 8, 11, 9, 12, 15, 13, 14 },
27 .ddr4 = {
28 .dq0 = { 2, 1, 3, 0, 4, 7, 5, 6 },
29 .dq1 = { 15, 14, 12, 13, 9, 11, 10, 8 },
31 .ddr5 = {
32 .dq0 = { 6, 5, 7, 4, 3, 1, 0, 2 },
33 .dq1 = { 10, 9, 11, 8, 13, 14, 12, 15 },
35 .ddr6 = {
36 .dq0 = { 9, 10, 11, 8, 14, 12, 13, 15 },
37 .dq1 = { 0, 1, 2, 3, 5, 7, 4, 6 },
39 .ddr7 = {
40 .dq0 = { 0, 1, 2, 3, 7, 5, 6, 4 },
41 .dq1 = { 14, 13, 15, 12, 10, 8, 11, 9 },
45 .lpx_dqs_map = {
46 .ddr0 = { .dqs0 = 1, .dqs1 = 0 },
47 .ddr1 = { .dqs0 = 0, .dqs1 = 1 },
48 .ddr2 = { .dqs0 = 0, .dqs1 = 1 },
49 .ddr3 = { .dqs0 = 0, .dqs1 = 1 },
50 .ddr4 = { .dqs0 = 0, .dqs1 = 1 },
51 .ddr5 = { .dqs0 = 0, .dqs1 = 1 },
52 .ddr6 = { .dqs0 = 1, .dqs1 = 0 },
53 .ddr7 = { .dqs0 = 0, .dqs1 = 1 }
56 .ect = true, /* Early Command Training */
58 .lp_ddr_dq_dqs_re_training = 1,
60 .user_bd = BOARD_TYPE_ULT_ULX,
62 .lp5x_config = {
63 .ccc_config = 0xFF,
67 const struct mb_cfg *variant_memory_params(void)
69 return &lp5_mem_config;
72 int variant_memory_sku(void)
75 * Memory configuration board straps
76 * GPIO_MEM_CONFIG_0 GPP_D08
77 * GPIO_MEM_CONFIG_1 GPP_D07
78 * GPIO_MEM_CONFIG_2 NC
79 * GPIO_MEM_CONFIG_3 NC
81 gpio_t spd_gpios[] = {
82 GPP_D08,
83 GPP_D07,
86 return gpio_base2_value(spd_gpios, ARRAY_SIZE(spd_gpios));
89 void variant_get_spd_info(struct mem_spd *spd_info)
91 spd_info->topo = MEM_TOPO_MEMORY_DOWN;
92 spd_info->cbfs_index = 0;