bcma: define board types
authorRafał Miłecki <zajec5@gmail.com>
Tue, 19 Mar 2013 15:58:59 +0000 (16:58 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Mar 2013 20:43:40 +0000 (16:43 -0400)
Using that IDs we can write workarounds for various cards

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/bcma/bcma.h

index e0ce311011c007f9e7feb3a03b6390bc53e66cb5..0ab6712fd76b0c7e6adb46e5d9ff014b44c24cd7 100644 (file)
@@ -173,6 +173,60 @@ struct bcma_host_ops {
 #define BCMA_CHIP_ID_BCM53572  53572
 #define  BCMA_PKG_ID_BCM47188  9
 
+/* Board types (on PCI usually equals to the subsystem dev id) */
+/* BCM4313 */
+#define BCMA_BOARD_TYPE_BCM94313BU     0X050F
+#define BCMA_BOARD_TYPE_BCM94313HM     0X0510
+#define BCMA_BOARD_TYPE_BCM94313EPA    0X0511
+#define BCMA_BOARD_TYPE_BCM94313HMG    0X051C
+/* BCM4716 */
+#define BCMA_BOARD_TYPE_BCM94716NR2    0X04CD
+/* BCM43224 */
+#define BCMA_BOARD_TYPE_BCM943224X21   0X056E
+#define BCMA_BOARD_TYPE_BCM943224X21_FCC       0X00D1
+#define BCMA_BOARD_TYPE_BCM943224X21B  0X00E9
+#define BCMA_BOARD_TYPE_BCM943224M93   0X008B
+#define BCMA_BOARD_TYPE_BCM943224M93A  0X0090
+#define BCMA_BOARD_TYPE_BCM943224X16   0X0093
+#define BCMA_BOARD_TYPE_BCM94322X9     0X008D
+#define BCMA_BOARD_TYPE_BCM94322M35E   0X008E
+/* BCM43228 */
+#define BCMA_BOARD_TYPE_BCM943228BU8   0X0540
+#define BCMA_BOARD_TYPE_BCM943228BU9   0X0541
+#define BCMA_BOARD_TYPE_BCM943228BU    0X0542
+#define BCMA_BOARD_TYPE_BCM943227HM4L  0X0543
+#define BCMA_BOARD_TYPE_BCM943227HMB   0X0544
+#define BCMA_BOARD_TYPE_BCM943228HM4L  0X0545
+#define BCMA_BOARD_TYPE_BCM943228SD    0X0573
+/* BCM4331 */
+#define BCMA_BOARD_TYPE_BCM94331X19    0X00D6
+#define BCMA_BOARD_TYPE_BCM94331X28    0X00E4
+#define BCMA_BOARD_TYPE_BCM94331X28B   0X010E
+#define BCMA_BOARD_TYPE_BCM94331PCIEBT3AX      0X00E4
+#define BCMA_BOARD_TYPE_BCM94331X12_2G 0X00EC
+#define BCMA_BOARD_TYPE_BCM94331X12_5G 0X00ED
+#define BCMA_BOARD_TYPE_BCM94331X29B   0X00EF
+#define BCMA_BOARD_TYPE_BCM94331CSAX   0X00EF
+#define BCMA_BOARD_TYPE_BCM94331X19C   0X00F5
+#define BCMA_BOARD_TYPE_BCM94331X33    0X00F4
+#define BCMA_BOARD_TYPE_BCM94331BU     0X0523
+#define BCMA_BOARD_TYPE_BCM94331S9BU   0X0524
+#define BCMA_BOARD_TYPE_BCM94331MC     0X0525
+#define BCMA_BOARD_TYPE_BCM94331MCI    0X0526
+#define BCMA_BOARD_TYPE_BCM94331PCIEBT4        0X0527
+#define BCMA_BOARD_TYPE_BCM94331HM     0X0574
+#define BCMA_BOARD_TYPE_BCM94331PCIEDUAL       0X059B
+#define BCMA_BOARD_TYPE_BCM94331MCH5   0X05A9
+#define BCMA_BOARD_TYPE_BCM94331CS     0X05C6
+#define BCMA_BOARD_TYPE_BCM94331CD     0X05DA
+/* BCM53572 */
+#define BCMA_BOARD_TYPE_BCM953572BU    0X058D
+#define BCMA_BOARD_TYPE_BCM953572NR2   0X058E
+#define BCMA_BOARD_TYPE_BCM947188NR2   0X058F
+#define BCMA_BOARD_TYPE_BCM953572SDRNR2        0X0590
+/* BCM43142 */
+#define BCMA_BOARD_TYPE_BCM943142HM    0X05E0
+
 struct bcma_device {
        struct bcma_bus *bus;
        struct bcma_device_id id;