soc/intel/ehl: Provide function to change PHY-to-MAC IRQ polarity
commitdccdaceb494fdb0466a1c46b68df3642280f587f
authorMario Scheithauer <mario.scheithauer@siemens.com>
Wed, 27 Apr 2022 09:24:05 +0000 (27 11:24 +0200)
committerFelix Held <felix-coreboot@felixheld.de>
Sat, 21 May 2022 17:40:52 +0000 (21 17:40 +0000)
treef9fde441a368a3a17c40720865bcc5ba9f3c9e7d
parent8698a6f5a9d656c165f594cb9cd532a80d8e5e99
soc/intel/ehl: Provide function to change PHY-to-MAC IRQ polarity

EHL MAC side expects a rising edge signal for an IRQ. Based on the
mainboard wiring it could be necessary to change the interrupt polarity.
This patch provides the functionality to invert a falling edge signal
that comes from an external PHY. The inverting can be activated via
devicetree parameter.

Change-Id: Ia314014c7cacbeb72629c773c8c0bb5f002a3f54
Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63888
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
src/soc/intel/elkhartlake/chip.h
src/soc/intel/elkhartlake/include/soc/tsn_gbe.h
src/soc/intel/elkhartlake/tsn_gbe.c