Stefan Roese | 326c971 | 2005-08-01 16:41:48 +0200 | [diff] [blame] | 1 | #include <config.h> |
| 2 | |
| 3 | /*Common Registers*/ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 4 | #define USB2D0_INTRIN_16 (CONFIG_SYS_USB_DEVICE | 0x100) |
| 5 | #define USB2D0_POWER_8 (CONFIG_SYS_USB_DEVICE | 0x102) |
| 6 | #define USB2D0_FADDR_8 (CONFIG_SYS_USB_DEVICE | 0x103) |
| 7 | #define USB2D0_INTRINE_16 (CONFIG_SYS_USB_DEVICE | 0x104) |
| 8 | #define USB2D0_INTROUT_16 (CONFIG_SYS_USB_DEVICE | 0x106) |
| 9 | #define USB2D0_INTRUSBE_8 (CONFIG_SYS_USB_DEVICE | 0x108) |
| 10 | #define USB2D0_INTRUSB_8 (CONFIG_SYS_USB_DEVICE | 0x109) |
| 11 | #define USB2D0_INTROUTE_16 (CONFIG_SYS_USB_DEVICE | 0x10a) |
| 12 | #define USB2D0_TSTMODE_8 (CONFIG_SYS_USB_DEVICE | 0x10c) |
| 13 | #define USB2D0_INDEX_8 (CONFIG_SYS_USB_DEVICE | 0x10d) |
| 14 | #define USB2D0_FRAME_16 (CONFIG_SYS_USB_DEVICE | 0x10e) |
Stefan Roese | 326c971 | 2005-08-01 16:41:48 +0200 | [diff] [blame] | 15 | |
| 16 | /*Indexed Registers*/ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 17 | #define USB2D0_INCSR0_8 (CONFIG_SYS_USB_DEVICE | 0x110) |
| 18 | #define USB2D0_INCSR_16 (CONFIG_SYS_USB_DEVICE | 0x110) |
| 19 | #define USB2D0_INMAXP_16 (CONFIG_SYS_USB_DEVICE | 0x112) |
| 20 | #define USB2D0_OUTCSR_16 (CONFIG_SYS_USB_DEVICE | 0x114) |
| 21 | #define USB2D0_OUTMAXP_16 (CONFIG_SYS_USB_DEVICE | 0x116) |
| 22 | #define USB2D0_OUTCOUNT0_8 (CONFIG_SYS_USB_DEVICE | 0x11a) |
| 23 | #define USB2D0_OUTCOUNT_16 (CONFIG_SYS_USB_DEVICE | 0x11a) |
Stefan Roese | 326c971 | 2005-08-01 16:41:48 +0200 | [diff] [blame] | 24 | |
| 25 | /*FIFOs*/ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 26 | #define USB2D0_FIFO_0 (CONFIG_SYS_USB_DEVICE | 0x120) |
| 27 | #define USB2D0_FIFO_1 (CONFIG_SYS_USB_DEVICE | 0x124) |
| 28 | #define USB2D0_FIFO_2 (CONFIG_SYS_USB_DEVICE | 0x128) |
| 29 | #define USB2D0_FIFO_3 (CONFIG_SYS_USB_DEVICE | 0x12c) |
Stefan Roese | 326c971 | 2005-08-01 16:41:48 +0200 | [diff] [blame] | 30 | |
| 31 | void usb_dev_init(void); |