summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLijian Zhao <lijian.zhao@intel.com>2018-08-27 11:51:29 -0700
committerMartin Roth <martinroth@google.com>2018-09-21 14:15:01 +0000
commitb7d2a6fbf51eb2e2f18273fb6da58ef2ddfe151a (patch)
tree5f47c78a2f38194f2b162c9e1964c6e6da889e4d
parent951d9f6f965942d240a4cd4d2981dbf9fbca7783 (diff)
downloadcoreboot-b7d2a6fbf51eb2e2f18273fb6da58ef2ddfe151a.tar.xz
mb/intel/coffeelake_rvp: GPIO support for whiskey board
Add gpio programming difference for whiskeylake rvp platform. BUG=N/A TEST=N/A Change-Id: I35a0384f828fd3219e0c3adb4830f5bdab800e32 Signed-off-by: Lijian Zhao <lijian.zhao@intel.com> Reviewed-on: https://review.coreboot.org/28367 Reviewed-by: Pratikkumar V Prajapati <pratikkumar.v.prajapati@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/intel/coffeelake_rvp/variants/baseboard/gpio.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mainboard/intel/coffeelake_rvp/variants/baseboard/gpio.c b/src/mainboard/intel/coffeelake_rvp/variants/baseboard/gpio.c
index a7a26f639d..dd7369b672 100644
--- a/src/mainboard/intel/coffeelake_rvp/variants/baseboard/gpio.c
+++ b/src/mainboard/intel/coffeelake_rvp/variants/baseboard/gpio.c
@@ -264,6 +264,11 @@ static const struct pad_config gpio_table[] = {
/* H21 : GPPC_H_21 */
/* H22 : GPPC_H_22 */
PAD_CFG_GPI(GPP_H22, NONE, DEEP),
+#if IS_ENABLED(CONFIG_BOARD_INTEL_WHISKEYLAKE_RVP)
+ PAD_CFG_GPO(GPP_H22, 1, PLTRST),
+#else
+ PAD_CFG_GPI(GPP_H22, NONE, DEEP),
+#endif
/* H23 : GPPC_H_23 */
/* GPD */
@@ -300,7 +305,8 @@ const struct pad_config *__weak variant_gpio_table(size_t *num)
return gpio_table;
}
-const struct pad_config *__weak variant_early_gpio_table(size_t *num)
+const struct pad_config *__weak
+ variant_early_gpio_table(size_t *num)
{
*num = ARRAY_SIZE(early_gpio_table);
return early_gpio_table;
@@ -310,7 +316,7 @@ static const struct cros_gpio cros_gpios[] = {
CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, CROS_GPIO_DEVICE_NAME),
};
-const struct cros_gpio *__weak variant_cros_gpios(size_t *num)
+const struct cros_gpio * __weak variant_cros_gpios(size_t *num)
{
*num = ARRAY_SIZE(cros_gpios);
return cros_gpios;