summaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake/gpio.c
diff options
context:
space:
mode:
authorLijian Zhao <lijian.zhao@intel.com>2017-08-28 17:46:55 -0700
committerMartin Roth <martinroth@google.com>2017-09-20 01:22:18 +0000
commitac87a9804bc2464c30c4aaf6a6eab3df6bb4b01f (patch)
tree87f9a798f263c6d71c75d22410ab233cf1b28f3a /src/soc/intel/cannonlake/gpio.c
parent5c84f87fcf76ca8cb3e9a1b3233bab16cdeb6d31 (diff)
downloadcoreboot-ac87a9804bc2464c30c4aaf6a6eab3df6bb4b01f.tar.xz
soc/intel/cannonlake: Add PMC pci drivers
Add PMC pci driver on top of PMC common code, also include pmc init code reference from skylake. Change-Id: I95895a3e26cdebd98a4e54720bd4730542707d7e Signed-off-by: Lijian Zhao <lijian.zhao@intel.com> Reviewed-on: https://review.coreboot.org/21251 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/cannonlake/gpio.c')
-rw-r--r--src/soc/intel/cannonlake/gpio.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/soc/intel/cannonlake/gpio.c b/src/soc/intel/cannonlake/gpio.c
index 68b137d742..0cc416424a 100644
--- a/src/soc/intel/cannonlake/gpio.c
+++ b/src/soc/intel/cannonlake/gpio.c
@@ -96,3 +96,20 @@ const struct pad_community *soc_gpio_get_community(size_t *num_communities)
*num_communities = ARRAY_SIZE(cnl_communities);
return cnl_communities;
}
+
+const struct pmc_to_gpio_route *soc_pmc_gpio_routes(size_t *num)
+{
+ static const struct pmc_to_gpio_route routes[] = {
+ { GPP_A, GPP_A },
+ { GPP_B, GPP_B },
+ { GPP_C, GPP_C },
+ { GPP_D, GPP_D },
+ { GPP_E, GPP_E },
+ { GPP_F, GPP_F },
+ { GPP_G, GPP_G },
+ { GPP_H, GPP_H },
+ { GPD, GPD },
+ };
+ *num = ARRAY_SIZE(routes);
+ return routes;
+}