]> git.karo-electronics.de Git - linux-beck.git/commit
usb: musb: Make busctl_offset an io-op rather then a define
authorHans de Goede <hdegoede@redhat.com>
Fri, 20 Mar 2015 19:11:12 +0000 (20:11 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 May 2015 15:46:54 +0000 (10:46 -0500)
commit6cc2af6d50204e8a1034ecd162378ceea22b09e8
treeda62fadb96bb790ebbdc9ce0b1fbe7fbcaf4a2f3
parent0cb74b3dc45a5448161eb481d4709cdda2a889fd
usb: musb: Make busctl_offset an io-op rather then a define

The Allwinner (sunxi) implementation of the musb has its busctl registers
indexed by the MUSB_INDEX register rather then in a flat address space.

This commit turns MUSB_BUSCTL_OFFSET from a macro into an io-op which can
be overridden from the platform ops.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_host.c
drivers/usb/musb/musb_io.h
drivers/usb/musb/musb_regs.h