coreboot-kgpe-d16/src
Bill XIE f0215b4cae arch/x86: Init firmware pointer for EC SMSC KBC1098/KBC1126 at build time
According to util/kbc1126/README.md, for these ECs to work, the
address and size of their two firmware should be written to $s-0x100`
(`$s` means the image size, done with kbc1126_ec_insert), which means
that every existing section (especially those used to store code)
should not overlap this address, otherwise the bootblock will get
damaged when inserting firmwares of the EC.

In this commit, ecfw_ptr is a structure initialized at build time
according to CONFIG_KBC1126_FW1_OFFSET and CONFIG_KBC1126_FW2_OFFSET
(to do so, they should be redefined as hex), and linked to
CONFIG_ECFW_PTR_ADDR within bootblock, so kbc1126_ec_insert is not
needed at build time any more.

Test passed on Elitebook Folio 9470m.

Signed-off-by: Bill XIE <persmule@hardenedlinux.org>
Change-Id: I4f0de0c4d7283e630242fbe84a46e0547783c49e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51671
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
2021-12-21 18:13:45 +00:00
..
acpi acpi,Makefile: Add preload_acpi_dsdt 2021-11-29 20:35:33 +00:00
arch arch/x86: Init firmware pointer for EC SMSC KBC1098/KBC1126 at build time 2021-12-21 18:13:45 +00:00
commonlib commonlib: Add new TS for CSE firmware Sync 2021-12-20 17:51:27 +00:00
console src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
cpu cpu/x86/mp_init.c: Make it work for !CONFIG_SMP 2021-12-10 15:57:34 +00:00
device device/pci_device.c: Scan only one device for PCIe 2021-11-29 03:19:51 +00:00
drivers drivers/spi/spi-generic: document SPI_CNTRLR_DEDUCT_CMD_LEN better 2021-12-15 22:39:21 +00:00
ec arch/x86: Init firmware pointer for EC SMSC KBC1098/KBC1126 at build time 2021-12-21 18:13:45 +00:00
include rules.h, thread.h, lib/cbfs: Add ENV_STAGE_SUPPORTS_COOP 2021-12-15 23:25:32 +00:00
lib Spell *Boot Guard* with a space for official spelling 2021-12-16 14:17:36 +00:00
mainboard mb/google/reef: Move selects from Kconfig.name to Kconfig 2021-12-20 22:11:50 +00:00
northbridge Spell *Boot Guard* with a space for official spelling 2021-12-16 14:17:36 +00:00
security Revert "security/vboot: Add NVRAM counter for TPM 2.0" 2021-12-16 20:58:30 +00:00
soc soc/amd/cezanne: Correct S0i3 verstage softfuse bit 2021-12-20 17:52:50 +00:00
southbridge sb/intel/lynxpoint: Update `intel_me_status()` signature 2021-12-18 12:55:20 +00:00
superio superio/smsc/sch5545: Disable PS/2 lines isolation during init 2021-11-27 14:23:08 +00:00
vendorcode Revert "vendorcode/intel/fsp: Add Alder Lake FSP headers for FSP v2471_02" 2021-12-21 05:49:40 +00:00
Kconfig Kconfig: Show console DEBUG_FUNC if OVERRIDE_LOGLEVEL is set 2021-11-13 00:20:11 +00:00