summaryrefslogtreecommitdiff
path: root/util/inteltool/gpio_groups.c
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@puri.sm>2019-06-11 23:23:46 -0500
committerPatrick Georgi <pgeorgi@google.com>2020-03-16 15:22:31 +0000
commit3c78445ad938ee1241f570b9fb1560e66f3e6438 (patch)
tree1bfd56c095991238b613a17c4913ef8caf737eec /util/inteltool/gpio_groups.c
parente32ded82f051ded75e0589b15c3e31db56ff8aea (diff)
downloadcoreboot-3c78445ad938ee1241f570b9fb1560e66f3e6438.tar.xz
inteltool: add support for CannonPoint-LP
Add support for CannonPoint-LP U Premium (CoffeeLake-U and WhiskeyLake-U) GPIO info taken from: - Intel doc #337867-002 - coreboot soc/intel/cannonlake/include/soc/gpio_soc_defs.h Test: Read GPIOs from out-of-tree WhiskeyLake-U board Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> Change-Id: I70f23eec71abb8d7c2a7a109c9e760bb31dee2ff Reviewed-on: https://review.coreboot.org/c/coreboot/+/39393 Reviewed-by: Michael Niewöhner Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/inteltool/gpio_groups.c')
-rw-r--r--util/inteltool/gpio_groups.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/inteltool/gpio_groups.c b/util/inteltool/gpio_groups.c
index 3d7d708d0c..bb196a914e 100644
--- a/util/inteltool/gpio_groups.c
+++ b/util/inteltool/gpio_groups.c
@@ -25,6 +25,7 @@
#include "gpio_names/apollolake.h"
#include "gpio_names/cannonlake.h"
+#include "gpio_names/cannonlake_lp.h"
#include "gpio_names/denverton.h"
#include "gpio_names/icelake.h"
#include "gpio_names/lewisburg.h"
@@ -149,6 +150,10 @@ const struct gpio_community *const *get_gpio_communities(struct pci_dev *const s
case PCI_DEVICE_ID_INTEL_APL_LPC:
*community_count = ARRAY_SIZE(apl_communities);
return apl_communities;
+ case PCI_DEVICE_ID_INTEL_CANNONPOINT_LP_U_PREM:
+ *community_count = ARRAY_SIZE(cannonlake_pch_lp_communities);
+ *pad_stepping = 16;
+ return cannonlake_pch_lp_communities;
case PCI_DEVICE_ID_INTEL_H310:
case PCI_DEVICE_ID_INTEL_H370:
case PCI_DEVICE_ID_INTEL_Z390: