Skip to content

Commit

Permalink
wlcore/wl12xx: move top initialization to wl12xx
Browse files Browse the repository at this point in the history
The top registers initialization is very specific to the actual
hardware used, even the way in which we read from and write to the top
registers varies from chip to chip.  This patch moves all top
registers initialization to wl12xx.  Also add a boot op for the wlcore
module to call at the right time and a few callbacks with the common
called to be called from the lower drivers boot operations.

Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Luciano Coelho committed Apr 12, 2012
1 parent 4ded91c commit dd5512e
Show file tree
Hide file tree
Showing 8 changed files with 425 additions and 448 deletions.
399 changes: 395 additions & 4 deletions drivers/net/wireless/ti/wl12xx/main.c

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions drivers/net/wireless/ti/wl12xx/reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -428,16 +428,6 @@ b12-b0 - Supported Rate indicator bits as defined below.
#define OCP_REG_CLK_POLARITY 0x0cb2
#define OCP_REG_CLK_PULL 0x0cb4

#define WL127X_REG_FUSE_DATA_2_1 0x050a
#define WL128X_REG_FUSE_DATA_2_1 0x2152
#define PG_VER_MASK 0x3c
#define PG_VER_OFFSET 2

#define PG_MAJOR_VER_MASK 0x3
#define PG_MAJOR_VER_OFFSET 0x0
#define PG_MINOR_VER_MASK 0xc
#define PG_MINOR_VER_OFFSET 0x2

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

Expand Down
Loading

0 comments on commit dd5512e

Please sign in to comment.