mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
hw/display/exynos4210_fimd: Pass frame buffer memory region as link
Add the Exynos4210fimdState::'framebuffer-memory' property. Have the board set it. We don't need to call sysbus_address_space() anymore. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240226173805.289-5-philmd@linaro.org>
This commit is contained in:
parent
1cfe461428
commit
6d73fff3ef
2 changed files with 18 additions and 3 deletions
|
@ -770,6 +770,8 @@ static void exynos4210_realize(DeviceState *socdev, Error **errp)
|
|||
|
||||
/*** Display controller (FIMD) ***/
|
||||
dev = qdev_new("exynos4210.fimd");
|
||||
object_property_set_link(OBJECT(dev), "framebuffer-memory",
|
||||
OBJECT(system_mem), &error_fatal);
|
||||
busdev = SYS_BUS_DEVICE(dev);
|
||||
sysbus_realize_and_unref(busdev, &error_fatal);
|
||||
sysbus_mmio_map(busdev, 0, EXYNOS4210_FIMD0_BASE_ADDR);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue