This change provides access to IOE through P2SB Sideband interface for Meteor Lake TCSS functions of pad configuration and Thunderbolt authentication. There is a policy of locking the P2SB access at the end of platform initialization. The tbt_authentication is read from IOM register through IOE P2SB at early silicon initialization phase and its usage is deferred to usb4 driver. BUG=b:213574324 TEST=Built coreboot and validated booting to OS successfully on MTLRVP board. No boot hung was observed. Signed-off-by: John Zhao <john.zhao@intel.com> Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I8dcee90080c6e70dadc011cc1dbef3659fdbc8f7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66951 Reviewed-by: Kapil Porwal <kapilporwal@google.com> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
16 lines
373 B
C
16 lines
373 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <intelblocks/tcss.h>
|
|
#include <soc/soc_chip.h>
|
|
|
|
const struct soc_tcss_ops tcss_ops = {
|
|
.configure_aux_bias_pads = ioe_tcss_configure_aux_bias_pads_sbi,
|
|
.valid_tbt_auth = ioe_tcss_valid_tbt_auth,
|
|
};
|
|
|
|
bool ioe_tcss_valid_tbt_auth(void)
|
|
{
|
|
const config_t *config = config_of_soc();
|
|
return config->tbt_authentication;
|
|
}
|