summaryrefslogtreecommitdiff
path: root/util/showdevicetree
diff options
context:
space:
mode:
authorJustin TerAvest <teravest@google.com>2018-01-17 16:36:30 -0800
committerMartin Roth <martinroth@google.com>2018-01-25 16:50:17 +0000
commitca2ed9f450682c5f23ee1f3affac8b6dba7fdc0b (patch)
tree6c73b52c016bf59eee8d6371793ef479aa75595b /util/showdevicetree
parent4eaf0fa1550805ba9f3c24fb8675a6e77bd40101 (diff)
sconfig: Add a new mmio resource type
Add support for a mmio resource in the devicetree to allow memory-mapped IO addresses to be assigned to given values. AMD platforms perform a significant amount of configuration through these MMIO addresses, including I2C bus configuration. BUG=b:72121803 Change-Id: I5608721c22c1b229f527815b5f17fff3a080c3c8 Signed-off-by: Justin TerAvest <teravest@chromium.org> Reviewed-on: https://review.coreboot.org/23319 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'util/showdevicetree')
-rw-r--r--util/showdevicetree/showdt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/showdevicetree/showdt.c b/util/showdevicetree/showdt.c
index 120c5e3a89..4b476a8d7b 100644
--- a/util/showdevicetree/showdt.c
+++ b/util/showdevicetree/showdt.c
@@ -91,6 +91,9 @@ const char *dev_path(device_t dev)
case DEVICE_PATH_CPU_BUS:
sprintf(buffer, "CPU_BUS: %02x", dev->path.cpu_bus.id);
break;
+ case DEVICE_PATH_MMIO:
+ sprintf(buffer, "MMIO: %08x", dev->path.mmio.addr);
+ break;
default:
printf("Unknown device path type: %d\n",
dev->path.type);