coreboot-kgpe-d16/src/ec
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
..
51nb/npce985la0dx src: Remove unneeded space in license header 2020-07-26 21:07:36 +00:00
acpi ec/acpi: Remove empty "chip" driver 2021-09-08 18:48:53 +00:00
apple/acpi ec/apple: Add ACPI code for Apple MacBooks 2021-02-05 09:39:31 +00:00
compal/ene932 src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
google ec/google/chromeec: Support 5 temperature sensors 2021-11-26 11:19:52 +00:00
hp/kbc1126 arch/x86: Init firmware pointer for EC SMSC KBC1098/KBC1126 at build time 2021-12-21 18:13:45 +00:00
kontron ec/kontron/kempld: Add minimal GPIO driver 2021-07-16 04:12:36 +00:00
lenovo src: Retype option API to use unsigned integers 2021-05-06 14:48:15 +00:00
purism ec/purism: Remove copied code from system76 2021-09-27 13:59:02 +00:00
quanta src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
roda/it8518 ec/roda/it8518/acpi: Remove unnecessary assignments 2021-07-28 13:50:59 +00:00
smsc/mec1308
starlabs/merlin ec/starlabs: Add standardised ITE EC support 2021-11-22 14:46:20 +00:00
system76/ec ec/system76/ec: acpi: Add dGPU thermal reporting 2021-11-23 09:22:39 +00:00
ec.h