Lines Matching full:isp1301
36 MODULE_DESCRIPTION("ISP1301 USB OTG Transceiver Driver");
39 struct isp1301 { struct
98 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) in enable_vbus_draw()
107 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) in enable_vbus_draw()
117 static void enable_vbus_source(struct isp1301 *isp) in enable_vbus_source()
126 static inline void notresponding(struct isp1301 *isp) in notresponding()
139 isp1301_get_u8(struct isp1301 *isp, u8 reg) in isp1301_get_u8()
145 isp1301_get_u16(struct isp1301 *isp, u8 reg) in isp1301_get_u16()
151 isp1301_set_bits(struct isp1301 *isp, u8 reg, u8 bits) in isp1301_set_bits()
157 isp1301_clear_bits(struct isp1301 *isp, u8 reg, u8 bits) in isp1301_clear_bits()
222 static inline const char *state_name(struct isp1301 *isp) in state_name()
229 /* NOTE: some of this ISP1301 setup is specific to H2 boards;
233 * ALSO: this currently doesn't use ISP1301 low-power modes
237 static void power_down(struct isp1301 *isp) in power_down()
248 static void __maybe_unused power_up(struct isp1301 *isp) in power_up()
261 static int host_suspend(struct isp1301 *isp) in host_suspend()
279 static int host_resume(struct isp1301 *isp) in host_resume()
294 static int gadget_suspend(struct isp1301 *isp) in gadget_suspend()
311 static void isp1301_defer_work(struct isp1301 *isp, int work) in isp1301_defer_work()
325 static void a_idle(struct isp1301 *isp, const char *tag) in a_idle()
349 static void b_idle(struct isp1301 *isp, const char *tag) in b_idle()
373 dump_regs(struct isp1301 *isp, const char *label) in dump_regs()
392 * We translate isp1301 outputs (mostly voltage comparator status) into
394 * flags into isp1301 inputs ... and infer state transitions.
399 static void check_state(struct isp1301 *isp, const char *tag) in check_state()
473 static inline void check_state(struct isp1301 *isp, const char *tag) { } in check_state()
478 static void update_otg1(struct isp1301 *isp, u8 int_src) in update_otg1()
513 static void update_otg2(struct isp1301 *isp, u8 otg_status) in update_otg2()
527 /* inputs going to ISP1301 */
528 static void otg_update_isp(struct isp1301 *isp) in otg_update_isp()
637 dump_regs(isp, "otg->isp1301"); in otg_update_isp()
645 struct isp1301 *isp = _isp; in omap_otg_irq()
648 /* update ISP1301 transceiver from OTG controller */ in omap_otg_irq()
810 static int isp1301_otg_init(struct isp1301 *isp) in isp1301_otg_init()
872 static int otg_bind(struct isp1301 *isp) in otg_bind()
894 static void otg_unbind(struct isp1301 *isp) in otg_unbind()
909 static void b_peripheral(struct isp1301 *isp) in b_peripheral()
932 static void isp_update_otg(struct isp1301 *isp, u8 stat) in isp_update_otg()
1065 /* update the OTG controller state to match the isp1301; may in isp_update_otg()
1066 * trigger OPRT_CHG irqs for changes going to the isp1301. in isp_update_otg()
1073 dump_regs(isp, "isp1301->otg"); in isp_update_otg()
1078 static u8 isp1301_clear_latch(struct isp1301 *isp) in isp1301_clear_latch()
1088 struct isp1301 *isp = container_of(work, struct isp1301, work); in isp1301_work()
1097 /* transfer state from otg engine to isp1301 */ in isp1301_work()
1103 /* transfer state from isp1301 to otg engine */ in isp1301_work()
1175 struct isp1301 *isp = from_timer(isp, t, timer); in isp1301_timer()
1184 struct isp1301 *isp; in isp1301_release()
1197 static struct isp1301 *the_transceiver;
1201 struct isp1301 *isp; in isp1301_remove()
1233 * As a rule, you won't have an isp1301 chip unless it's there to
1241 static int isp1301_otg_enable(struct isp1301 *isp) in isp1301_otg_enable()
1265 struct isp1301 *isp = container_of(otg->usb_phy, struct isp1301, phy); in isp1301_set_host()
1321 struct isp1301 *isp = container_of(otg->usb_phy, struct isp1301, phy); in isp1301_set_peripheral()
1401 struct isp1301 *isp = container_of(otg->usb_phy, struct isp1301, phy); in isp1301_start_srp()
1428 struct isp1301 *isp = container_of(otg->usb_phy, struct isp1301, phy); in isp1301_start_hnp()
1482 struct isp1301 *isp; in isp1301_probe()
1511 dev_dbg(&i2c->dev, "not isp1301, %d\n", status); in isp1301_probe()
1554 if (gpio_request(2, "isp1301") == 0) in isp1301_probe()