diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2020-11-30 13:44:40 +0100 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2020-12-01 16:01:31 +0000 |
commit | 0e3884cfffec6e8edc9d29ee21820d896a9fa2be (patch) | |
tree | 4f97a9b298deb4ecd4f72feedcb35dbbea00a736 | |
parent | 90fda02f60309e0b843c805026d6a2978d9bd73d (diff) | |
download | coreboot-0e3884cfffec6e8edc9d29ee21820d896a9fa2be.tar.xz |
drivers/aspeed/common/ast: Fix compilation under x86_64
Change-Id: I5fb6594ff83904df02083bcbea14b2d0b89cd9dd
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48169
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r-- | src/drivers/aspeed/common/ast_mode_corebootfb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/aspeed/common/ast_mode_corebootfb.c b/src/drivers/aspeed/common/ast_mode_corebootfb.c index bf974ffffe..bb30d20acd 100644 --- a/src/drivers/aspeed/common/ast_mode_corebootfb.c +++ b/src/drivers/aspeed/common/ast_mode_corebootfb.c @@ -32,7 +32,7 @@ int ast_crtc_do_set_base(struct drm_crtc *crtc) return -ENOMEM; } - fb->mmio_addr = (u32)res2mmio(res, 4095, 4095); + fb->mmio_addr = (uintptr_t)res2mmio(res, 4095, 4095); ast_set_offset_reg(crtc); ast_set_start_address_crt1(ast, fb->mmio_addr); @@ -230,7 +230,7 @@ int ast_driver_framebuffer_init(struct drm_device *dev, int flags) set_vbe_mode_info_valid(&edid, fb.mmio_addr); /* Clear display */ - memset((void *)fb.mmio_addr, 0, edid.bytes_per_line * edid.y_resolution); + memset((void *)(uintptr_t)fb.mmio_addr, 0, edid.bytes_per_line * edid.y_resolution); return 0; } |