diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2016-11-17 14:38:10 +0530 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-12-02 21:04:48 -0700 |
commit | 1cac34ce161ae010d3f9ffd3f664e70206638ebc (patch) | |
tree | b4e97524e55215380ee0e0f5c17635e27d523d52 /arch/arm/include/asm/omap_musb.h | |
parent | 3aec2648698d9be14ab8b3eeb7d4d7d3783379ac (diff) | |
download | u-boot-imx-1cac34ce161ae010d3f9ffd3f664e70206638ebc.zip u-boot-imx-1cac34ce161ae010d3f9ffd3f664e70206638ebc.tar.gz u-boot-imx-1cac34ce161ae010d3f9ffd3f664e70206638ebc.tar.bz2 |
drivers: usb: musb: adopt musb backend driver to driver model
Currently all backend driver ops uses hard coded physical
address, so to adopt the driver to DM, add device pointer to ops
call backs so that drivers can get physical addresses from the
usb driver priv/plat data.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/include/asm/omap_musb.h')
-rw-r--r-- | arch/arm/include/asm/omap_musb.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/include/asm/omap_musb.h b/arch/arm/include/asm/omap_musb.h index 8b9cb0e..7c5fb40 100644 --- a/arch/arm/include/asm/omap_musb.h +++ b/arch/arm/include/asm/omap_musb.h @@ -15,9 +15,10 @@ extern const struct musb_platform_ops omap2430_ops; struct omap_musb_board_data { u8 interface_type; - void (*set_phy_power)(u8 on); - void (*clear_irq)(void); - void (*reset)(void); + struct udevice *dev; + void (*set_phy_power)(struct udevice *dev, u8 on); + void (*clear_irq)(struct udevice *dev); + void (*reset)(struct udevice *dev); }; enum musb_interface {MUSB_INTERFACE_ULPI, MUSB_INTERFACE_UTMI}; |