aboutsummaryrefslogtreecommitdiff
path: root/util/sconfig/main.c
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/sconfig/main.c
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/sconfig/main.c')
-rw-r--r--util/sconfig/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index 570ca4a0cf..8f4d7d947b 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -290,7 +290,11 @@ struct device *new_device(struct device *parent, struct device *busdev,
new_d->path = ".type=DEVICE_PATH_SPI,{.spi={ .cs = 0x%x }}";
break;
+ case MMIO:
+ new_d->path = ".type=DEVICE_PATH_MMIO,{.mmio={ .addr = 0x%x }}";
+ break;
}
+
return new_d;
}