soc/intel/cannonlake: Add cannonlake ACPI GPIO op
commit5ff742c740c3d39df85596a99046ef88aef5351f
authorLijian Zhao <lijian.zhao@intel.com>
Fri, 28 Dec 2018 01:01:09 +0000 (27 17:01 -0800)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 3 Jan 2019 19:50:00 +0000 (3 19:50 +0000)
tree9281c27d5e93f511e8269e29eb4fb2a50c24e29d
parent334be3289d6ca16e806bd1e2aef87637cebb3122
soc/intel/cannonlake: Add cannonlake ACPI GPIO op

Follow instrcution from https://doc.coreboot.org/acpi/gpio.html to
implement GPIO toggling method, covered for both CNP_LP and CNP_H pch.

BUG=N/A
TEST=Build and boot up fine on sarien platform, add an dummy STSX in
DSDT table, read back from iotools to confirm the GPIO tx state get
updated.

Signed-off-by: Lijian Zhao <lijian.zhao@intel.com>
Change-Id: I006a6a8fc580c73ac0938968397a628a4ffe504f
Reviewed-on: https://review.coreboot.org/c/30461
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/intel/cannonlake/acpi.c
src/soc/intel/cannonlake/acpi/gpio.asl
src/soc/intel/cannonlake/acpi/gpio_cnp_h.asl
src/soc/intel/cannonlake/acpi/gpio_op.asl [new file with mode: 0644]
src/soc/intel/cannonlake/include/soc/gpio_defs.h
src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h