Hi Sachin,
OK, that GPIO configuration is right according to Apollo Lake Soc. Just one last question.
Then, if GPIO_9 is configured as TPM interrupt signal, is not it necessary to configure
this pin as TPM interrupt pin in some place around SBL code? I mean, to be able to use
this pin as interrupt I suppose it would have to be indicated in ACPI table or something
like that, isn“t it?
Thanks,
Javier
-----Mensaje original-----
De: Agrawal, Sachin [mailto:sachin.agrawal@intel.com]
Enviado el: martes, 9 de abril de 2019 1:49
Para: sbl-devel(a)lists.01.org; Javier Santos Romo <jsantos(a)gmv.com>
Asunto: Re: [Sbl-devel] TPM Support on Fast SPI Bus
Hi Javier,
GPIO_9 should actually be configured as GPI with M0 function with 20K pullup. It's
used as TPM interrupt signal and the code I provided before needs a correction for GPIO 9.
It should be
BXT_GPIO_PAD_CONF(L"GPIO_106 GP_SSP_0_FS1", M3 , NA, NA, NA, NA,
Wake_Disabled, P_20K_H, NA , NA, HizRx0I, EnPd, GPIO_PADBAR+0x01F8,
NORTHWEST),
BXT_GPIO_PAD_CONF(L"GPIO_9", M0 ,
GPI, NA, NA, NA, Wake_Disabled, P_20K_H, NA , NA, NA , NA,
GPIO_PADBAR+0x0048, NORTH)
Thanks
Sachin
Date: Mon, 8 Apr 2019 07:25:15 +0000
From: Javier Santos Romo <jsantos(a)gmv.com>
To: "sbl-devel(a)lists.01.org" <sbl-devel(a)lists.01.org>
Subject: Re: [Sbl-devel] TPM Support on Fast SPI Bus
Message-ID: <f87f11c991fd4ca189176b0b9f18f82d(a)gmv.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Sachin,
Thank you for all the information. I have only one question related to GPIOs
configuration. I suppose "GPIO_106 GP_SSP_0_FS1" is configured as CS signal.
However, what is the functionality of "GPIO_9"? I couldn?t find M1 functionality
in this pin.
Thanks,
Javier
-----Mensaje original-----
De: Agrawal, Sachin [mailto:sachin.agrawal@intel.com] Enviado el: s?bado, 6 de abril de
2019 0:15
Para: 'sbl-devel(a)lists.01.org' <sbl-devel(a)lists.01.org>; Javier Santos Romo
<jsantos(a)gmv.com>
Asunto: RE: [Sbl-devel] TPM Support on Fast SPI Bus
Hi Javier,
Below are the few things required to have SPI dTPM working with Slim Bootloader.
-Set 'SPI' in FIT tool during IFWI stitching process for
'DiscreteTpmLocation' field in 'PlatformProtection tab.
-Set below GPIO settings in SBL code before TPM status is queried.
BXT_GPIO_PAD_CONF(L"GPIO_106 GP_SSP_0_FS1", M3 , NA, NA, NA, NA,
Wake_Disabled, P_20K_H, NA , NA, HizRx0I, EnPd, GPIO_PADBAR+0x01F8,
NORTHWEST),
BXT_GPIO_PAD_CONF(L"GPIO_9", M1 ,
NA, NA, NA, NA, Wake_Disabled, P_20K_H, NA , NA ,NA , NA,
GPIO_PADBAR+0x0048, NORTH),
(You can add above lines in mGpioInitTbl[] array in Stage1BBoardInitLib.c in
ApolloLakeBoardPkg library).
We also had to rework some pins on APL Customer Reference Board(CRB) to make SPI dTPM
work. If you are using an Intel CRB (Oxbow Hill or LeafHill platform), please contact your
Intel Representative to get rework instructions for the board.
We were able to verify SPI dTPM functionality (Infineon TPM SLB9670) after doing above
changes with Slim Bootloader code.
Thanks
Sachin
-----Original Message-----
From: Agrawal, Sachin
Sent: Tuesday, April 2, 2019 5:04 PM
To: sbl-devel(a)lists.01.org; jsantos(a)gmv.com
Subject: [Sbl-devel] TPM Support on Fast SPI Bus
Hello Javier,
In the past, we have verified Slimboot with Intel PTT (integrated TPM in SoC) and dTPM(on
LPC bus) with ApolloLake platform.
We will check on SPI dTPM and will get back to you.
Thanks
Sachin
From: Javier Santos Romo <jsantos(a)gmv.com>
To: "sbl-devel(a)lists.01.org" <sbl-devel(a)lists.01.org>
Subject: [Sbl-devel] TPM Support on Fast SPI Bus
Message-ID: <40d75644e4f941b385a9230bc96a4339(a)gmv.com>
Content-Type: text/plain; charset="us-ascii"
Dear Everyone,
I am trying to work with a Trust Platform Module connected to Fast SPI bus over Apollo
Lake Soc. I have activated HAVE_VERIFIED_BOOT and HAVE_MEASURED_BOOT to be able to
initialize TPM device. However, I always obtain a system halted message due to
"Unable to talk to TPM" message. Only way I know to indicate which bus is TPM
located on is using FIT Tool. However, SBL seems not to use SMIP data written with FIT
Tool. Because of this, I would like to know which is the procedure to be able to use a TPM
located on Fast SPI bus from SBL Source code.
Thanks,
Javier
P Please consider the environment before printing this e-mail.