diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-10-18 14:42:57 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-07 17:24:29 +0400 |
commit | bab592a259a6603922a4f54caedb6e52da692e35 (patch) | |
tree | b574b30d13be17691b9d745c1e1f3a9bd6fbe4c7 /include | |
parent | b9751d205febdfefdb9bb9828fef07ae9a966f1b (diff) | |
download | qemu-bab592a259a6603922a4f54caedb6e52da692e35.zip qemu-bab592a259a6603922a4f54caedb6e52da692e35.tar.gz qemu-bab592a259a6603922a4f54caedb6e52da692e35.tar.bz2 |
omap-intc: remove PROP_PTR
Since clocks are not QOM objects, replace PROP_PTR of clocks with
setters methods.
(in theory there should probably be different methods for omap1 &
omap2 intc, but this is left as a future improvement)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/arm/omap.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/hw/arm/omap.h b/include/hw/arm/omap.h index f3aa670..bcecf19 100644 --- a/include/hw/arm/omap.h +++ b/include/hw/arm/omap.h @@ -67,6 +67,20 @@ void omap_clk_setrate(omap_clk clk, int divide, int multiply); int64_t omap_clk_getrate(omap_clk clk); void omap_clk_reparent(omap_clk clk, omap_clk parent); +/* omap_intc.c */ +#define TYPE_OMAP_INTC "common-omap-intc" +#define OMAP_INTC(obj) \ + OBJECT_CHECK(omap_intr_handler, (obj), TYPE_OMAP_INTC) + +typedef struct omap_intr_handler_s omap_intr_handler; + +/* + * TODO: Ideally we should have a clock framework that + * let us wire these clocks up with QOM properties or links. + */ +void omap_intc_set_iclk(omap_intr_handler *intc, omap_clk clk); +void omap_intc_set_fclk(omap_intr_handler *intc, omap_clk clk); + /* OMAP2 l4 Interconnect */ struct omap_l4_s; struct omap_l4_region_s { |