|
@@ -210,6 +210,9 @@
|
|
|
#define DWC3_GHWPARAMS4_HIBER_SCRATCHBUFS(n) (((n) & (0x0f << 13)) >> 13)
|
|
|
#define DWC3_MAX_HIBER_SCRATCHBUFS 15
|
|
|
|
|
|
+/* Global HWPARAMS6 Register */
|
|
|
+#define DWC3_GHWPARAMS6_EN_FPGA (1 << 7)
|
|
|
+
|
|
|
/* Device Configuration Register */
|
|
|
#define DWC3_DCFG_DEVADDR(addr) ((addr) << 3)
|
|
|
#define DWC3_DCFG_DEVADDR_MASK DWC3_DCFG_DEVADDR(0x7f)
|
|
@@ -662,6 +665,7 @@ struct dwc3_scratchpad_array {
|
|
|
* @ep0_expect_in: true when we expect a DATA IN transfer
|
|
|
* @has_hibernation: true when dwc3 was configured with Hibernation
|
|
|
* @is_selfpowered: true when we are selfpowered
|
|
|
+ * @is_fpga: true when we are using the FPGA board
|
|
|
* @needs_fifo_resize: not all users might want fifo resizing, flag it
|
|
|
* @pullups_connected: true when Run/Stop bit is set
|
|
|
* @resize_fifos: tells us it's ok to reconfigure our TxFIFO sizes.
|
|
@@ -765,6 +769,7 @@ struct dwc3 {
|
|
|
unsigned ep0_expect_in:1;
|
|
|
unsigned has_hibernation:1;
|
|
|
unsigned is_selfpowered:1;
|
|
|
+ unsigned is_fpga:1;
|
|
|
unsigned needs_fifo_resize:1;
|
|
|
unsigned pullups_connected:1;
|
|
|
unsigned resize_fifos:1;
|