From: Ming Lei <tom.leiming@gmail.com>
This patch introduces read_fifo/write_fifo callback in glue ops,
so that we can make musb in one single images working on multiple
boards.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
drivers/usb/musb/musb_core.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h
index 5843810..bfbd72e 100644
--- a/drivers/usb/musb/musb_core.h
+++ b/drivers/usb/musb/musb_core.h
@@ -262,6 +262,8 @@ enum musb_g_ep0_state {
* @get_hw_revision: get hardware revision
* @vbus_status: returns vbus status if possible
* @set_vbus: forces vbus status
+ * @read_fifo: read data from musb fifo in PIO
+ * @write_fifo: write data into musb fifo in PIO
*/
struct musb_platform_ops {
int (*init)(struct musb *musb);
@@ -277,6 +279,8 @@ struct musb_platform_ops {
int (*vbus_status)(struct musb *musb);
void (*set_vbus)(struct musb *musb, int on);
+ void (*read_fifo)(struct musb_hw_ep *hw_ep, u16 len, u8 *buf);
+ void (*write_fifo)(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf);
};
/*
--
1.7.3
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html