summaryrefslogtreecommitdiff
path: root/src/drivers/aspeed/ast2050
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-07-05 11:41:41 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2023-07-12 09:12:01 +0000
commitac66a272d30340d77e0c2568138f57fdf5ca0d72 (patch)
tree2a5071b9dbf35095c5740af6343618c10577d4bc /src/drivers/aspeed/ast2050
parent9a7198392a2d98cdc7ba3d6d454de29751afb25f (diff)
ast2050: Fix reserving VGA region
Reserving resources needs to have inclusive region ends. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I88a09d205ef9699de7f18e0a2f33c9ad3ce9fa36 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76279 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/aspeed/ast2050')
-rw-r--r--src/drivers/aspeed/ast2050/ast2050.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/aspeed/ast2050/ast2050.c b/src/drivers/aspeed/ast2050/ast2050.c
index 3aa4195928..ea86e28ffe 100644
--- a/src/drivers/aspeed/ast2050/ast2050.c
+++ b/src/drivers/aspeed/ast2050/ast2050.c
@@ -14,7 +14,7 @@
static void aspeed_ast2050_read_resources(struct device *dev)
{
/* Reserve VGA regions */
- mmio_resource_kb(dev, 3, 0xa0000 >> 10, 0x1ffff >> 10);
+ mmio_from_to(dev, 3, 0xa0000, 0xc0000);
/* Run standard resource read routine */
pci_dev_read_resources(dev);