Commit a0ef2790 authored by Lin Huang's avatar Lin Huang Committed by chrome-bot
Browse files

Scarlet: use spi2 to do TPM transfer



BRANCH=None
BUG=None
TEST=None

Change-Id: I6ae9014d3d5e3259681d9c0933daf830d1da9b5a
Signed-off-by: default avatarLin Huang <hl@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/597577

Reviewed-by: default avatarPhilip Chen <philipchen@chromium.org>
Reviewed-by: default avatarJulius Werner <jwerner@chromium.org>
parent 381d4f02
......@@ -123,8 +123,13 @@ static int board_setup(void)
RkI2c *i2c0 = NULL;
if (IS_ENABLED(CONFIG_TPM2_MODE)) {
RkSpi *spi0 = new_rockchip_spi(0xff1c0000);
tpm_set_ops(&new_tpm_spi(&spi0->ops, cr50_irq_status)->ops);
RkSpi *tpm_spi;
if (IS_ENABLED(CONFIG_GRU_SCARLET))
tpm_spi = new_rockchip_spi(0xff1e0000);
else
tpm_spi = new_rockchip_spi(0xff1c0000);
tpm_set_ops(&new_tpm_spi(&tpm_spi->ops, cr50_irq_status)->ops);
} else {
i2c0 = new_rockchip_i2c((void *)0xff3c0000);
tpm_set_ops(&new_slb9635_i2c(&i2c0->ops, 0x20)->base.ops);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment