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
@@ -1620,9 +1620,9 @@ int rt2800_init_registers(struct rt2x00_dev *rt2x00dev)
|
||||
rt2800_register_write(rt2x00dev, HW_BEACON_BASE7, 0);
|
||||
|
||||
if (rt2x00_is_usb(rt2x00dev)) {
|
||||
rt2800_register_read(rt2x00dev, USB_CYC_CFG, ®);
|
||||
rt2x00_set_field32(®, USB_CYC_CFG_CLOCK_CYCLE, 30);
|
||||
rt2800_register_write(rt2x00dev, USB_CYC_CFG, reg);
|
||||
rt2800_register_read(rt2x00dev, US_CYC_CNT, ®);
|
||||
rt2x00_set_field32(®, US_CYC_CNT_CLOCK_CYCLE, 30);
|
||||
rt2800_register_write(rt2x00dev, US_CYC_CNT, reg);
|
||||
}
|
||||
|
||||
rt2800_register_read(rt2x00dev, HT_FBK_CFG0, ®);
|
||||
|
Reference in New Issue
Block a user