mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / octopus / variants / phaser / memory.c
blobf7c31cdc907d104f5b8e7d6869d472b1e3509cd7
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/variants.h>
4 #include <boardid.h>
5 #include <gpio.h>
6 #include <variant/gpio.h>
8 size_t variant_memory_sku(void)
10 size_t rt;
11 gpio_t pads[] = {
12 [3] = MEM_CONFIG3, [2] = MEM_CONFIG2,
13 [1] = MEM_CONFIG1, [0] = MEM_CONFIG0,
16 rt = gpio_base2_value(pads, ARRAY_SIZE(pads));
18 if (board_id() == 7)
19 return (rt == 3) ? 1 : rt; // If RAM ID = 3, return 1
20 else
21 return rt;