hw_usbOtg_OMAPL138.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /**
  2. * \file hw_usbOtg_OMAPL138.h
  3. *
  4. * \brief This file contains the offset of USB OTG registers
  5. */
  6. /*
  7. * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
  8. */
  9. /*
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. *
  14. * Redistributions of source code must retain the above copyright
  15. * notice, this list of conditions and the following disclaimer.
  16. *
  17. * Redistributions in binary form must reproduce the above copyright
  18. * notice, this list of conditions and the following disclaimer in the
  19. * documentation and/or other materials provided with the
  20. * distribution.
  21. *
  22. * Neither the name of Texas Instruments Incorporated nor the names of
  23. * its contributors may be used to endorse or promote products derived
  24. * from this software without specific prior written permission.
  25. *
  26. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  31. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  32. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  33. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  34. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  35. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  36. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  37. *
  38. */
  39. #ifndef __HW_USBOTG_H__
  40. #define __HW_USBOTG_H__
  41. /* If building with a C++ compiler, make all of the definitions in this header
  42. * have a C binding. */
  43. #ifdef __cplusplus
  44. extern "C"
  45. {
  46. #endif
  47. /* The following are defines for the Univeral Serial Bus OTG register offsets. */
  48. #define USB_0_OTGBASE SOC_USB_0_OTG_BASE
  49. #define USB_0_REVISION 0x00
  50. #define USB_0_CTRL 0x04
  51. #define USB_0_STAT 0x08
  52. #define USB_0_EMULATION 0x08
  53. #define USB_0_MODE 0x10
  54. #define USB_0_AUTOREQ 0x14
  55. #define USB_0_SRP_FIX_TIME 0x18
  56. #define USB_0_TEARDOWN 0x1c
  57. #define USB_0_INTR_SRC 0x20
  58. #define USB_0_INTR_SRC_SET 0x24
  59. #define USB_0_INTR_SRC_CLEAR 0x28
  60. #define USB_0_INTR_MASK 0x2c
  61. #define USB_0_INTR_MASK_SET 0x30
  62. #define USB_0_INTR_MASK_CLEAR 0x34
  63. #define USB_0_INTR_SRC_MASKED 0x38
  64. #define USB_0_END_OF_INTR 0x3c
  65. #define USB_0_GEN_RNDIS_SIZE_EP1 0x50
  66. #define USB_0_GEN_RNDIS_SIZE_EP2 0x54
  67. #define USB_0_GEN_RNDIS_SIZE_EP3 0x58
  68. #define USB_0_GEN_RNDIS_SIZE_EP4 0x5C
  69. #define USB_0_GENR_INTR 0x22
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73. #endif /* __HW_USBOTG_H__ */