Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194120
b: refs/heads/master
c: 9d4e5bb
h: refs/heads/master
v: v3
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Mar 31, 2010
1 parent d7c915d commit 94e2a0c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9cea461fb0a37dae9ef0a83714c5fcdc4b2074c8
refs/heads/master: 9d4e5bb3dec8c4b9245035bf29628071801041a8
8 changes: 6 additions & 2 deletions trunk/drivers/net/wireless/wl12xx/wl1271_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,15 @@ int wl1271_boot(struct wl1271 *wl)

if (REF_CLOCK != 0) {
u16 val;
/* Set clock type */
/* Set clock type (open drain) */
val = wl1271_top_reg_read(wl, OCP_REG_CLK_TYPE);
val &= FREF_CLK_TYPE_BITS;
val |= CLK_REQ_PRCM;
wl1271_top_reg_write(wl, OCP_REG_CLK_TYPE, val);

/* Set clock pull mode (no pull) */
val = wl1271_top_reg_read(wl, OCP_REG_CLK_PULL);
val |= NO_PULL;
wl1271_top_reg_write(wl, OCP_REG_CLK_PULL, val);
} else {
u16 val;
/* Set clock polarity */
Expand Down
7 changes: 5 additions & 2 deletions trunk/drivers/net/wireless/wl12xx/wl1271_boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,13 @@ struct wl1271_static_data {
#define OCP_REG_POLARITY 0x0064
#define OCP_REG_CLK_TYPE 0x0448
#define OCP_REG_CLK_POLARITY 0x0cb2
#define OCP_REG_CLK_PULL 0x0cb4

#define CMD_MBOX_ADDRESS 0x407B4

#define POLARITY_LOW BIT(1)
#define CMD_MBOX_ADDRESS 0x407B4

#define POLARITY_LOW BIT(1)
#define NO_PULL (BIT(14) | BIT(15))

#define FREF_CLK_TYPE_BITS 0xfffffe7f
#define CLK_REQ_PRCM 0x100
Expand Down

0 comments on commit 94e2a0c

Please sign in to comment.