coreboot/src
Cliff Huang 9a5a9635b7 src/soc/intel/common/block/pcie/rtd3: Fix root port _STA logic
When enable_gpio is used as active low output, the _STA returns
incorrect value.

Also, simply the logic for _STA method.
When enable pin is used for _STA:
| polarity    | tx value| get_tx_gpio() | State |
| active high |    0    |     0         |   0   |
| active high |    1    |     1(active) |   1   |
| active low  |    0    |     1(active) |   1   |
| active low  |    1    |     0         |   0   |

When reset pin is used for _STA:
| polarity    | tx value| get_tx_gpio() | State |
| active high |    0    |     0         |   1   |
| active high |    1    |     1(active) |   0   |
| active low  |    0    |     1(active) |   0   |
| active low  |    1    |     0         |   1   |

Generated _STA method:

Ex: for using active low power enable GPIO pin GPPC_H17:
Method (_STA, 0, NotSerialized)  // _STA: Status
{
    Local0 = \_SB.PCI0.GTXS (0x5C)
    Local0 ^= One
    Return (Local0)
}

TEST=Check the SSDT when booted to OS.

Signed-off-by: Cliff Huang <cliff.huang@intel.com>
Change-Id: Ie6f1e7a5b3e9fd0ea00e1e5b54058a14c6e9e09e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72421
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2023-02-09 14:57:39 +00:00
..
acpi acpi/acpigen.c: Add a comment to deprecate acpigen_write_processor() 2023-02-07 11:47:50 +00:00
arch treewide: Remove repeated words 2023-02-09 10:04:04 +00:00
commonlib commonlib/storage: Add attach callback to sdhci_ctrlr 2023-02-08 16:59:28 +00:00
console console: Add SimNow console logging 2023-02-09 10:01:20 +00:00
cpu cpu/intel/model_206ax/model_206ax_init: use CPUID_ALL_STEPPINGS_MASK 2023-02-08 15:11:13 +00:00
device treewide: Remove repeated words 2023-02-09 10:04:04 +00:00
drivers drivers/ocp, mb/ocp/deltalake: move get_loglevel_from_vpd function 2023-02-08 19:14:03 +00:00
ec ec/dell: Add support for the SMSC MEC5035 2023-02-08 19:21:59 +00:00
include console: Add SimNow console logging 2023-02-09 10:01:20 +00:00
lib treewide: stop calling custom TPM log "TCPA" 2023-01-11 16:00:55 +00:00
mainboard mb/dell: Add Latitude E6400 2023-02-09 14:55:06 +00:00
northbridge mb/*: Replace SNB PCI devices with references from chipset.cb 2023-02-04 01:42:39 +00:00
sbom src/sbom: Add code documentation + fix misspelling 2023-01-31 15:20:51 +00:00
security security/vboot: Don't build with flashrom support 2023-02-05 01:11:21 +00:00
soc src/soc/intel/common/block/pcie/rtd3: Fix root port _STA logic 2023-02-09 14:57:39 +00:00
southbridge tree: Drop repeated words 2023-02-07 04:37:31 +00:00
superio {superio,ec}/acpi: Replace constant "Zero" with actual number 2022-12-27 09:06:29 +00:00
vendorcode tree: Drop repeated words 2023-02-07 04:37:31 +00:00
Kconfig tree: Drop repeated words 2023-02-07 04:37:31 +00:00