diff options
author | Subrata Banik <subrata.banik@intel.com> | 2015-08-31 17:10:35 +0530 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-09-10 09:43:37 +0000 |
commit | c1bc8171e65bb9100c4e9cb0efe8e5aa9771d4d3 (patch) | |
tree | 58b911c583f924d96554d09362109d8e1e1af754 | |
parent | a887492e1e51849b75c7bb0d67430be4b1074493 (diff) | |
download | coreboot-c1bc8171e65bb9100c4e9cb0efe8e5aa9771d4d3.tar.xz |
Skylake: Print GPIO MMIO base and pad config using gpio_debug token
This will help development activity. Default GPIO print settings is
disable, need to set gpio_debug = 1 to get GPIO MMIO dump.
BUG=None
BRANCH=None
TEST=build coreboot and boot on Kunimitsu.
Change-Id: I70c0a7bee1593cbc8e9fe1599f45bb50e3fc0f42
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 19102612ea40184307ecb0ce8b165b5b989f6911
Original-Change-Id: I4ea6349866c108382de9787bb9ed09fc78d9c770
Original-Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/296280
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/11552
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r-- | src/soc/intel/skylake/gpio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/intel/skylake/gpio.c b/src/soc/intel/skylake/gpio.c index 3610a6cf16..64b3dda334 100644 --- a/src/soc/intel/skylake/gpio.c +++ b/src/soc/intel/skylake/gpio.c @@ -25,6 +25,7 @@ #include <soc/iomap.h> #include <soc/pm.h> +static const int gpio_debug = 0; /* There are 4 communities with 8 GPIO groups (GPP_[A:G] and GPD) */ struct gpio_community { @@ -323,6 +324,11 @@ static void gpio_configure_pad(const struct pad_config *cfg) if ((dw0 & PAD_FIELD(GPIROUTSMI, MASK)) == PAD_FIELD(GPIROUTSMI, YES)) gpi_enable_smi(cfg->pad); + + if(gpio_debug) + printk(BIOS_DEBUG, + "Write Pad: Base(%p) - conf0 = %x conf1= %x pad # = %d\n", + &dw_regs[0], dw0, reg, cfg->pad); } void gpio_configure_pads(const struct pad_config *cfgs, size_t num) |