forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtw88: Add rtw8723du chipset support
Add support for the rtw8723du chipset based on https://github.com/ulli-kroll/rtw88-usb.git Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
- Loading branch information
1 parent
9914ca0
commit 0a06adb
Showing
6 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause | ||
/* Copyright(c) 2018-2019 Realtek Corporation | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/usb.h> | ||
#include "main.h" | ||
#include "rtw8723du.h" | ||
#include "usb.h" | ||
|
||
static const struct usb_device_id rtw_8723du_id_table[] = { | ||
/* | ||
* ULLI : | ||
* ID found in rtw8822bu sources | ||
*/ | ||
{ USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, | ||
0xD723, | ||
0xff, 0xff, 0xff), | ||
.driver_info = (kernel_ulong_t)&(rtw8723d_hw_spec) }, /* 8723DU 1*1 */ | ||
{ }, | ||
}; | ||
MODULE_DEVICE_TABLE(usb, rtw_8723du_id_table); | ||
|
||
static int rtw8723du_probe(struct usb_interface *intf, | ||
const struct usb_device_id *id) | ||
{ | ||
return rtw_usb_probe(intf, id); | ||
} | ||
|
||
static struct usb_driver rtw_8723du_driver = { | ||
.name = "rtw_8723du", | ||
.id_table = rtw_8723du_id_table, | ||
.probe = rtw8723du_probe, | ||
.disconnect = rtw_usb_disconnect, | ||
}; | ||
module_usb_driver(rtw_8723du_driver); | ||
|
||
MODULE_AUTHOR("Hans Ulli Kroll <linux@ulli-kroll.de>"); | ||
MODULE_DESCRIPTION("Realtek 802.11n wireless 8723du driver"); | ||
MODULE_LICENSE("Dual BSD/GPL"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ | ||
/* Copyright(c) 2018-2019 Realtek Corporation | ||
*/ | ||
|
||
#ifndef __RTW_8723DU_H_ | ||
#define __RTW_8723DU_H_ | ||
|
||
/* USB Vendor/Product IDs */ | ||
#define RTW_USB_VENDOR_ID_REALTEK 0x0BDA | ||
|
||
extern struct rtw_chip_info rtw8723d_hw_spec; | ||
|
||
#endif |