1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/variants.h>
4 #include <baseboard/gpio.h>
6 #include <soc/meminit.h>
7 #include <soc/romstage.h>
9 static const struct mb_cfg baseboard_memcfg_cfg
= {
28 * The dqs_map arrays map the ddr4 pins to the SoC pins
31 * the index = pin number on SoC
32 * the value = pin number on LPDDR4 part
35 .dqs_map
[DDR_CH0
] = {1, 3, 0, 2, 7, 5, 4, 6},
36 .dqs_map
[DDR_CH1
] = {3, 1, 2, 0, 4, 5, 7, 6},
38 /* Disable Early Command Training */
42 .UserBd
= BOARD_TYPE_MOBILE
,
45 const struct mb_cfg
*__weak
variant_memcfg_config(void)
47 return &baseboard_memcfg_cfg
;
50 int __weak
variant_memory_sku(void)
52 gpio_t spd_gpios
[] = {
59 return gpio_base2_value(spd_gpios
, ARRAY_SIZE(spd_gpios
));
62 bool __weak
variant_mem_is_half_populated(void)
64 return !gpio_get(GPIO_MEM_CH_SEL
);