diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2010-04-26 07:48:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-26 14:21:24 -0400 |
commit | 23812383c6b03afef44c4aa642500f8235c3d079 (patch) | |
tree | e943aee9fb2aea860afda138da239e4ab4f46845 /drivers/net/wireless/rt2x00/rt2800lib.c | |
parent | 0bdab171ec04ea9d26a40608f69350c8c9e4872c (diff) |
rt2x00: rt2800lib: Fix rx path on SoC devices
Restore the rfcsr initialization for RT305x SoC devices which was removed
by "rt2x00: Finish rt3070 support in rt2800 register initialization.".
This fixes the rx path on SoC devices.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800lib.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 2b9be79fc77f..adb690174d1d 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -1707,7 +1707,8 @@ int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev) | |||
1707 | if (!rt2x00_rt(rt2x00dev, RT3070) && | 1707 | if (!rt2x00_rt(rt2x00dev, RT3070) && |
1708 | !rt2x00_rt(rt2x00dev, RT3071) && | 1708 | !rt2x00_rt(rt2x00dev, RT3071) && |
1709 | !rt2x00_rt(rt2x00dev, RT3090) && | 1709 | !rt2x00_rt(rt2x00dev, RT3090) && |
1710 | !rt2x00_rt(rt2x00dev, RT3390)) | 1710 | !rt2x00_rt(rt2x00dev, RT3390) && |
1711 | !(rt2x00_is_soc(rt2x00dev) && rt2x00_rt(rt2x00dev, RT2872))) | ||
1711 | return 0; | 1712 | return 0; |
1712 | 1713 | ||
1713 | /* | 1714 | /* |
@@ -1775,6 +1776,37 @@ int rt2800_init_rfcsr(struct rt2x00_dev *rt2x00dev) | |||
1775 | rt2800_rfcsr_write(rt2x00dev, 29, 0x8f); | 1776 | rt2800_rfcsr_write(rt2x00dev, 29, 0x8f); |
1776 | rt2800_rfcsr_write(rt2x00dev, 30, 0x20); | 1777 | rt2800_rfcsr_write(rt2x00dev, 30, 0x20); |
1777 | rt2800_rfcsr_write(rt2x00dev, 31, 0x0f); | 1778 | rt2800_rfcsr_write(rt2x00dev, 31, 0x0f); |
1779 | } else if (rt2x00_rt(rt2x00dev, RT2872)) { | ||
1780 | rt2800_rfcsr_write(rt2x00dev, 0, 0x50); | ||
1781 | rt2800_rfcsr_write(rt2x00dev, 1, 0x01); | ||
1782 | rt2800_rfcsr_write(rt2x00dev, 2, 0xf7); | ||
1783 | rt2800_rfcsr_write(rt2x00dev, 3, 0x75); | ||
1784 | rt2800_rfcsr_write(rt2x00dev, 4, 0x40); | ||
1785 | rt2800_rfcsr_write(rt2x00dev, 5, 0x03); | ||
1786 | rt2800_rfcsr_write(rt2x00dev, 6, 0x02); | ||
1787 | rt2800_rfcsr_write(rt2x00dev, 7, 0x50); | ||
1788 | rt2800_rfcsr_write(rt2x00dev, 8, 0x39); | ||
1789 | rt2800_rfcsr_write(rt2x00dev, 9, 0x0f); | ||
1790 | rt2800_rfcsr_write(rt2x00dev, 10, 0x60); | ||
1791 | rt2800_rfcsr_write(rt2x00dev, 11, 0x21); | ||
1792 | rt2800_rfcsr_write(rt2x00dev, 12, 0x75); | ||
1793 | rt2800_rfcsr_write(rt2x00dev, 13, 0x75); | ||
1794 | rt2800_rfcsr_write(rt2x00dev, 14, 0x90); | ||
1795 | rt2800_rfcsr_write(rt2x00dev, 15, 0x58); | ||
1796 | rt2800_rfcsr_write(rt2x00dev, 16, 0xb3); | ||
1797 | rt2800_rfcsr_write(rt2x00dev, 17, 0x92); | ||
1798 | rt2800_rfcsr_write(rt2x00dev, 18, 0x2c); | ||
1799 | rt2800_rfcsr_write(rt2x00dev, 19, 0x02); | ||
1800 | rt2800_rfcsr_write(rt2x00dev, 20, 0xba); | ||
1801 | rt2800_rfcsr_write(rt2x00dev, 21, 0xdb); | ||
1802 | rt2800_rfcsr_write(rt2x00dev, 22, 0x00); | ||
1803 | rt2800_rfcsr_write(rt2x00dev, 23, 0x31); | ||
1804 | rt2800_rfcsr_write(rt2x00dev, 24, 0x08); | ||
1805 | rt2800_rfcsr_write(rt2x00dev, 25, 0x01); | ||
1806 | rt2800_rfcsr_write(rt2x00dev, 26, 0x25); | ||
1807 | rt2800_rfcsr_write(rt2x00dev, 27, 0x23); | ||
1808 | rt2800_rfcsr_write(rt2x00dev, 28, 0x13); | ||
1809 | rt2800_rfcsr_write(rt2x00dev, 29, 0x83); | ||
1778 | } | 1810 | } |
1779 | 1811 | ||
1780 | if (rt2x00_rt_rev_lt(rt2x00dev, RT3070, REV_RT3070F)) { | 1812 | if (rt2x00_rt_rev_lt(rt2x00dev, RT3070, REV_RT3070F)) { |