Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * fixme correct answer depends on hmc_mode,
0004  * as does (on omap1) any nonzero value for config->otg port number
0005  */
0006 #include <linux/platform_data/usb-omap1.h>
0007 #include <linux/soc/ti/omap1-usb.h>
0008 
0009 #if IS_ENABLED(CONFIG_USB_OMAP)
0010 #define is_usb0_device(config)  1
0011 #else
0012 #define is_usb0_device(config)  0
0013 #endif
0014 
0015 #if IS_ENABLED(CONFIG_USB_SUPPORT)
0016 void omap1_usb_init(struct omap_usb_config *pdata);
0017 #else
0018 static inline void omap1_usb_init(struct omap_usb_config *pdata)
0019 {
0020 }
0021 #endif
0022 
0023 #define OMAP1_OHCI_BASE         0xfffba000
0024 #define OMAP2_OHCI_BASE         0x4805e000
0025 #define OMAP_OHCI_BASE          OMAP1_OHCI_BASE