musb: sunxi: switch to the device model
The device model was implemented so far using a hook that needed to be called from the board support, without DT support and only for the host. Switch to probing both in peripheral and host mode through the DT. Reviewed-by: Łukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
@@ -19,10 +19,3 @@ void sunxi_usb_phy_power_off(int index);
|
||||
int sunxi_usb_phy_vbus_detect(int index);
|
||||
int sunxi_usb_phy_id_detect(int index);
|
||||
void sunxi_usb_phy_enable_squelch_detect(int index, int enable);
|
||||
|
||||
/* Not really phy related, but we have to declare this somewhere ... */
|
||||
#if defined(CONFIG_USB_MUSB_HOST) || defined(CONFIG_USB_MUSB_GADGET)
|
||||
void sunxi_musb_board_init(void);
|
||||
#else
|
||||
#define sunxi_musb_board_init()
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user