ARM i.MX23 usb: move to SoC specific functions
Makes space for a i.MX28 specific USBPHY implementation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
a6e358b2f5
commit
1e8c05e402
|
@ -316,7 +316,7 @@ static void falconwing_init_usb(void)
|
|||
/* bring USB hub out of reset */
|
||||
gpio_direction_output(GPIO_USB_HUB_RESET, 1);
|
||||
|
||||
imx_usb_phy_enable();
|
||||
imx23_usb_phy_enable();
|
||||
|
||||
add_generic_usb_ehci_device(-1, IMX_USB_BASE, NULL);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
obj-y += imx.o iomux-imx.o reset-imx.o
|
||||
obj-$(CONFIG_DRIVER_VIDEO_STM) += imx_lcd_clk.o
|
||||
obj-$(CONFIG_ARCH_IMX23) += speed-imx23.o clocksource-imx23.o usb.o
|
||||
obj-$(CONFIG_ARCH_IMX23) += speed-imx23.o clocksource-imx23.o usb-imx23.o
|
||||
obj-$(CONFIG_ARCH_IMX28) += speed-imx28.o clocksource-imx28.o
|
||||
obj-$(CONFIG_MXS_OCOTP) += ocotp.o
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef __MACH_USB_H
|
||||
#define __MACH_USB_H
|
||||
|
||||
int imx_usb_phy_enable(void);
|
||||
int imx23_usb_phy_enable(void);
|
||||
|
||||
#endif /* __MACH_USB_H */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* i.MX23/28 USBPHY setup
|
||||
* i.MX23 USBPHY setup
|
||||
*
|
||||
* Copyright 2011 Sascha Hauer, Pengutronix <s.hauer@pengutronix.de>
|
||||
*
|
||||
|
@ -49,7 +49,7 @@
|
|||
#define SET 0x4
|
||||
#define CLR 0x8
|
||||
|
||||
int imx_usb_phy_enable(void)
|
||||
int imx23_usb_phy_enable(void)
|
||||
{
|
||||
u32 reg;
|
||||
|
||||
|
@ -89,4 +89,3 @@ int imx_usb_phy_enable(void)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue