mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 00:48:52 +09:00
![Mugunthan V N](/assets/img/avatar_default.png)
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>
26 lines
675 B
C
26 lines
675 B
C
/*
|
|
* Board data structure for musb gadget on OMAPs
|
|
*
|
|
* Copyright (C) 2012, Ilya Yanok <ilya.yanok@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __ASM_ARM_OMAP_MUSB_H
|
|
#define __ASM_ARM_OMAP_MUSB_H
|
|
|
|
extern struct musb_platform_ops musb_dsps_ops;
|
|
extern const struct musb_platform_ops am35x_ops;
|
|
extern const struct musb_platform_ops omap2430_ops;
|
|
|
|
struct omap_musb_board_data {
|
|
u8 interface_type;
|
|
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};
|
|
#endif /* __ASM_ARM_OMAP_MUSB_H */
|