soc/intel/tigerlake: Add Jasper lake GPIO support
commit1c2313d339ba5da92d092451ec2a253acaa2563c
authorRonak Kanabar <ronak.kanabar@intel.com>
Mon, 16 Dec 2019 13:13:52 +0000 (16 18:43 +0530)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 3 Mar 2020 10:09:26 +0000 (3 10:09 +0000)
treec36da0a89d8260facbd20c1fb30504abca6660ed
parentc052ba0ac11914b8b1bf4dc190a1f6b8d9b6ace1
soc/intel/tigerlake: Add Jasper lake GPIO support

Add gpio definition for Jasper Lake gpio controller.

Also created a separate file for JSL and TGL gpio keeping common asl file.
gpio_soc_defs.h must pass correct information/macro values to asl file
for code to work.

GPIO controller includes 4 gpio community and 10 groups. Patch adds
definition for all gpio within community and groups

Updated IRQ mapping for all gpios

TEST=Check if jslrvp and tglrvp code is compiling

Change-Id: Iae4e694ecb30658e43c5ed99e5436579fd7d2ed2
Signed-off-by: Maulik V Vaghela <maulik.v.vaghela@intel.com>
Signed-off-by: Ronak Kanabar <ronak.kanabar@intel.com>
Signed-off-by: Usha P <usha.p@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39111
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subrata.banik@intel.com>
15 files changed:
src/soc/intel/common/block/include/intelblocks/gpio_defs.h
src/soc/intel/tigerlake/Makefile.inc
src/soc/intel/tigerlake/acpi/gpio.asl
src/soc/intel/tigerlake/acpi/gpio_op.asl [new file with mode: 0644]
src/soc/intel/tigerlake/chip.h
src/soc/intel/tigerlake/gpio_jsl.c [copied from src/soc/intel/tigerlake/gpio.c with 55% similarity]
src/soc/intel/tigerlake/gpio_tgl.c [moved from src/soc/intel/tigerlake/gpio.c with 99% similarity]
src/soc/intel/tigerlake/include/soc/gpio.h
src/soc/intel/tigerlake/include/soc/gpio_defs.h [copied from src/soc/intel/tigerlake/include/soc/gpio.h with 61% similarity]
src/soc/intel/tigerlake/include/soc/gpio_defs_jsl.h [new file with mode: 0644]
src/soc/intel/tigerlake/include/soc/gpio_defs_tgl.h [moved from src/soc/intel/tigerlake/include/soc/gpio_defs.h with 97% similarity]
src/soc/intel/tigerlake/include/soc/gpio_soc_defs.h [copied from src/soc/intel/tigerlake/include/soc/gpio.h with 61% similarity]
src/soc/intel/tigerlake/include/soc/gpio_soc_defs_jsl.h [new file with mode: 0644]
src/soc/intel/tigerlake/include/soc/gpio_soc_defs_tgl.h [moved from src/soc/intel/tigerlake/include/soc/gpio_soc_defs.h with 94% similarity]
src/soc/intel/tigerlake/include/soc/pmc.h