summaryrefslogtreecommitdiff
path: root/src/mainboard/google/hatch/variants/akemi
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2020-02-20 13:46:38 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2020-02-28 00:03:59 +0000
commitd51665600e0ddbd4e1ae7144e29d179287ec285f (patch)
treee09f0c1b62a993d1fe091eb9450eac1e20c43068 /src/mainboard/google/hatch/variants/akemi
parent9ed10bff317097c42b1545279f88af95ca796ab0 (diff)
mainboard/google/hatch: Migrate onto SKU ID helpers
Leverage the common sku id space helper encoders. BUG=b:149348474 BRANCH=none TEST=tested on hatch Change-Id: I96e10010fd375b127f1e10387d6f7a839bc35fdd Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39019 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/hatch/variants/akemi')
-rw-r--r--src/mainboard/google/hatch/variants/akemi/gpio.c3
-rw-r--r--src/mainboard/google/hatch/variants/akemi/variant.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mainboard/google/hatch/variants/akemi/gpio.c b/src/mainboard/google/hatch/variants/akemi/gpio.c
index cfc185e9a5..b141f02ef3 100644
--- a/src/mainboard/google/hatch/variants/akemi/gpio.c
+++ b/src/mainboard/google/hatch/variants/akemi/gpio.c
@@ -17,6 +17,7 @@
#include <baseboard/gpio.h>
#include <baseboard/variants.h>
#include <commonlib/helpers.h>
+#include <ec/google/chromeec/ec.h>
static const struct pad_config ssd_sku_gpio_table[] = {
/* A18 : NC */
@@ -136,7 +137,7 @@ static const struct pad_config gpio_table[] = {
const struct pad_config *override_gpio_table(size_t *num)
{
- uint32_t sku_id = get_board_sku();
+ uint32_t sku_id = google_chromeec_get_board_sku();
/* For SSD SKU */
if ((sku_id == 2) || (sku_id == 4)) {
*num = ARRAY_SIZE(ssd_sku_gpio_table);
diff --git a/src/mainboard/google/hatch/variants/akemi/variant.c b/src/mainboard/google/hatch/variants/akemi/variant.c
index 8440b5c2d3..2965659dd8 100644
--- a/src/mainboard/google/hatch/variants/akemi/variant.c
+++ b/src/mainboard/google/hatch/variants/akemi/variant.c
@@ -28,7 +28,7 @@ void variant_devtree_update(void)
ssd_host = pcidev_path_on_root(PCH_DEVFN_SATA);
/* SKU ID 2 and 4 do not have eMMC, hence disable it. */
- sku_id = get_board_sku();
+ sku_id = google_chromeec_get_board_sku();
if ((sku_id == 2) || (sku_id == 4)) {
if (emmc_host == NULL)
return;