diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-07-05 11:45:54 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-07-12 09:15:08 +0000 |
commit | 899acf19bfc2533df215b73b8ae99aff8a722745 (patch) | |
tree | 5c098e2f2645faf38fdff9fd0a933aabe36c83ab | |
parent | 32867e77f1b8d76eafbb5c718a4a4273a6bbcc50 (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>
-rw-r--r-- | src/soc/intel/apollolake/systemagent.c | 8 |
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)++; } } |