summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/uart/uart.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-07-05 12:08:32 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2023-07-12 10:15:26 +0000
commitfdc1b541aeeac2d6f5d93cfc514fa0599da1a47d (patch)
treec6936110f85cd3656e450acfbf831e16bb316498 /src/soc/amd/common/block/uart/uart.c
parent6df8ba45e04724cd8cbcb556df43a61ad271ab6f (diff)
soc/amd/common: Use newer function for resource declarations
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: Iad8b7c705d5053700850065f90314444904b5b54 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76289 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Diffstat (limited to 'src/soc/amd/common/block/uart/uart.c')
-rw-r--r--src/soc/amd/common/block/uart/uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/uart/uart.c b/src/soc/amd/common/block/uart/uart.c
index 125e780e63..96b9883b8c 100644
--- a/src/soc/amd/common/block/uart/uart.c
+++ b/src/soc/amd/common/block/uart/uart.c
@@ -98,7 +98,7 @@ static void uart_enable(struct device *dev)
static void uart_read_resources(struct device *dev)
{
- mmio_resource_kb(dev, 0, dev->path.mmio.addr / KiB, 4);
+ mmio_range(dev, 0, dev->path.mmio.addr, 4 * KiB);
}
struct device_operations amd_uart_mmio_ops = {