usb.h 636 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * fixme correct answer depends on hmc_mode,
  4. * as does (on omap1) any nonzero value for config->otg port number
  5. */
  6. #include <linux/platform_data/usb-omap1.h>
  7. #include <linux/soc/ti/omap1-usb.h>
  8. #if IS_ENABLED(CONFIG_USB_OMAP)
  9. #define is_usb0_device(config) 1
  10. #else
  11. #define is_usb0_device(config) 0
  12. #endif
  13. #if IS_ENABLED(CONFIG_USB_SUPPORT)
  14. void omap1_usb_init(struct omap_usb_config *pdata);
  15. #else
  16. static inline void omap1_usb_init(struct omap_usb_config *pdata)
  17. {
  18. }
  19. #endif
  20. #define OMAP1_OHCI_BASE 0xfffba000
  21. #define OMAP2_OHCI_BASE 0x4805e000
  22. #define OMAP_OHCI_BASE OMAP1_OHCI_BASE