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>
This commit is contained in:
Lijian Zhao 2018-08-27 11:51:29 -07:00 committed by Martin Roth
parent 951d9f6f96
commit b7d2a6fbf5
1 changed files with 8 additions and 2 deletions

View File

@ -264,6 +264,11 @@ static const struct pad_config gpio_table[] = {
/* H21 : GPPC_H_21 */ /* H21 : GPPC_H_21 */
/* H22 : GPPC_H_22 */ /* H22 : GPPC_H_22 */
PAD_CFG_GPI(GPP_H22, NONE, DEEP), 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 */ /* H23 : GPPC_H_23 */
/* GPD */ /* GPD */
@ -300,7 +305,8 @@ const struct pad_config *__weak variant_gpio_table(size_t *num)
return gpio_table; 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); *num = ARRAY_SIZE(early_gpio_table);
return 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), 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); *num = ARRAY_SIZE(cros_gpios);
return cros_gpios; return cros_gpios;