1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
4 #include <baseboard/gpio.h>
5 #include <soc/cnl_memcfg_init.h>
8 static const struct cnl_mb_cfg baseboard_memcfg
= {
10 * The dqs_map arrays map the SoC pins to the lpddr3 pins
13 * "The index of the array is CPU byte number, the values are DRAM byte
14 * numbers." - doc #573387
16 * the index = pin number on SoC
17 * the value = pin number on lpddr3 part
19 .dqs_map
[DDR_CH0
] = {0, 1, 3, 2, 5, 7, 6, 4},
20 .dqs_map
[DDR_CH1
] = {1, 3, 2, 0, 5, 7, 6, 4},
39 /* Kohaku uses 200, 80.6 and 162 rcomp resistors */
40 .rcomp_resistor
= {200, 81, 162},
42 /* Kohaku Rcomp target values */
43 .rcomp_targets
= {100, 40, 40, 23, 40},
45 /* Set CaVref config to 0 for LPDDR3 */
48 /* Disable Early Command Training */
52 void variant_memory_params(struct cnl_mb_cfg
*bcfg
)
54 memcpy(bcfg
, &baseboard_memcfg
, sizeof(baseboard_memcfg
));