From ca2ed9f450682c5f23ee1f3affac8b6dba7fdc0b Mon Sep 17 00:00:00 2001 From: Justin TerAvest Date: Wed, 17 Jan 2018 16:36:30 -0800 Subject: 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 Reviewed-on: https://review.coreboot.org/23319 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Furquan Shaikh --- util/showdevicetree/showdt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/showdevicetree') 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); -- cgit v1.2.3