mediatek: enable SATA for mt7623
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 10 Jun 2020 15:23:04 +0000 (16:23 +0100)
committerPetr Štetiar <ynezz@true.cz>
Wed, 8 Jul 2020 21:22:30 +0000 (23:22 +0200)
The MT7623 SoC has the same SATA block as the MT7622, so enable it in
MT7623 builds too and add it to the DEVICE_PACKAGES for those boards.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
target/linux/mediatek/image/mt7623.mk
target/linux/mediatek/modules.mk

index 2257d8010f7896bbdacbc8f1eb5a8570343141b9..a38c03deb97709398a0157ded863d654510df048 100644 (file)
@@ -6,7 +6,7 @@ define Device/bpi_bananapi-r2
   DEVICE_DTS := mt7623n-bananapi-bpi-r2
   SUPPORTED_DEVICES := bananapi,bpi-r2
   DEVICE_PACKAGES := kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 kmod-mmc \
-       mkf2fs e2fsprogs kmod-usb-ohci kmod-usb2 kmod-usb3
+       mkf2fs e2fsprogs kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci-mtk
 endef
 TARGET_DEVICES += bpi_bananapi-r2
 
@@ -18,6 +18,6 @@ define Device/unielec_u7623-02-emmc-512m
   IMAGES := sysupgrade-emmc.bin.gz
   IMAGE/sysupgrade-emmc.bin.gz := sysupgrade-emmc | gzip | append-metadata
   DEVICE_PACKAGES := kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 kmod-mmc \
-       mkf2fs e2fsprogs kmod-usb-ohci kmod-usb2 kmod-usb3
+       mkf2fs e2fsprogs kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci-mtk
 endef
 TARGET_DEVICES += unielec_u7623-02-emmc-512m
index 7f8c038caeb8d3a0918805d3853efdeab523ed17..eb81afe2359b135e9522ad317d171ee5b2bdf4cf 100644 (file)
@@ -6,7 +6,7 @@ define KernelPackage/ata-ahci-mtk
        $(LINUX_DIR)/drivers/ata/libahci_platform.ko
   AUTOLOAD:=$(call AutoLoad,40,libahci libahci_platform ahci_mtk,1)
   $(call AddDepends/ata)
-  DEPENDS+=@TARGET_mediatek_mt7622
+  DEPENDS+=@(TARGET_mediatek_mt7622||TARGET_mediatek_mt7623)
 endef
 
 define KernelPackage/ata-ahci-mtk/description