]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/sd/omap_mmc: Use similar API for "wire up omap_clk" to other OMAP devices
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Jan 2025 10:45:13 +0000 (10:45 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 31 Jan 2025 18:36:44 +0000 (19:36 +0100)
commit3102d81fc707550675be7af0c49da7c4299e9af9
treebac9d54564b53c1cb86feb988e4cad5d9abe85a2
parent0c90811231a9afc67d5d1119d3db0dcc8552f54d
hw/sd/omap_mmc: Use similar API for "wire up omap_clk" to other OMAP devices

The approach we've settled on for handling the omap_clk wiring for
OMAP devices converted to QDev is to have a function omap_foo_set_clk()
whose implementation just sets the field directly in the device's
state struct. (See the "TODO" comment near the top of omap.h.)
Make omap_mmc do the same.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250128104519.3981448-6-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/sd/omap_mmc.c
include/hw/arm/omap.h