1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
4 #include <baseboard/gpio.h>
6 #include <soc/cnl_memcfg_init.h>
8 static const struct cnl_mb_cfg baseboard_memcfg_cfg
= {
9 /* Access memory info through SMBUS. */
11 .read_type
= READ_SMBUS
,
12 .spd_spec
= {.spd_smbus_address
= 0xA0}
15 .read_type
= READ_SMBUS
,
16 .spd_spec
= {.spd_smbus_address
= 0xA2}
19 .read_type
= READ_SMBUS
,
20 .spd_spec
= {.spd_smbus_address
= 0xA4}
23 .read_type
= READ_SMBUS
,
24 .spd_spec
= {.spd_smbus_address
= 0xA6}
27 * The dqs_map arrays map the ddr4 pins to the SoC pins
30 * the index = pin number on ddr4 part
31 * the value = pin number on SoC
33 .dqs_map
[DDR_CH0
] = {0, 1, 3, 2, 4, 5, 6, 7},
34 .dqs_map
[DDR_CH1
] = {1, 0, 4, 5, 2, 3, 6, 7},
36 /* Baseboard uses 121, 81 and 100 rcomp resistors */
37 .rcomp_resistor
= {121, 81, 100},
40 * Baseboard Rcomp target values.
42 .rcomp_targets
= {100, 40, 20, 20, 26},
44 /* Baseboard is an interleaved design */
45 .dq_pins_interleaved
= 1,
47 /* Baseboard is using config 2 for vref_ca */
50 /* Disable Early Command Training */
54 const struct cnl_mb_cfg
*__weak
variant_memcfg_config(void)
56 return &baseboard_memcfg_cfg
;