]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/staging/wilc1000/linux_wlan_common.h
staging: wilc1000: removes usused PRINT_XX(region...)
[karo-tx-linux.git] / drivers / staging / wilc1000 / linux_wlan_common.h
1 #ifndef LINUX_WLAN_COMMON_H
2 #define LINUX_WLAN_COMMON_H
3
4 #if defined(WILC_DEBUGFS)
5 #define DEBUG           BIT(0)
6 #define INFO            BIT(1)
7 #define WRN             BIT(2)
8 #define ERR             BIT(3)
9 #else
10 #define DEBUG       1
11 #define INFO        0
12 #define WRN         0
13 #endif
14
15 #define LINUX_RX_SIZE   (96 * 1024)
16 #define LINUX_TX_SIZE   (64 * 1024)
17
18
19 #define WILC_MULTICAST_TABLE_SIZE       8
20
21 #if defined(BEAGLE_BOARD)
22         #define SPI_CHANNEL     4
23
24         #if SPI_CHANNEL == 4
25                 #define MODALIAS        "wilc_spi4"
26                 #define GPIO_NUM        162
27         #else
28                 #define MODALIAS        "wilc_spi3"
29                 #define GPIO_NUM        133
30         #endif
31 #elif defined(PLAT_WMS8304)             /* rachel */
32         #define MODALIAS        "wilc_spi"
33         #define GPIO_NUM        139
34 #elif defined(PLAT_RKXXXX)
35  #define MODALIAS       "WILC_IRQ"
36  #define GPIO_NUM       RK30_PIN3_PD2 /* RK30_PIN3_PA1 */
37 /* RK30_PIN3_PD2 */
38 /* RK2928_PIN1_PA7 */
39
40 #elif defined(CUSTOMER_PLATFORM)
41 /*
42  TODO : specify MODALIAS name and GPIO number. This is certainly necessary for SPI interface.
43  *
44  * ex)
45  * #define MODALIAS  "WILC_SPI"
46  * #define GPIO_NUM  139
47  */
48
49 #else
50 /* base on SAMA5D3_Xplained Board */
51         #define MODALIAS        "WILC_SPI"
52         #define GPIO_NUM        0x44
53 #endif
54 #endif