2 # Copyright (C) 2020 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
11 PKG_NAME
:=mt7621-qtn-rgmii
15 PKG_MAINTAINER
:=Bjørn Mork
<bjorn@mork.no
>
17 include $(INCLUDE_DIR
)/package.mk
19 define KernelPackage
/mt7621-qtn-rgmii
21 SUBMENU
:=Other modules
22 TITLE
:=Enable RGMII connected Quantenna module on MT7621
23 DEPENDS
:=@TARGET_ramips_mt7621
25 FILES
:=$(PKG_BUILD_DIR
)/mt7621-qtn-rgmii.ko
26 AUTOLOAD
:=$(call AutoLoad
,30,mt7621-qtn-rgmii
,1)
29 define KernelPackage
/mt7621-qtn-rgmii
/description
30 Enable RGMII connected Quantenna module on MT7621.
32 The Mitrastar designed ZyXEL WAP6805 has a Quantenna QV840
33 module connected to the RGMII pins of the MT7621 SoC. For
34 unknown reasons
, it is necessary to change the value of
35 the register at
0x1e110008 from default
(usually
0xc000c)
36 to
0x9000c for this connection wo work.
38 This driver simply does that without much fuzz.
42 $(KERNEL_MAKE
) M
=$(PKG_BUILD_DIR
) modules
45 $(eval
$(call KernelPackage
,mt7621-qtn-rgmii
))