On Mon, Dec 06, 2010 at 05:24:53PM +0530, Gupta, Ajay Kumar wrote:
On Fri, Dec 03, 2010 at 07:08:53PM +0530, Gupta, Ajay Kumar wrote:
>> >We already have generic APIs so I think we can pass function pointers
to
>> >musb driver via "struct omap_musb_board_data",
>> >
>> > struct omap_musb_board_data {
>> >+ void (*phy_on) (void)
>> >+ void (*phy_off) (void)
>> >+ void (*intr_clr) (void)
>> > }
>> >
>> >Reset part can be done in board file itself same as Ethernet driver is
>> doing.
>> >
>> >Does this look fine?
>>
>> so those would be "turn phy on", "turn phy off" and "clear interrupt"
>> apis ?
>>
>> How about:
>> int (*set_phy_power)(unsigned on);
>Looks good.
>
>> void (*clear_phy_irq)(void);
>This is actually musb ip interrupt clear so I will make it like,
>
>void (*clear_irq) (void);
Is AM35x that different ? Can't you just write to MUSB_INTRRX
MUSB_INTRTX and MUSB_INTRUSB ??
Writing to MUSB_INTRRX/TX/USB wouldn't help. We have to clear interrupt
Bit in control register INTR_LVL_CLR.
I see, thanks for the info :-)
--
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html