driver: usb_dw: Move base address and irq num of usb to soc.h

base adrress and irq number moved to soc.h

Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
This commit is contained in:
Savinay Dharmappa 2018-02-01 16:04:18 +05:30 committed by Anas Nashif
commit 98d6a9928c
2 changed files with 7 additions and 7 deletions

View file

@ -80,6 +80,13 @@
#endif /* CONFIG_SPI_DW */ #endif /* CONFIG_SPI_DW */
#ifdef CONFIG_USB_DW
#define USB_DW_BASE QM_USB_0_BASE
#define USB_DW_IRQ QM_IRQ_USB_0_INT
#endif
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#ifdef CONFIG_ARC_INIT #ifdef CONFIG_ARC_INIT

View file

@ -197,13 +197,6 @@ struct usb_dw_reg {
#define USB_DW_CORE_RST_TIMEOUT_US 10000 #define USB_DW_CORE_RST_TIMEOUT_US 10000
#define USB_DW_PLL_TIMEOUT_US 100 #define USB_DW_PLL_TIMEOUT_US 100
#if defined(CONFIG_SOC_QUARK_SE_C1000)
#define USB_DW_BASE QM_USB_0_BASE
#define USB_DW_IRQ QM_IRQ_USB_0_INT
#else
#error "Unsupported board"
#endif
#define USB_DW_EP_FIFO(ep) (*(u32_t *)(USB_DW_BASE + 0x1000 * (ep + 1))) #define USB_DW_EP_FIFO(ep) (*(u32_t *)(USB_DW_BASE + 0x1000 * (ep + 1)))
/* USB register block base address */ /* USB register block base address */
#define USB_DW ((struct usb_dw_reg *)USB_DW_BASE) #define USB_DW ((struct usb_dw_reg *)USB_DW_BASE)