34 #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_SOC_OMAP3430)
38 #ifndef CONFIG_BLACKFIN
40 #define MUSB_HSDMA_BASE 0x200
41 #define MUSB_HSDMA_INTR (MUSB_HSDMA_BASE + 0)
42 #define MUSB_HSDMA_CONTROL 0x4
43 #define MUSB_HSDMA_ADDRESS 0x8
44 #define MUSB_HSDMA_COUNT 0xc
46 #define MUSB_HSDMA_CHANNEL_OFFSET(_bchannel, _offset) \
47 (MUSB_HSDMA_BASE + (_bchannel << 4) + _offset)
49 #define musb_read_hsdma_addr(mbase, bchannel) \
51 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_ADDRESS))
53 #define musb_write_hsdma_addr(mbase, bchannel, addr) \
55 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_ADDRESS), \
58 #define musb_read_hsdma_count(mbase, bchannel) \
60 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_COUNT))
62 #define musb_write_hsdma_count(mbase, bchannel, len) \
64 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_COUNT), \
68 #define MUSB_HSDMA_BASE 0x400
69 #define MUSB_HSDMA_INTR (MUSB_HSDMA_BASE + 0)
70 #define MUSB_HSDMA_CONTROL 0x04
71 #define MUSB_HSDMA_ADDR_LOW 0x08
72 #define MUSB_HSDMA_ADDR_HIGH 0x0C
73 #define MUSB_HSDMA_COUNT_LOW 0x10
74 #define MUSB_HSDMA_COUNT_HIGH 0x14
76 #define MUSB_HSDMA_CHANNEL_OFFSET(_bchannel, _offset) \
77 (MUSB_HSDMA_BASE + (_bchannel * 0x20) + _offset)
86 addr |= musb_readw(mbase,
110 count |= musb_readw(mbase,
117 u8 bchannel,
u32 len)
129 #define MUSB_HSDMA_ENABLE_SHIFT 0
130 #define MUSB_HSDMA_TRANSMIT_SHIFT 1
131 #define MUSB_HSDMA_MODE1_SHIFT 2
132 #define MUSB_HSDMA_IRQENABLE_SHIFT 3
133 #define MUSB_HSDMA_ENDPOINT_SHIFT 4
134 #define MUSB_HSDMA_BUSERROR_SHIFT 8
135 #define MUSB_HSDMA_BURSTMODE_SHIFT 9
136 #define MUSB_HSDMA_BURSTMODE (3 << MUSB_HSDMA_BURSTMODE_SHIFT)
137 #define MUSB_HSDMA_BURSTMODE_UNSPEC 0
138 #define MUSB_HSDMA_BURSTMODE_INCR4 1
139 #define MUSB_HSDMA_BURSTMODE_INCR8 2
140 #define MUSB_HSDMA_BURSTMODE_INCR16 3
142 #define MUSB_HSDMA_CHANNELS 8