1,把驱动代码添加到内核模块编译。
kconfig:
source “drivers/net/wireless/rtl8821cs/Kconfig”
makefile:
obj-$(CONFIG_RTL8821CS) += rtl8821cs/
2,dts
&usdhc3 {
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_usdhc3>;
non-removable;
bus-width = <4>;
keep-power-in-suspend;
enable-sdio-wakeup;
no-1-8-v;
status = “okay”;
wifi-host;
};
3,dsi管脚直接拉高3.3V电源
本文介绍了如何将RTL8821CS无线驱动代码添加到内核模块进行编译,包括配置Kconfig源文件,修改Makefile引入驱动目录,以及在设备树中设置DSI管脚为3.3V电源直拉,确保无线模块正常工作。
3624





