: usb: musb: AM35x: moving internal phy functions out of usb_musb.c file
Subsystems (4)
PATCH 1/1 : usb: musb: AM35x: moving internal phy functions out of usb_musb.c file
Moved all the board specific internal PHY functions out of usb_musb.c file as this file is shared between the OMAP2+ and AM35xx platforms. There exists a file which has the functions specific to internal PHY used for OMAP4 platform. Moved all phy specific functions to this file and passing these functions through board data in the board file.
arch/arm/mach-omap2/board-am3517evm.c +4 -0
@@ -409,6 +409,10 @@ static struct omap_musb_board_data musb_ .interface_type = MUSB_INTERFACE_ULPI, .mode = MUSB_OTG, .power = 500, + .set_phy_power = am35x_musb_phy_power, + .clear_irq = am35x_musb_clear_irq, + .set_mode = am35x_musb_set_mode, + .reset = am35x_musb_reset, };static __init void am3517_evm_musb_init (void )
arch/arm/mach-omap2/omap_phy_internal.c +93 -0
102 lines not on this page · raw message
arch/arm/mach-omap2/usb-musb.c +0 -97
112 lines not on this page · raw message
arch/arm/plat-omap/include/plat/usb.h +4 -0
@@ -91,6 +91,10 @@ extern int omap4430_phy_exit(struct devi#endif +extern void am35x_musb_reset (void ); +extern void am35x_musb_phy_power (u8 on); +extern void am35x_musb_clear_irq (void ); +extern void am35x_musb_set_mode (u8 musb_mode);/* * FIXME correct answer depends on hmc_mode,
arch/arm/mach-omap2/Makefile +2 -1
@@ -218,7 +218,8 @@ obj-$(CONFIG_MACH_OMAP4_PANDA) += board hsmmc.o \ omap_phy_internal.o -obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o +obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o \ + omap_phy_internal.o \ obj-$(CONFIG_MACH_CRANEBOARD) += board-am3517crane.o
A message that is not in the archive (sent off-list or not yet received): 1297857880-27638-1-git-send-email-hemahk-l0cyMroinI0@public.gmane.org
Felipe Balbi
AppliedQuoted 10 lines · Hema HK
Moved all the board specific internal PHY functions out of
usb_musb.cfile as this file is shared between the OMAP2+ and AM35xx platforms. There exists a file which has the functions specific to internal PHY used for OMAP4 platform. Moved all phy specific functions to this file and passing these functions through board data in the board file.Signed-off-by Hema HK <[email protected]>Cc Felipe Balbi <[email protected]>Cc Paul Walmsley <[email protected]>Cc Tony Lindgren <[email protected]>
applied, thanks.
Signature · 5 lines
balbi -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html