mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 22:33:18 +00:00
7d98dbcc3d
Enable DM for USB peripheral in the musb-new driver. Also make sure that the driver can be used in the SPL. This implies that: * the driver must work with and without the OF_CONTROL option. That in turn, implies that the platform data can be passed in a struct ti_musb_platdata or be read from the dtb * usb.o is linked in the SPL if host support is enabled Another change is that the driver does not fail to bind (and stop the boot process) if one of the child driver does not bind. Reporting the error is enough. This kind of error would appear if the port is configured in the DTS but the driver is not activated in the config. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
32 lines
807 B
C
32 lines
807 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Board data structure for musb gadget on OMAPs
|
|
*
|
|
* Copyright (C) 2012, Ilya Yanok <ilya.yanok@gmail.com>
|
|
*/
|
|
|
|
#ifndef __ASM_ARM_OMAP_MUSB_H
|
|
#define __ASM_ARM_OMAP_MUSB_H
|
|
#include <linux/usb/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};
|
|
|
|
struct ti_musb_platdata {
|
|
void *base;
|
|
void *ctrl_mod_base;
|
|
struct musb_hdrc_platform_data plat;
|
|
};
|
|
|
|
#endif /* __ASM_ARM_OMAP_MUSB_H */
|