regs-usb.h 955 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * arch/arm/mach-w90x900/include/mach/regs-usb.h
  3. *
  4. * Copyright (c) 2008 Nuvoton technology corporation.
  5. *
  6. * Wan ZongShun <mcuos.com@gmail.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation;version 2 of the License.
  11. *
  12. */
  13. #ifndef __ASM_ARCH_REGS_USB_H
  14. #define __ASM_ARCH_REGS_USB_H
  15. /* usb Control Registers */
  16. #define USBH_BA W90X900_VA_USBEHCIHOST
  17. #define USBD_BA W90X900_VA_USBDEV
  18. #define USBO_BA W90X900_VA_USBOHCIHOST
  19. /* USB Host Control Registers */
  20. #define REG_UPSCR0 (USBH_BA+0x064)
  21. #define REG_UPSCR1 (USBH_BA+0x068)
  22. #define REG_USBPCR0 (USBH_BA+0x0C4)
  23. #define REG_USBPCR1 (USBH_BA+0x0C8)
  24. /* USBH OHCI Control Registers */
  25. #define REG_OpModEn (USBO_BA+0x204)
  26. /*This bit controls the polarity of over
  27. *current flag from external power IC.
  28. */
  29. #define OCALow 0x08
  30. #endif /* __ASM_ARCH_REGS_USB_H */