| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <baseboard/variants.h> |
| 4 | #include <baseboard/gpio.h> |
| 5 | #include <ec/google/chromeec/ec.h> |
| 6 | #include <gpio.h> |
| 7 | |
| 8 | bool variant_mem_is_half_populated(void) |
| 9 | { |
| 10 | uint32_t board_ver; |
| 11 | |
| 12 | /* On boards where board version is populated, ram strap is also populated */ |
| 13 | if (!google_chromeec_get_board_version(&board_ver)) |
| 14 | return !gpio_get(GPIO_MEM_CH_SEL); |
| 15 | |
| 16 | return false; |
| 17 | } |