summaryrefslogtreecommitdiff
path: root/util/inteltool/gpio.c
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-04-07 12:26:07 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2018-01-15 01:18:36 +0000
commit1898023fb1e7e410a0a916f0518dc5893fb9f988 (patch)
treec89a970cbe818f9d2ec7cf068d0dc416af879537 /util/inteltool/gpio.c
parent99b02a1d7c486d0b4083cbfdafe2a92de4975362 (diff)
downloadcoreboot-1898023fb1e7e410a0a916f0518dc5893fb9f988.tar.xz
inteltool: Dump Sunrise Point PCH-H GPIO groups
Change-Id: Ib6b083c31617e19cbbb0929e2fc8ab39d54533bf Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/19589 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/inteltool/gpio.c')
-rw-r--r--util/inteltool/gpio.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/util/inteltool/gpio.c b/util/inteltool/gpio.c
index 5fd160b421..3dcfc24929 100644
--- a/util/inteltool/gpio.c
+++ b/util/inteltool/gpio.c
@@ -843,11 +843,6 @@ int print_gpios(struct pci_dev *sb, int show_all, int show_diffs)
const gpio_default_t *gpio_defaults = NULL;
uint32_t gpio_diff;
- if (show_diffs && !show_all)
- printf("\n========== GPIO DIFFS ===========\n\n");
- else
- printf("\n============= GPIOS =============\n\n");
-
switch (sb->device_id) {
case PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_FULL:
case PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_PREM:
@@ -1010,6 +1005,9 @@ int print_gpios(struct pci_dev *sb, int show_all, int show_diffs)
gpio_registers = baytrail_score_ssus_gpio_registers;
size = ARRAY_SIZE(baytrail_score_ssus_gpio_registers);
break;
+ case PCI_DEVICE_ID_INTEL_CM236:
+ print_gpio_groups(sb);
+ return 0;
case PCI_DEVICE_ID_INTEL_82371XX:
printf("This southbridge has GPIOs in the PM unit.\n");
return 1;
@@ -1021,6 +1019,11 @@ int print_gpios(struct pci_dev *sb, int show_all, int show_diffs)
return 1;
}
+ if (show_diffs && !show_all)
+ printf("\n========== GPIO DIFFS ===========\n\n");
+ else
+ printf("\n============= GPIOS =============\n\n");
+
printf("GPIOBASE = 0x%04x (IO)\n\n", gpiobase);
j = 0;