summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-07-05 11:45:54 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2023-07-12 09:15:08 +0000
commit899acf19bfc2533df215b73b8ae99aff8a722745 (patch)
tree5c098e2f2645faf38fdff9fd0a933aabe36c83ab /src
parent32867e77f1b8d76eafbb5c718a4a4273a6bbcc50 (diff)
soc/intel/apl: Use newer function for resource declarations
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I5728dc144b0d04a92a1e0a4b9abbe17ef0a06e41 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76282 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Sean Rhodes <sean@starlabs.systems> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/apollolake/systemagent.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/soc/intel/apollolake/systemagent.c b/src/soc/intel/apollolake/systemagent.c
index b61f5fabeb..4db4d49ba5 100644
--- a/src/soc/intel/apollolake/systemagent.c
+++ b/src/soc/intel/apollolake/systemagent.c
@@ -32,15 +32,11 @@ void soc_add_fixed_mmio_resources(struct device *dev, int *index)
return;
if (MCHBAR32(GFXVTBAR) & VTBAR_ENABLED) {
- mmio_resource_kb(dev, *index,
- (MCHBAR64(GFXVTBAR) & VTBAR_MASK) / KiB,
- VTBAR_SIZE / KiB);
+ mmio_range(dev, *index, MCHBAR64(GFXVTBAR) & VTBAR_MASK, VTBAR_SIZE);
(*index)++;
}
if (MCHBAR32(DEFVTBAR) & VTBAR_ENABLED) {
- mmio_resource_kb(dev, *index,
- (MCHBAR64(DEFVTBAR) & VTBAR_MASK) / KiB,
- VTBAR_SIZE / KiB);
+ mmio_range(dev, *index, MCHBAR64(DEFVTBAR) & VTBAR_MASK, VTBAR_SIZE);
(*index)++;
}
}