Skip to content

Commit 98d6a99

Browse files
SavinayDharmappaAnas Nashif
authored andcommitted
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 <[email protected]>
1 parent c1e395e commit 98d6a99

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

arch/x86/soc/intel_quark/quark_se/soc.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@
8080

8181
#endif /* CONFIG_SPI_DW */
8282

83+
#ifdef CONFIG_USB_DW
84+
85+
#define USB_DW_BASE QM_USB_0_BASE
86+
#define USB_DW_IRQ QM_IRQ_USB_0_INT
87+
88+
#endif
89+
8390
#endif /* _ASMLANGUAGE */
8491

8592
#ifdef CONFIG_ARC_INIT

drivers/usb/device/usb_dw_registers.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,6 @@ struct usb_dw_reg {
197197
#define USB_DW_CORE_RST_TIMEOUT_US 10000
198198
#define USB_DW_PLL_TIMEOUT_US 100
199199

200-
#if defined(CONFIG_SOC_QUARK_SE_C1000)
201-
#define USB_DW_BASE QM_USB_0_BASE
202-
#define USB_DW_IRQ QM_IRQ_USB_0_INT
203-
#else
204-
#error "Unsupported board"
205-
#endif
206-
207200
#define USB_DW_EP_FIFO(ep) (*(u32_t *)(USB_DW_BASE + 0x1000 * (ep + 1)))
208201
/* USB register block base address */
209202
#define USB_DW ((struct usb_dw_reg *)USB_DW_BASE)

0 commit comments

Comments
 (0)