Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
67093a65
Commit
67093a65
authored
Feb 01, 2006
by
Danny van Dyk
Committed by
John W. Linville
Mar 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Sync bcm43xx_phy_initb6() with specs
Signed-off-by:
John W. Linville
<
linville@tuxdriver.com
>
parent
8fa252d0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
drivers/net/wireless/bcm43xx/bcm43xx_phy.c
drivers/net/wireless/bcm43xx/bcm43xx_phy.c
+10
-5
drivers/net/wireless/bcm43xx/bcm43xx_radio.c
drivers/net/wireless/bcm43xx/bcm43xx_radio.c
+1
-1
drivers/net/wireless/bcm43xx/bcm43xx_radio.h
drivers/net/wireless/bcm43xx/bcm43xx_radio.h
+1
-0
No files found.
drivers/net/wireless/bcm43xx/bcm43xx_phy.c
View file @
67093a65
...
@@ -947,7 +947,7 @@ static void bcm43xx_phy_initb6(struct bcm43xx_private *bcm)
...
@@ -947,7 +947,7 @@ static void bcm43xx_phy_initb6(struct bcm43xx_private *bcm)
bcm43xx_radio_write16
(
bcm
,
0x0050
,
0x0020
);
bcm43xx_radio_write16
(
bcm
,
0x0050
,
0x0020
);
if
((
bcm
->
current_core
->
radio
->
manufact
==
0x17F
)
&&
if
((
bcm
->
current_core
->
radio
->
manufact
==
0x17F
)
&&
(
bcm
->
current_core
->
radio
->
version
==
0x2050
)
&&
(
bcm
->
current_core
->
radio
->
version
==
0x2050
)
&&
(
bcm
->
current_core
->
radio
->
revision
=
=
2
))
{
(
bcm
->
current_core
->
radio
->
revision
<
=
2
))
{
bcm43xx_radio_write16
(
bcm
,
0x0050
,
0x0020
);
bcm43xx_radio_write16
(
bcm
,
0x0050
,
0x0020
);
bcm43xx_radio_write16
(
bcm
,
0x005A
,
0x0070
);
bcm43xx_radio_write16
(
bcm
,
0x005A
,
0x0070
);
bcm43xx_radio_write16
(
bcm
,
0x005B
,
0x007B
);
bcm43xx_radio_write16
(
bcm
,
0x005B
,
0x007B
);
...
@@ -984,10 +984,15 @@ static void bcm43xx_phy_initb6(struct bcm43xx_private *bcm)
...
@@ -984,10 +984,15 @@ static void bcm43xx_phy_initb6(struct bcm43xx_private *bcm)
bcm43xx_write16
(
bcm
,
0x03E4
,
0x0009
);
bcm43xx_write16
(
bcm
,
0x03E4
,
0x0009
);
if
(
phy
->
type
==
BCM43xx_PHYTYPE_B
)
{
if
(
phy
->
type
==
BCM43xx_PHYTYPE_B
)
{
bcm43xx_write16
(
bcm
,
0x03E6
,
0x8140
);
bcm43xx_write16
(
bcm
,
0x03E6
,
0x8140
);
bcm43xx_phy_write
(
bcm
,
0x0016
,
0x5410
);
bcm43xx_phy_write
(
bcm
,
0x0016
,
0x0410
);
bcm43xx_phy_write
(
bcm
,
0x0017
,
0xA820
);
bcm43xx_phy_write
(
bcm
,
0x0017
,
0x0820
);
bcm43xx_phy_write
(
bcm
,
0x0007
,
0x0062
);
bcm43xx_phy_write
(
bcm
,
0x0062
,
0x0007
);
TODO
();
//TODO: calibrate stuff.
(
void
)
bcm43xx_radio_calibrationvalue
(
bcm
);
bcm43xx_phy_lo_b_measure
(
bcm
);
if
(
bcm
->
sprom
.
boardflags
&
BCM43xx_BFL_RSSI
)
{
bcm43xx_calc_nrssi_slope
(
bcm
);
bcm43xx_calc_nrssi_threshold
(
bcm
);
}
bcm43xx_phy_init_pctl
(
bcm
);
bcm43xx_phy_init_pctl
(
bcm
);
}
else
}
else
bcm43xx_write16
(
bcm
,
0x03E6
,
0x0
);
bcm43xx_write16
(
bcm
,
0x03E6
,
0x0
);
...
...
drivers/net/wireless/bcm43xx/bcm43xx_radio.c
View file @
67093a65
...
@@ -1184,7 +1184,7 @@ int bcm43xx_radio_set_interference_mitigation(struct bcm43xx_private *bcm,
...
@@ -1184,7 +1184,7 @@ int bcm43xx_radio_set_interference_mitigation(struct bcm43xx_private *bcm,
return
0
;
return
0
;
}
}
static
u16
bcm43xx_radio_calibrationvalue
(
struct
bcm43xx_private
*
bcm
)
u16
bcm43xx_radio_calibrationvalue
(
struct
bcm43xx_private
*
bcm
)
{
{
u16
reg
,
index
,
ret
;
u16
reg
,
index
,
ret
;
...
...
drivers/net/wireless/bcm43xx/bcm43xx_radio.h
View file @
67093a65
...
@@ -89,5 +89,6 @@ void bcm43xx_nrssi_hw_update(struct bcm43xx_private *bcm, u16 val);
...
@@ -89,5 +89,6 @@ void bcm43xx_nrssi_hw_update(struct bcm43xx_private *bcm, u16 val);
void
bcm43xx_nrssi_mem_update
(
struct
bcm43xx_private
*
bcm
);
void
bcm43xx_nrssi_mem_update
(
struct
bcm43xx_private
*
bcm
);
void
bcm43xx_radio_set_tx_iq
(
struct
bcm43xx_private
*
bcm
);
void
bcm43xx_radio_set_tx_iq
(
struct
bcm43xx_private
*
bcm
);
u16
bcm43xx_radio_calibrationvalue
(
struct
bcm43xx_private
*
bcm
);
#endif
/* BCM43xx_RADIO_H_ */
#endif
/* BCM43xx_RADIO_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment