xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/mac/chip_cfg.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /** @file */
2 /******************************************************************************
3  *
4  * Copyright(c) 2019 Realtek Corporation. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  ******************************************************************************/
16 
17 #ifndef _MAC_AX_CHIP_CFG_H_
18 #define _MAC_AX_CHIP_CFG_H_
19 
20 #ifndef __cplusplus /* for win/linux driver */
21 
22 /* Modify MakeFile to reduce code size (chip & interface) */
23 #ifdef CONFIG_RTL8852A
24 #define MAC_AX_8852A_SUPPORT	1
25 #else
26 #define MAC_AX_8852A_SUPPORT	0
27 #endif
28 
29 #ifdef CONFIG_RTL8852B
30 #define MAC_AX_8852B_SUPPORT	1
31 #else
32 #define MAC_AX_8852B_SUPPORT	0
33 #endif
34 
35 #ifdef CONFIG_RTL8852C
36 #define MAC_AX_8852C_SUPPORT	1
37 #else
38 #define MAC_AX_8852C_SUPPORT	0
39 #endif
40 
41 #ifdef CONFIG_RTL8192XB
42 #define MAC_AX_8192XB_SUPPORT	1
43 #else
44 #define MAC_AX_8192XB_SUPPORT	0
45 #endif
46 
47 /* Interface support */
48 #ifdef CONFIG_SDIO_HCI
49 #define MAC_AX_SDIO_SUPPORT	1
50 #else
51 #define MAC_AX_SDIO_SUPPORT	0
52 #endif
53 #ifdef CONFIG_USB_HCI
54 #define MAC_AX_USB_SUPPORT	1
55 #else
56 #define MAC_AX_USB_SUPPORT	0
57 #endif
58 #ifdef CONFIG_PCI_HCI
59 #define MAC_AX_PCIE_SUPPORT	1
60 #else
61 #define MAC_AX_PCIE_SUPPORT	0
62 #endif
63 
64 #else /* for WD1 test program */
65 
66 /* Modify MakeFile to reduce code size (chip & interface) */
67 
68 #define MAC_AX_8852A_SUPPORT	1
69 #define MAC_AX_8852B_SUPPORT	1
70 #define MAC_AX_8852C_SUPPORT	1
71 #define MAC_AX_8192XB_SUPPORT	1
72 
73 /* Interface support */
74 #define MAC_AX_SDIO_SUPPORT	1
75 #define MAC_AX_USB_SUPPORT	1
76 #define MAC_AX_PCIE_SUPPORT	1
77 
78 #endif // #else /* for WD1 test program */
79 
80 #endif
81 
82