From ac87a9804bc2464c30c4aaf6a6eab3df6bb4b01f Mon Sep 17 00:00:00 2001 From: Lijian Zhao Date: Mon, 28 Aug 2017 17:46:55 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/21251 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/cannonlake/gpio.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/soc/intel/cannonlake/gpio.c') 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; +} -- cgit v1.2.3