rt2x00: Move all register definitions for rt2800 to rt2800.h.
There is no point on having them separated across 3 files. At the same time rename USB_CYC_CFG to its proper name US_CYC_CNT (as per the datasheet). Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
This commit is contained in:

committed by
Ivo van Doorn

parent
5ed8f4582a
commit
785c3c06fb
@@ -31,43 +31,6 @@
|
||||
#ifndef RT2800USB_H
|
||||
#define RT2800USB_H
|
||||
|
||||
/*
|
||||
* USB registers.
|
||||
*/
|
||||
|
||||
/*
|
||||
* USB_DMA_CFG
|
||||
* RX_BULK_AGG_TIMEOUT: Rx Bulk Aggregation TimeOut in unit of 33ns.
|
||||
* RX_BULK_AGG_LIMIT: Rx Bulk Aggregation Limit in unit of 256 bytes.
|
||||
* PHY_CLEAR: phy watch dog enable.
|
||||
* TX_CLEAR: Clear USB DMA TX path.
|
||||
* TXOP_HALT: Halt TXOP count down when TX buffer is full.
|
||||
* RX_BULK_AGG_EN: Enable Rx Bulk Aggregation.
|
||||
* RX_BULK_EN: Enable USB DMA Rx.
|
||||
* TX_BULK_EN: Enable USB DMA Tx.
|
||||
* EP_OUT_VALID: OUT endpoint data valid.
|
||||
* RX_BUSY: USB DMA RX FSM busy.
|
||||
* TX_BUSY: USB DMA TX FSM busy.
|
||||
*/
|
||||
#define USB_DMA_CFG 0x02a0
|
||||
#define USB_DMA_CFG_RX_BULK_AGG_TIMEOUT FIELD32(0x000000ff)
|
||||
#define USB_DMA_CFG_RX_BULK_AGG_LIMIT FIELD32(0x0000ff00)
|
||||
#define USB_DMA_CFG_PHY_CLEAR FIELD32(0x00010000)
|
||||
#define USB_DMA_CFG_TX_CLEAR FIELD32(0x00080000)
|
||||
#define USB_DMA_CFG_TXOP_HALT FIELD32(0x00100000)
|
||||
#define USB_DMA_CFG_RX_BULK_AGG_EN FIELD32(0x00200000)
|
||||
#define USB_DMA_CFG_RX_BULK_EN FIELD32(0x00400000)
|
||||
#define USB_DMA_CFG_TX_BULK_EN FIELD32(0x00800000)
|
||||
#define USB_DMA_CFG_EP_OUT_VALID FIELD32(0x3f000000)
|
||||
#define USB_DMA_CFG_RX_BUSY FIELD32(0x40000000)
|
||||
#define USB_DMA_CFG_TX_BUSY FIELD32(0x80000000)
|
||||
|
||||
/*
|
||||
* USB_CYC_CFG
|
||||
*/
|
||||
#define USB_CYC_CFG 0x02a4
|
||||
#define USB_CYC_CFG_CLOCK_CYCLE FIELD32(0x000000ff)
|
||||
|
||||
/*
|
||||
* 8051 firmware image.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user