mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-06 05:44:20 +08:00
rt2800: initialize BBP_R106 on all subroutines (except 5592)
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl> Acked-by: Helmut Schaa <helmut.schaa@googlemail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
49d611186a
commit
f867085ede
@ -3983,6 +3983,8 @@ static void rt2800_init_bbp_305x_soc(struct rt2x00_dev *rt2x00dev)
|
||||
rt2800_bbp_write(rt2x00dev, 103, 0xc0);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 105, 0x01);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x35);
|
||||
}
|
||||
|
||||
static void rt2800_init_bbp_28xx(struct rt2x00_dev *rt2x00dev)
|
||||
@ -4020,6 +4022,8 @@ static void rt2800_init_bbp_28xx(struct rt2x00_dev *rt2x00dev)
|
||||
rt2800_bbp_write(rt2x00dev, 103, 0x00);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 105, 0x05);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x35);
|
||||
}
|
||||
|
||||
static void rt2800_init_bbp_30xx(struct rt2x00_dev *rt2x00dev)
|
||||
@ -4056,6 +4060,8 @@ static void rt2800_init_bbp_30xx(struct rt2x00_dev *rt2x00dev)
|
||||
rt2800_bbp_write(rt2x00dev, 103, 0x00);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 105, 0x05);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x35);
|
||||
}
|
||||
|
||||
static void rt2800_init_bbp_3290(struct rt2x00_dev *rt2x00dev)
|
||||
@ -4100,6 +4106,8 @@ static void rt2800_init_bbp_3290(struct rt2x00_dev *rt2x00dev)
|
||||
rt2800_bbp_write(rt2x00dev, 104, 0x92);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 105, 0x1c);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x03);
|
||||
}
|
||||
|
||||
static void rt2800_init_bbp_3352(struct rt2x00_dev *rt2x00dev)
|
||||
@ -4148,6 +4156,8 @@ static void rt2800_init_bbp_3352(struct rt2x00_dev *rt2x00dev)
|
||||
rt2800_bbp_write(rt2x00dev, 104, 0x92);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 105, 0x34);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x05);
|
||||
}
|
||||
|
||||
static void rt2800_init_bbp_3390(struct rt2x00_dev *rt2x00dev)
|
||||
@ -4182,6 +4192,8 @@ static void rt2800_init_bbp_3390(struct rt2x00_dev *rt2x00dev)
|
||||
rt2800_bbp_write(rt2x00dev, 103, 0x00);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 105, 0x05);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x35);
|
||||
}
|
||||
|
||||
static void rt2800_init_bbp_3572(struct rt2x00_dev *rt2x00dev)
|
||||
@ -4215,6 +4227,8 @@ static void rt2800_init_bbp_3572(struct rt2x00_dev *rt2x00dev)
|
||||
rt2800_bbp_write(rt2x00dev, 103, 0xc0);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 105, 0x05);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x35);
|
||||
}
|
||||
|
||||
static void rt2800_init_bbp_53xx(struct rt2x00_dev *rt2x00dev)
|
||||
@ -4266,6 +4280,13 @@ static void rt2800_init_bbp_53xx(struct rt2x00_dev *rt2x00dev)
|
||||
rt2800_bbp_write(rt2x00dev, 104, 0x92);
|
||||
|
||||
rt2800_bbp_write(rt2x00dev, 105, 0x3c);
|
||||
|
||||
if (rt2x00_rt(rt2x00dev, RT5390))
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x03);
|
||||
else if (rt2x00_rt(rt2x00dev, RT5392))
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x12);
|
||||
else
|
||||
WARN_ON(1);
|
||||
}
|
||||
|
||||
static void rt2800_init_bbp_5592(struct rt2x00_dev *rt2x00dev)
|
||||
@ -4384,16 +4405,6 @@ static void rt2800_init_bbp(struct rt2x00_dev *rt2x00dev)
|
||||
return;
|
||||
}
|
||||
|
||||
if (rt2x00_rt(rt2x00dev, RT3290) ||
|
||||
rt2x00_rt(rt2x00dev, RT5390))
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x03);
|
||||
else if (rt2x00_rt(rt2x00dev, RT3352))
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x05);
|
||||
else if (rt2x00_rt(rt2x00dev, RT5392))
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x12);
|
||||
else
|
||||
rt2800_bbp_write(rt2x00dev, 106, 0x35);
|
||||
|
||||
if (rt2x00_rt(rt2x00dev, RT3352))
|
||||
rt2800_bbp_write(rt2x00dev, 120, 0x50);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user