Maxim Polyakov uploaded patch set #20 to this change.

View Change

util/intelp2m: add Intel Pad to Macro util

A small utility for converting a pad configuration from the inteltool
dump to the PAD_CFG_ * macro for coreboot. Currently, the utility
supports several PCH:
- Sunrise Point PCH for the mobile and desktop processors,
- Lewisburg PCH for the server processors,
- Apollo Lake SoC (without Host Software Pad Ownership status).

If the pad configuration can not be defined using standard macros from
the gpio_defs.h [1], then the intelp2m utility generates "advanced"
_PAD_CFG_STRUCT() macros.

If inteltool.log contains the configuration registers dump, the utility
can analyze the Host Software Pad Ownership register and set the DRIVER
or ACPI ownership for each pad configured as GPI.

Tested on the following boards:

- Asrock-H110M-DVS motherboard (Sky/Kaby Lake with H110 PCH)[2]
- Kontron mAL10 COMe module (Atom x5-E3940, Apollo Lake SoC)[3]
- Tioga Pass Server motherboard (Skylake-SP with C621 PCH)[4]
- Cedar Island Server motherboard (Cooper Lake-SP with C627 PCH)[5]

[1] src/soc/intel/common/block/include/intelblocks/gpio_defs.h
[2] https://review.coreboot.org/c/coreboot/+/33565
[3] https://review.coreboot.org/c/coreboot/+/39133
[4] https://review.coreboot.org/c/coreboot/+/40731
[5] https://review.coreboot.org/c/coreboot/+/40736

Change-Id: If3e3b523c4f63dc2f91e9ccd16934e3a1b6e21fa
Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com>
---
A util/intelp2m/apollo/macro.go
A util/intelp2m/apollo/template.go
A util/intelp2m/common/macro.go
A util/intelp2m/common/register.go
A util/intelp2m/config/config.go
A util/intelp2m/description.md
A util/intelp2m/main.go
A util/intelp2m/parser/parser.go
A util/intelp2m/parser/template.go
A util/intelp2m/sunrise/macro.go
A util/intelp2m/sunrise/template.go
11 files changed, 1,662 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/43/35643/20

To view, visit change 35643. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If3e3b523c4f63dc2f91e9ccd16934e3a1b6e21fa
Gerrit-Change-Number: 35643
Gerrit-PatchSet: 20
Gerrit-Owner: Maxim Polyakov <max.senia.poliak@gmail.com>
Gerrit-Reviewer: Alexander Couzens <lynxis@fe80.eu>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot@felixheld.de>
Gerrit-Reviewer: Maxim Polyakov <max.senia.poliak@gmail.com>
Gerrit-Reviewer: Michael Niewöhner
Gerrit-Reviewer: Patrick Rudolph <siro@das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Andrey Petrov <andrey.petrov@gmail.com>
Gerrit-CC: Christian Walter <christian.walter@9elements.com>
Gerrit-CC: David Hendricks <david.hendricks@gmail.com>
Gerrit-CC: Furquan Shaikh <furquan@google.com>
Gerrit-CC: Maxim Polyakov <m.poliakov@yahoo.com>
Gerrit-CC: Nico Huber <nico.h@gmx.de>
Gerrit-MessageType: newpatchset