summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/dedede/variants/waddledee/memory.c
blob: d1e8af2c5904f159144a9b13dcd575cdd5d6f838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * This file is part of the coreboot project.
 *
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#include <baseboard/variants.h>
#include <baseboard/gpio.h>
#include <ec/google/chromeec/ec.h>
#include <gpio.h>

bool variant_mem_is_half_populated(void)
{
	uint32_t board_ver;

	/* On boards where board version is populated, ram strap is also populated */
	if (!google_chromeec_get_board_version(&board_ver))
		return !gpio_get(GPIO_MEM_CH_SEL);

	return false;
}