diff options
author | Bryan Wu <cooloney@kernel.org> | 2008-12-02 14:33:48 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 13:00:07 -0500 |
commit | c6cf8b003e5a37f8193c2883876c5942adcd7284 (patch) | |
tree | c0ce285fb7a70dfd149ecfc325ad4c468ea0bbbc /drivers/usb/musb/musb_host.c | |
parent | 6995eb68aab70e79eedb710d7d6d1f22d8aea4a7 (diff) |
USB: musb: add Blackfin specific configuration to MUSB
Some config registers are not avaiable in Blackfin, we have to comment them out.
v1-v2:
- remove Blackfin specific header file
- add Blackfin register version to musb_regs.h header file
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_host.c')
-rw-r--r-- | drivers/usb/musb/musb_host.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index bf25ef4cc151..99fa61234876 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c | |||
@@ -596,12 +596,10 @@ musb_rx_reinit(struct musb *musb, struct musb_qh *qh, struct musb_hw_ep *ep) | |||
596 | 596 | ||
597 | /* target addr and (for multipoint) hub addr/port */ | 597 | /* target addr and (for multipoint) hub addr/port */ |
598 | if (musb->is_multipoint) { | 598 | if (musb->is_multipoint) { |
599 | musb_writeb(ep->target_regs, MUSB_RXFUNCADDR, | 599 | musb_write_rxfunaddr(ep->target_regs, qh->addr_reg); |
600 | qh->addr_reg); | 600 | musb_write_rxhubaddr(ep->target_regs, qh->h_addr_reg); |
601 | musb_writeb(ep->target_regs, MUSB_RXHUBADDR, | 601 | musb_write_rxhubport(ep->target_regs, qh->h_port_reg); |
602 | qh->h_addr_reg); | 602 | |
603 | musb_writeb(ep->target_regs, MUSB_RXHUBPORT, | ||
604 | qh->h_port_reg); | ||
605 | } else | 603 | } else |
606 | musb_writeb(musb->mregs, MUSB_FADDR, qh->addr_reg); | 604 | musb_writeb(musb->mregs, MUSB_FADDR, qh->addr_reg); |
607 | 605 | ||
@@ -715,15 +713,9 @@ static void musb_ep_program(struct musb *musb, u8 epnum, | |||
715 | 713 | ||
716 | /* target addr and (for multipoint) hub addr/port */ | 714 | /* target addr and (for multipoint) hub addr/port */ |
717 | if (musb->is_multipoint) { | 715 | if (musb->is_multipoint) { |
718 | musb_writeb(mbase, | 716 | musb_write_txfunaddr(mbase, epnum, qh->addr_reg); |
719 | MUSB_BUSCTL_OFFSET(epnum, MUSB_TXFUNCADDR), | 717 | musb_write_txhubaddr(mbase, epnum, qh->h_addr_reg); |
720 | qh->addr_reg); | 718 | musb_write_txhubport(mbase, epnum, qh->h_port_reg); |
721 | musb_writeb(mbase, | ||
722 | MUSB_BUSCTL_OFFSET(epnum, MUSB_TXHUBADDR), | ||
723 | qh->h_addr_reg); | ||
724 | musb_writeb(mbase, | ||
725 | MUSB_BUSCTL_OFFSET(epnum, MUSB_TXHUBPORT), | ||
726 | qh->h_port_reg); | ||
727 | /* FIXME if !epnum, do the same for RX ... */ | 719 | /* FIXME if !epnum, do the same for RX ... */ |
728 | } else | 720 | } else |
729 | musb_writeb(mbase, MUSB_FADDR, qh->addr_reg); | 721 | musb_writeb(mbase, MUSB_FADDR, qh->addr_reg); |