coreboot-kgpe-d16/src
Maxim Polyakov d947c691bc mb/asrock/h110m: rewrite gpio config using macros
This format of PCH GPIOs configuration, unlike the raw DW0 and DW1 [1]
registers values from the inteltool dump, is more understandable and
makes the code much cleaner. The pad configuration in this patch was
generated using the pch-pads-parser utility [2]. The inteltool dump
before and after the patch is identical (see notes)

Notes:
1. For some reason, GPIO RX State (RO) for the GPP_F4 and GPP_G10
changed the value to 0, but this doesn't affect the motherboard
operation. Perhaps this is because PAD_CFG1_GPIO_DRIVER is set to
PAD_CFG_GPI_INT(), and the pad is not actually connected. So far I
haven't circuit diagram to check this out.

2. According to the documentation [1], the value 3h for RXEVCFG is
implemented as setting 0h.

3. If the available macros from gpio_defs.h [3] can't determine the
configuration of the pad, the utility [2] generates common
_PAD_CFG_STRUCT() macros

[1] page 1429,Intel (R) 100 Series and Intel (R) C230 Series PCH
    Family Platform Controller Hub (PCH), Datasheet, Vol 2 of 2,
    February 2019, Document Number: 332691-003EN
[2] https://github.com/maxpoliak/pch-pads-parser/tree/stable_1.0
[3] src/soc/intel/common/block/include/intelblocks/gpio_defs.h

Change-Id: I01ad4bd29235fbe2b23abce5fbaaa7e63c87f529
Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33565
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
2019-09-01 23:34:12 +00:00
..
acpi AUTHORS: Move src/acpi copyrights into AUTHORS file 2019-07-30 11:04:14 +00:00
arch arch/x86: Remove WB attribute from 0..CACHE_TMP_RAMTOP 2019-08-31 06:44:59 +00:00
commonlib commonlib/region: Fix up overflow check in region_is_subregion() 2019-08-19 21:12:31 +00:00
console Add definition for ENV_ROMSTAGE_OR_BEFORE to <rules.h> 2019-08-26 20:59:45 +00:00
cpu arch/x86: Drop weak attribute on stage_cache 2019-08-28 22:57:17 +00:00
device Split MAYBE_STATIC to _BSS and _NONZERO variants 2019-08-26 20:56:29 +00:00
drivers soc/intel: Use common romstage code 2019-08-26 21:08:41 +00:00
ec ec/google/chromeec: Add config option for eSPI 2019-08-30 10:41:24 +00:00
include soc/intel/skylake: Remove duplicated PCI Id 2019-08-30 10:39:35 +00:00
lib arch/x86: Simplify <arch/early_variables.h> 2019-08-26 22:52:10 +00:00
mainboard mb/asrock/h110m: rewrite gpio config using macros 2019-09-01 23:34:12 +00:00
northbridge intel/haswell: Use smm_subregion() 2019-08-28 22:52:47 +00:00
security Split MAYBE_STATIC to _BSS and _NONZERO variants 2019-08-26 20:56:29 +00:00
soc ipq40xx: Increase CBFS and RAMSTAGE size 2019-08-30 10:43:42 +00:00
southbridge amdfam10: Remove use of __PRE_RAM__ 2019-08-26 02:08:42 +00:00
superio smsc/superio/sio1007: Fix header name 2019-08-27 11:52:13 +00:00
vendorcode vendorcode/eltan/security/lib: Always include cb_sha.c for bootblock 2019-08-26 13:46:13 +00:00
Kconfig ACPI S3: Depend on RELOCATABLE_RAMSTAGE 2019-08-22 06:38:13 +00:00