Maximilian Brune has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/68224 )
Change subject: mb/prodrive/atlas: Print HSID ......................................................................
mb/prodrive/atlas: Print HSID
Signed-off-by: Maximilian Brune maximilian.brune@9elements.com Change-Id: Ibb7aac1204bc297d16797cac5b32b119d0a9204b --- M src/mainboard/prodrive/atlas/gpio.c M src/mainboard/prodrive/atlas/mainboard.c 2 files changed, 27 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/68224/1
diff --git a/src/mainboard/prodrive/atlas/gpio.c b/src/mainboard/prodrive/atlas/gpio.c index 5d67aa7..66e5e72 100644 --- a/src/mainboard/prodrive/atlas/gpio.c +++ b/src/mainboard/prodrive/atlas/gpio.c @@ -7,6 +7,7 @@ /* Pad configuration in ramstage */ static const struct pad_config gpio_table[] = { /* ------- GPIO Group GPP_A ------- */ + PAD_CFG_GPI(GPP_A8, NONE, RSMRST), /* HSID_0 */ PAD_CFG_NF(GPP_A14, NONE, DEEP, NF1), /* USB_2_3_OC_N */ PAD_CFG_NF(GPP_A15, NONE, DEEP, NF1), /* USB_4_5_OC_N */ PAD_CFG_NF(GPP_A16, NONE, DEEP, NF1), /* USB_6_7_OC_N */ @@ -59,6 +60,7 @@ PAD_CFG_GPO(GPP_F9, 1, DEEP), /* EC_SLP_S0_CS_N */ PAD_CFG_GPI(GPP_F12, NONE, DEEP), PAD_CFG_GPI(GPP_F13, NONE, DEEP), + PAD_CFG_GPI(GPP_F19, NONE, RSMRST), /* HSID_1 */ PAD_NC(GPP_F20, NONE), PAD_NC(GPP_F21, NONE), PAD_CFG_GPO(GPP_F22, 1, DEEP), /* PERST_PHY0_N */ @@ -66,6 +68,8 @@ /* ------- GPIO Group GPP_H ------- */ PAD_CFG_NF(GPP_H15, NONE, DEEP, NF1), /* DDPB_CTRLCLK */ PAD_CFG_NF(GPP_H17, NONE, DEEP, NF1), /* DDPB_CTRLDATA */ + PAD_CFG_GPI(GPP_H19, NONE, RSMRST), /* HSID_3 */ + PAD_CFG_GPI(GPP_H23, NONE, RSMRST), /* HSID_2 */
/* ------- GPIO Group GPP_R ------- */ PAD_CFG_NF(GPP_R5, NONE, DEEP, NF1), /* HDA_SDI1 */ diff --git a/src/mainboard/prodrive/atlas/mainboard.c b/src/mainboard/prodrive/atlas/mainboard.c index 036208a..89571c7 100644 --- a/src/mainboard/prodrive/atlas/mainboard.c +++ b/src/mainboard/prodrive/atlas/mainboard.c @@ -1,13 +1,26 @@ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h> +#include <console/console.h> #include <stdint.h> +#include <gpio.h> +#include <arch/io.h>
#include "gpio.h"
+static void print_hsid(void) +{ + uint8_t hsid = gpio_get(GPP_A8); + hsid |= gpio_get(GPP_F19) < 1; + hsid |= gpio_get(GPP_H23) < 2; + hsid |= gpio_get(GPP_H19) < 3; + printk(BIOS_INFO, "HSID: 0x%1x\n", hsid); +} + static void mainboard_init(void *chip_info) { configure_gpio_pads(); + print_hsid(); }
struct chip_operations mainboard_ops = {