musb_read_rxhubport(musb_base, i);
}
}
-
- musb_platform_suspend(musb);
}
static void musb_restore_context(struct musb *musb)
void __iomem *ep_target_regs;
void __iomem *epio;
- musb_platform_resume(musb);
-
if (is_host_enabled(musb)) {
musb_writew(musb_base, MUSB_FRAME, musb->context.frame);
musb_writeb(musb_base, MUSB_TESTMODE, musb->context.testmode);
* struct musb_platform_ops - Operations passed to musb_core by HW glue layer
* @init: turns on clocks, sets up platform-specific registers, etc
* @exit: undoes @init
- * @suspend: platform-specific suspend, e.g. context save
- * @resume: platform-specific resume, e.g. context restore
* @set_mode: forcefully changes operating mode
* @try_ilde: tries to idle the IP
* @vbus_status: returns vbus status if possible
int (*init)(struct musb *musb);
int (*exit)(struct musb *musb);
- int (*suspend)(struct musb *musb);
- int (*resume)(struct musb *musb);
-
void (*enable)(struct musb *musb);
void (*disable)(struct musb *musb);
return musb->ops->exit(musb);
}
-static inline int musb_platform_suspend(struct musb *musb)
-{
- if (!musb->ops->suspend)
- return 0;
-
- return musb->ops->suspend(musb);
-}
-
-static inline int musb_platform_resume(struct musb *musb)
-{
- if (!musb->ops->resume)
- return 0;
-
- return musb->ops->resume(musb);
-}
-
#endif /* __MUSB_CORE_H__ */