diff options
author | Kalle Valo <kvalo@adurom.com> | 2010-10-10 04:28:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-11 15:04:23 -0400 |
commit | 9bc6772e15d25f58c1be638031280e04514287d4 (patch) | |
tree | 4cff1bcbeb40698df1bbdff7c06cd3a089bcc205 /drivers/net/wireless/wl1251/spi.h | |
parent | f03ee1ec73d8cad07b0ef5ba6106a9fc4d179ecb (diff) |
wl1251: move to it's own directory
wl1271 driver is under heavy development but on the other hand the older
wl1251 driver is currently considered more as a legacy driver. To make it
easier to develop wl1271 features move wl1251 to it's own directory,
drivers/net/wireless/wl1251.
There are no functional changes, only moving of files. One regression
is that Kconfig won't be updated automatically and user needs to enable
wl1251 manually with an older config file.
Signed-off-by: Kalle Valo <kvalo@adurom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl1251/spi.h')
-rw-r--r-- | drivers/net/wireless/wl1251/spi.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl1251/spi.h b/drivers/net/wireless/wl1251/spi.h new file mode 100644 index 00000000000..16d506955cc --- /dev/null +++ b/drivers/net/wireless/wl1251/spi.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /* | ||
2 | * This file is part of wl1251 | ||
3 | * | ||
4 | * Copyright (c) 1998-2007 Texas Instruments Incorporated | ||
5 | * Copyright (C) 2008 Nokia Corporation | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or | ||
8 | * modify it under the terms of the GNU General Public License | ||
9 | * version 2 as published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, but | ||
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
19 | * 02110-1301 USA | ||
20 | * | ||
21 | */ | ||
22 | |||
23 | #ifndef __WL1251_SPI_H__ | ||
24 | #define __WL1251_SPI_H__ | ||
25 | |||
26 | #include "cmd.h" | ||
27 | #include "acx.h" | ||
28 | #include "reg.h" | ||
29 | |||
30 | #define WSPI_CMD_READ 0x40000000 | ||
31 | #define WSPI_CMD_WRITE 0x00000000 | ||
32 | #define WSPI_CMD_FIXED 0x20000000 | ||
33 | #define WSPI_CMD_BYTE_LENGTH 0x1FFE0000 | ||
34 | #define WSPI_CMD_BYTE_LENGTH_OFFSET 17 | ||
35 | #define WSPI_CMD_BYTE_ADDR 0x0001FFFF | ||
36 | |||
37 | #define WSPI_INIT_CMD_CRC_LEN 5 | ||
38 | |||
39 | #define WSPI_INIT_CMD_START 0x00 | ||
40 | #define WSPI_INIT_CMD_TX 0x40 | ||
41 | /* the extra bypass bit is sampled by the TNET as '1' */ | ||
42 | #define WSPI_INIT_CMD_BYPASS_BIT 0x80 | ||
43 | #define WSPI_INIT_CMD_FIXEDBUSY_LEN 0x07 | ||
44 | #define WSPI_INIT_CMD_EN_FIXEDBUSY 0x80 | ||
45 | #define WSPI_INIT_CMD_DIS_FIXEDBUSY 0x00 | ||
46 | #define WSPI_INIT_CMD_IOD 0x40 | ||
47 | #define WSPI_INIT_CMD_IP 0x20 | ||
48 | #define WSPI_INIT_CMD_CS 0x10 | ||
49 | #define WSPI_INIT_CMD_WS 0x08 | ||
50 | #define WSPI_INIT_CMD_WSPI 0x01 | ||
51 | #define WSPI_INIT_CMD_END 0x01 | ||
52 | |||
53 | #define WSPI_INIT_CMD_LEN 8 | ||
54 | |||
55 | #define HW_ACCESS_WSPI_FIXED_BUSY_LEN \ | ||
56 | ((WL1251_BUSY_WORD_LEN - 4) / sizeof(u32)) | ||
57 | #define HW_ACCESS_WSPI_INIT_CMD_MASK 0 | ||
58 | |||
59 | #endif /* __WL1251_SPI_H__ */ | ||