From 97a86734d2d148def0e4ac52447d534a42cab5d8 Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Fri, 7 Oct 2022 18:29:29 +0200 Subject: [PATCH] mb/prodrive/atlas: Print HSID Signed-off-by: Maximilian Brune Change-Id: Ibb7aac1204bc297d16797cac5b32b119d0a9204b Reviewed-on: https://review.coreboot.org/c/coreboot/+/68224 Reviewed-by: Lean Sheng Tan Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/prodrive/atlas/mainboard.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/mainboard/prodrive/atlas/mainboard.c b/src/mainboard/prodrive/atlas/mainboard.c index 036208a0a6..59c7cb7c3b 100644 --- a/src/mainboard/prodrive/atlas/mainboard.c +++ b/src/mainboard/prodrive/atlas/mainboard.c @@ -1,13 +1,28 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include +#include #include +#include +#include #include "gpio.h" +static uint8_t get_hsid(void) +{ + const gpio_t hsid_gpios[] = { + GPP_A8, + GPP_F19, + GPP_H23, + GPP_H19, + }; + return gpio_base2_value(hsid_gpios, ARRAY_SIZE(hsid_gpios)); +} + static void mainboard_init(void *chip_info) { configure_gpio_pads(); + printk(BIOS_INFO, "HSID: 0x%x\n", get_hsid()); } struct chip_operations mainboard_ops = {