coreboot-kgpe-d16/src/mainboard/google/reef/Kconfig
Duncan Laurie c2875872c8 google/reef: Enable I2C TPM
Enable the I2C based TPM on the reef board at
bus 2 and address 0x50.

This makes vboot functional without needing MOCK_TPM and
results in the following in the SSDT:

Device (TPMI)
{
  Name (_HID, "GOOG0005")  // _HID: Hardware ID
  Name (_UID, Zero)  // _UID: Unique ID
  Name (_DDN, "I2C TPM")  // _DDN: DOS Device Name
  Method (_STA, 0, NotSerialized)  // _STA: Status
  {
    Return (0x0F)
  }

  Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
  {
    I2cSerialBus (0x0050, ControllerInitiated, 0x00061A80,
                  AddressingMode7Bit, "\\_SB.PCI0.I2C2",
                  0x00, ResourceConsumer)
    Interrupt (ResourceConsumer, Edge, ActiveLow, Exclusive)
    {
      0x00000039
    }
  })
}

Change-Id: Ia9775caabeac3e6a3bd72de38f9611b4cea7cea4
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/16398
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-09-06 22:58:56 +02:00

77 lines
1.3 KiB
Text

config BOARD_GOOGLE_BASEBOARD_REEF
def_bool n
select SOC_INTEL_APOLLOLAKE
select BOARD_ROMSIZE_KB_16384
select EC_GOOGLE_CHROMEEC
select EC_GOOGLE_CHROMEEC_LPC
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select I2C_TPM
select MAINBOARD_HAS_CHROMEOS
select MAINBOARD_HAS_TPM2
select TPM2
if BOARD_GOOGLE_BASEBOARD_REEF
config BASEBOARD_REEF_LAPTOP
def_bool n
select SYSTEM_TYPE_LAPTOP
config DRIVER_TPM_I2C_BUS
hex "0x2"
config DRIVER_TPM_I2C_ADDR
hex "0x50"
config CHROMEOS
select LID_SWITCH if BASEBOARD_REEF_LAPTOP
config DRIVERS_I2C_DA7219
default y
config DRIVERS_I2C_GENERIC
default y
config DRIVERS_PS2_KEYBOARD
default y
config MAINBOARD_DIR
string
default google/reef
config VARIANT_DIR
string
default "reef" if BOARD_GOOGLE_REEF
config MAINBOARD_PART_NUMBER
string
default "Reef" if BOARD_GOOGLE_REEF
config MAINBOARD_FAMILY
string
default "Google_Reef" if BOARD_GOOGLE_REEF
config GBB_HWID
string
depends on CHROMEOS
default "REEF TEST 3240" if BOARD_GOOGLE_REEF
config MAX_CPUS
int
default 8
config UART_FOR_CONSOLE
int
default 2
config INCLUDE_NHLT_BLOBS
bool "Include blobs for audio."
select NHLT_DMIC_2CH_16B
select NHLT_DA7219
select NHLT_MAX98357
config DRIVERS_GENERIC_MAX98357A
default y
endif # BOARD_GOOGLE_REEF