summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/block/include/intelblocks/gpio.h
diff options
context:
space:
mode:
authorKane Chen <kane.chen@intel.com>2019-02-12 21:14:13 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-02-15 16:23:44 +0000
commit223ddc298a1a8e25a493987d84c629ed152821d1 (patch)
tree3dab78836d0483ad5e23709e142d258ba037002d /src/soc/intel/common/block/include/intelblocks/gpio.h
parent1ac2ad0fbe8c1d7029e4f593fefe763212df6728 (diff)
downloadcoreboot-223ddc298a1a8e25a493987d84c629ed152821d1.tar.gz
coreboot-223ddc298a1a8e25a493987d84c629ed152821d1.tar.bz2
coreboot-223ddc298a1a8e25a493987d84c629ed152821d1.zip
soc/intel/skylake: Avoid TOL_1V8 being set for GPP_F4 ~ GPP_F11
According to doc 609208, bit 25 TOL_1V8 in GPP_F4 ~ GPP_F11 DW1 should be clear to prevent unexpected I2C behaviors. BUG=b:124269499 TEST=boot on nami and check bit 25 TOL_1V8 is clear Change-Id: I419ef3e89104ad3611e96bbe23a582504b45be0c Signed-off-by: Kane Chen <kane.chen@intel.com> Reviewed-on: https://review.coreboot.org/c/31368 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/common/block/include/intelblocks/gpio.h')
-rw-r--r--src/soc/intel/common/block/include/intelblocks/gpio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/gpio.h b/src/soc/intel/common/block/include/intelblocks/gpio.h
index c389ec4531d5..11a03d029cd4 100644
--- a/src/soc/intel/common/block/include/intelblocks/gpio.h
+++ b/src/soc/intel/common/block/include/intelblocks/gpio.h
@@ -197,5 +197,15 @@ void gpio_route_gpe(uint8_t gpe0b, uint8_t gpe0c, uint8_t gpe0d);
*/
uint8_t gpio_get_pad_portid(const gpio_t pad);
+/*
+ * Function to patch GPIO settings for SoC specifically
+ * cfg = pad config contains pad number and reg value.
+ * dw_reg = pad config dword number.
+ * reg_val = the reg value need to be patched.
+ * Returns gpio setting patched for SoC specifically
+ */
+uint32_t soc_gpio_pad_config_fixup(const struct pad_config *cfg,
+ int dw_reg, uint32_t reg_val);
+
#endif
#endif /* _SOC_INTELBLOCKS_GPIO_H_ */