musb_regs.h (d834a9dcecae834cd6b2bc5e50e1907738d9cf6a) musb_regs.h (7c925546427a0428b84bc5ba1f28b3698e492072)
1/*
2 * MUSB OTG driver register defines
3 *
4 * Copyright 2005 Mentor Graphics Corporation
5 * Copyright (C) 2005-2006 by Texas Instruments
6 * Copyright (C) 2006-2007 Nokia Corporation
7 *
8 * This program is free software; you can redistribute it and/or

--- 220 unchanged lines hidden (view full) ---

229#define MUSB_INTRRXE 0x08
230#define MUSB_INTRUSB 0x0A /* 8 bit */
231#define MUSB_INTRUSBE 0x0B /* 8 bit */
232#define MUSB_FRAME 0x0C
233#define MUSB_INDEX 0x0E /* 8 bit */
234#define MUSB_TESTMODE 0x0F /* 8 bit */
235
236/* Get offset for a given FIFO from musb->mregs */
1/*
2 * MUSB OTG driver register defines
3 *
4 * Copyright 2005 Mentor Graphics Corporation
5 * Copyright (C) 2005-2006 by Texas Instruments
6 * Copyright (C) 2006-2007 Nokia Corporation
7 *
8 * This program is free software; you can redistribute it and/or

--- 220 unchanged lines hidden (view full) ---

229#define MUSB_INTRRXE 0x08
230#define MUSB_INTRUSB 0x0A /* 8 bit */
231#define MUSB_INTRUSBE 0x0B /* 8 bit */
232#define MUSB_FRAME 0x0C
233#define MUSB_INDEX 0x0E /* 8 bit */
234#define MUSB_TESTMODE 0x0F /* 8 bit */
235
236/* Get offset for a given FIFO from musb->mregs */
237#ifdef CONFIG_USB_TUSB6010
237#ifdef CONFIG_USB_MUSB_TUSB6010
238#define MUSB_FIFO_OFFSET(epnum) (0x200 + ((epnum) * 0x20))
239#else
240#define MUSB_FIFO_OFFSET(epnum) (0x20 + ((epnum) * 4))
241#endif
242
243/*
244 * Additional Control Registers
245 */

--- 44 unchanged lines hidden (view full) ---

290/* Offsets to endpoint registers in indexed model (using INDEX register) */
291#define MUSB_INDEXED_OFFSET(_epnum, _offset) \
292 (0x10 + (_offset))
293
294/* Offsets to endpoint registers in flat models */
295#define MUSB_FLAT_OFFSET(_epnum, _offset) \
296 (0x100 + (0x10*(_epnum)) + (_offset))
297
238#define MUSB_FIFO_OFFSET(epnum) (0x200 + ((epnum) * 0x20))
239#else
240#define MUSB_FIFO_OFFSET(epnum) (0x20 + ((epnum) * 4))
241#endif
242
243/*
244 * Additional Control Registers
245 */

--- 44 unchanged lines hidden (view full) ---

290/* Offsets to endpoint registers in indexed model (using INDEX register) */
291#define MUSB_INDEXED_OFFSET(_epnum, _offset) \
292 (0x10 + (_offset))
293
294/* Offsets to endpoint registers in flat models */
295#define MUSB_FLAT_OFFSET(_epnum, _offset) \
296 (0x100 + (0x10*(_epnum)) + (_offset))
297
298#ifdef CONFIG_USB_TUSB6010
298#ifdef CONFIG_USB_MUSB_TUSB6010
299/* TUSB6010 EP0 configuration register is special */
300#define MUSB_TUSB_OFFSET(_epnum, _offset) \
301 (0x10 + _offset)
302#include "tusb6010.h" /* Needed "only" for TUSB_EP0_CONF */
303#endif
304
305#define MUSB_TXCSR_MODE 0x2000
306

--- 321 unchanged lines hidden (view full) ---

628 return 0;
629}
630
631static inline u8 musb_read_txhubaddr(void __iomem *mbase, u8 epnum)
632{
633 return 0;
634}
635
299/* TUSB6010 EP0 configuration register is special */
300#define MUSB_TUSB_OFFSET(_epnum, _offset) \
301 (0x10 + _offset)
302#include "tusb6010.h" /* Needed "only" for TUSB_EP0_CONF */
303#endif
304
305#define MUSB_TXCSR_MODE 0x2000
306

--- 321 unchanged lines hidden (view full) ---

628 return 0;
629}
630
631static inline u8 musb_read_txhubaddr(void __iomem *mbase, u8 epnum)
632{
633 return 0;
634}
635
636static inline u8 musb_read_txhubport(void __iomem *mbase, u8 epnum)
636static inline void musb_read_txhubport(void __iomem *mbase, u8 epnum)
637{
637{
638 return 0;
639}
640
641#endif /* CONFIG_BLACKFIN */
642
643#endif /* __MUSB_REGS_H__ */
638}
639
640#endif /* CONFIG_BLACKFIN */
641
642#endif /* __MUSB_REGS_H__ */