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>
This commit is contained in:
parent
a887492e1e
commit
c1bc8171e6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue