diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-10-18 14:56:44 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-07 17:24:29 +0400 |
commit | 0fd20c532faa6d5ebed8a43763f96a4829b33be2 (patch) | |
tree | 9864a775098761ac98a42b33d96f1cd276d413d1 /include/hw | |
parent | bab592a259a6603922a4f54caedb6e52da692e35 (diff) | |
download | qemu-0fd20c532faa6d5ebed8a43763f96a4829b33be2.zip qemu-0fd20c532faa6d5ebed8a43763f96a4829b33be2.tar.gz qemu-0fd20c532faa6d5ebed8a43763f96a4829b33be2.tar.bz2 |
omap-i2c: remove PROP_PTR
Since clocks are not QOM objects, replace PROP_PTR of clocks with
setters methods.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/arm/omap.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/hw/arm/omap.h b/include/hw/arm/omap.h index bcecf19..39a295b 100644 --- a/include/hw/arm/omap.h +++ b/include/hw/arm/omap.h @@ -81,6 +81,19 @@ typedef struct omap_intr_handler_s omap_intr_handler; void omap_intc_set_iclk(omap_intr_handler *intc, omap_clk clk); void omap_intc_set_fclk(omap_intr_handler *intc, omap_clk clk); +/* omap_i2c.c */ +#define TYPE_OMAP_I2C "omap_i2c" +#define OMAP_I2C(obj) OBJECT_CHECK(OMAPI2CState, (obj), TYPE_OMAP_I2C) + +typedef struct OMAPI2CState OMAPI2CState; + +/* + * TODO: Ideally we should have a clock framework that + * let us wire these clocks up with QOM properties or links. + */ +void omap_i2c_set_iclk(OMAPI2CState *i2c, omap_clk clk); +void omap_i2c_set_fclk(OMAPI2CState *i2c, omap_clk clk); + /* OMAP2 l4 Interconnect */ struct omap_l4_s; struct omap_l4_region_s { |