coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
memory.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <baseboard/variants.h>
4 #include <commonlib/helpers.h>
5 #include <soc/meminit.h>
6 
8  /* CH0_DQA[0:31] SoC pins -> U22 LPDDR4 module pins */
9  .phys[LP4_PHYS_CH0A] = {
10  /* DQA[0:7] pins of LPDDR4 module. */
11  .dqs[LP4_DQS0] = { 0, 0, 0, 0, 0, 0, 0, 0 },
12  /* DQA[8:15] pins of LPDDR4 module. */
13  .dqs[LP4_DQS1] = { 0, 0, 0, 0, 0, 0, 0, 0 },
14  /* DQB[0:7] pins of LPDDR4 module with offset of 16. */
15  .dqs[LP4_DQS2] = { 0, 0, 0, 0, 0, 0, 0, 0 },
16  /* DQB[7:15] pins of LPDDR4 module with offset of 16. */
17  .dqs[LP4_DQS3] = { 0, 0, 0, 0, 0, 0, 0, 0 },
18  },
19  .phys[LP4_PHYS_CH0B] = {
20  /* DQA[0:7] pins of LPDDR4 module. */
21  .dqs[LP4_DQS0] = { 0, 0, 0, 0, 0, 0, 0, 0 },
22  /* DQA[8:15] pins of LPDDR4 module. */
23  .dqs[LP4_DQS1] = { 0, 0, 0, 0, 0, 0, 0, 0 },
24  /* DQB[0:7] pins of LPDDR4 module with offset of 16. */
25  .dqs[LP4_DQS2] = { 0, 0, 0, 0, 0, 0, 0, 0 },
26  /* DQB[7:15] pins of LPDDR4 module with offset of 16. */
27  .dqs[LP4_DQS3] = { 0, 0, 0, 0, 0, 0, 0, 0 },
28  },
29  .phys[LP4_PHYS_CH1A] = {
30  /* DQA[0:7] pins of LPDDR4 module. */
31  .dqs[LP4_DQS0] = { 0, 0, 0, 0, 0, 0, 0, 0 },
32  /* DQA[8:15] pins of LPDDR4 module. */
33  .dqs[LP4_DQS1] = { 0, 0, 0, 0, 0, 0, 0, 0 },
34  /* DQB[0:7] pins of LPDDR4 module with offset of 16. */
35  .dqs[LP4_DQS2] = { 0, 0, 0, 0, 0, 0, 0, 0 },
36  /* DQB[7:15] pins of LPDDR4 module with offset of 16. */
37  .dqs[LP4_DQS3] = { 0, 0, 0, 0, 0, 0, 0, 0 },
38  },
39  .phys[LP4_PHYS_CH1B] = {
40  /* DQA[0:7] pins of LPDDR4 module. */
41  .dqs[LP4_DQS0] = { 0, 0, 0, 0, 0, 0, 0, 0 },
42  /* DQA[8:15] pins of LPDDR4 module. */
43  .dqs[LP4_DQS1] = { 0, 0, 0, 0, 0, 0, 0, 0 },
44  /* DQB[0:7] pins of LPDDR4 module with offset of 16. */
45  .dqs[LP4_DQS2] = { 0, 0, 0, 0, 0, 0, 0, 0 },
46  /* DQB[7:15] pins of LPDDR4 module with offset of 16. */
47  .dqs[LP4_DQS3] = { 0, 0, 0, 0, 0, 0, 0, 0 },
48  },
49 };
50 
52 {
54 }
@ LP4_PHYS_CH0B
Definition: meminit.h:19
@ LP4_PHYS_CH0A
Definition: meminit.h:18
@ LP4_PHYS_CH1A
Definition: meminit.h:20
@ LP4_PHYS_CH1B
Definition: meminit.h:21
@ LP4_DQS3
Definition: meminit.h:40
@ LP4_DQS1
Definition: meminit.h:38
@ LP4_DQS0
Definition: meminit.h:37
@ LP4_DQS2
Definition: meminit.h:39
const struct lpddr4_swizzle_cfg baseboard_lpddr4_swizzle
Definition: memory.c:9
const struct lpddr4_swizzle_cfg *__weak variant_lpddr4_swizzle_config(void)
Definition: memory.c:51
const struct smm_save_state_ops *legacy_ops __weak
Definition: save_state.c:8
uint8_t dqs[LP4_NUM_BYTE_LANES][DQ_BITS_PER_DQS]
Definition: meminit.h:78
struct lpddr4_chan_swizzle_cfg phys[LP4_NUM_PHYS_CHANNELS]
Definition: meminit.h:82