diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2015-02-23 18:39:54 +0530 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-04-14 05:48:09 +0200 |
commit | 9848e5740af12e1c81efb940d9503ebfb266d8de (patch) | |
tree | 126c6fbe816edac4d1e8be91a463815c4a45a803 /drivers/usb | |
parent | 9de1115de72106fb0e8dfbfe98f337a1c7a8dc11 (diff) | |
download | blackbird-obmc-uboot-9848e5740af12e1c81efb940d9503ebfb266d8de.tar.gz blackbird-obmc-uboot-9848e5740af12e1c81efb940d9503ebfb266d8de.zip |
usb: dwc3: fix dwc3 header files
Changed the header files included in core.h and io.h to the u-boot header
files so that these files can be included in other dwc3 source files and
be compiled in uboot. Also added otg.h which has the defines for dr_mode.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/dwc3/core.h | 13 | ||||
-rw-r--r-- | drivers/usb/dwc3/io.h | 4 |
2 files changed, 3 insertions, 14 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 09cec53714..a7a7082e52 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -18,20 +18,11 @@ #ifndef __DRIVERS_USB_DWC3_CORE_H #define __DRIVERS_USB_DWC3_CORE_H -#include <linux/device.h> -#include <linux/spinlock.h> #include <linux/ioport.h> -#include <linux/list.h> -#include <linux/dma-mapping.h> -#include <linux/mm.h> -#include <linux/debugfs.h> #include <linux/usb/ch9.h> -#include <linux/usb/gadget.h> #include <linux/usb/otg.h> -#include <linux/phy/phy.h> - #define DWC3_MSG_MAX 500 /* Global constants */ @@ -981,7 +972,7 @@ struct dwc3_gadget_ep_cmd_params { void dwc3_set_mode(struct dwc3 *dwc, u32 mode); int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc); -#if IS_ENABLED(CONFIG_USB_DWC3_HOST) || IS_ENABLED(CONFIG_USB_DWC3_DUAL_ROLE) +#ifdef CONFIG_USB_DWC3_HOST int dwc3_host_init(struct dwc3 *dwc); void dwc3_host_exit(struct dwc3 *dwc); #else @@ -991,7 +982,7 @@ static inline void dwc3_host_exit(struct dwc3 *dwc) { } #endif -#if IS_ENABLED(CONFIG_USB_DWC3_GADGET) || IS_ENABLED(CONFIG_USB_DWC3_DUAL_ROLE) +#ifdef CONFIG_USB_DWC3_GADGET int dwc3_gadget_init(struct dwc3 *dwc); void dwc3_gadget_exit(struct dwc3 *dwc); int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode); diff --git a/drivers/usb/dwc3/io.h b/drivers/usb/dwc3/io.h index f9f22b0ea4..b6da1352fb 100644 --- a/drivers/usb/dwc3/io.h +++ b/drivers/usb/dwc3/io.h @@ -18,9 +18,7 @@ #ifndef __DRIVERS_USB_DWC3_IO_H #define __DRIVERS_USB_DWC3_IO_H -#include <linux/io.h> -#include "debug.h" -#include "core.h" +#include <asm/io.h> static inline u32 dwc3_readl(void __iomem *base, u32 offset) { |