soc/intel/common/gpio: Add function to read GPIO TX value
commit546e0935436876ce5b1083d6e5ef9a33bb8c861d
authorCliff Huang <cliff.huang@intel.com>
Fri, 20 Jan 2023 05:38:56 +0000 (19 21:38 -0800)
committerFelix Held <felix-coreboot@felixheld.de>
Wed, 25 Jan 2023 14:33:06 +0000 (25 14:33 +0000)
tree1db789c5f44dcf6533b59f7fc5131f4a7405af7c
parent92c920b7304368188234c55f056e766db7d3e735
soc/intel/common/gpio: Add function to read GPIO TX value

This function reads out the current value set to output for a GPIO pin.

Ex: GPP_E0 is set to output
int e0_val;
e0_val = gpio_tx_get(GPP_E0);

Signed-off-by: Cliff Huang <cliff.huang@intel.com>
Change-Id: Ib02b9ab50d378eb163d91aed1576428b49cec2cf
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72127
Reviewed-by: Anil Kumar K <anil.kumar.k@intel.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Bora Guvendik <bora.guvendik@intel.com>
src/include/gpio.h
src/soc/intel/common/block/gpio/gpio.c