[source] ar71xx: move DomyWifi DW33D to nand subtarget

LEDE Commits lede-commits at lists.infradead.org
Thu Nov 24 13:42:22 PST 2016


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/6998b8a054a48a598cf961c785f311c6f71408cd

commit 6998b8a054a48a598cf961c785f311c6f71408cd
Author: Piotr Dymacz <pepe2k at gmail.com>
AuthorDate: Wed Nov 23 16:34:31 2016 +0100

    ar71xx: move DomyWifi DW33D to nand subtarget
    
    This device uses NAND FLASH, so it should be kept in nand subtarget.
    
    Also, inlcude in packages kmod-usb-ledtrig-usbport instead of
    obsolete kmod-ledtrig-usbdev.
    
    Signed-off-by: Piotr Dymacz <pepe2k at gmail.com>
---
 target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt |  4 ----
 target/linux/ar71xx/image/generic.mk                      | 11 -----------
 target/linux/ar71xx/image/nand.mk                         | 11 +++++++++++
 3 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
index 001edbe..f1bfcb8 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
+++ b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
@@ -562,10 +562,6 @@ config ATH79_MACH_DOMYWIFI_DW33D
 	select ATH79_DEV_NFC
 	select ATH79_DEV_WMAC
 	select ATH79_DEV_USB
-	select MTD_NAND
-	select MTD_NAND_ECC
-	select MTD_NAND_AR934X
-	select MTD_NAND_AR934X_HW_ECC
 
 config ATH79_MACH_DR344
 	bool "Wallys DR344 board support"
diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk
index 331509a..6ceabeb 100644
--- a/target/linux/ar71xx/image/generic.mk
+++ b/target/linux/ar71xx/image/generic.mk
@@ -98,17 +98,6 @@ define Device/cpe870
 endef
 TARGET_DEVICES += cpe870
 
-define Device/domywifi-dw33d
-  DEVICE_TITLE := DomyWifi DW33D
-  DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-ledtrig-usbdev kmod-ath10k
-  BOARDNAME = DW33D
-  IMAGE_SIZE = 16000k
-  CONSOLE = ttyS0,115200
-  MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(rootfs),1472k(kernel),64k(art)ro,16000k at 0x50000(firmware);ar934x-nfc:96m(rootfs_data),32m(backup)ro
-  IMAGE/sysupgrade.bin = append-rootfs | pad-rootfs | pad-to 14528k | append-kernel | check-size $$$$(IMAGE_SIZE)
-endef
-TARGET_DEVICES += domywifi-dw33d
-
 define Device/dragino2
   BOARDNAME := DRAGINO2
   CONSOLE := ttyATH0,115200
diff --git a/target/linux/ar71xx/image/nand.mk b/target/linux/ar71xx/image/nand.mk
index aa43a91..cf4c286 100644
--- a/target/linux/ar71xx/image/nand.mk
+++ b/target/linux/ar71xx/image/nand.mk
@@ -13,6 +13,17 @@ endef
 
 TARGET_DEVICES += c-60
 
+define Device/domywifi-dw33d
+  DEVICE_TITLE := DomyWifi DW33D
+  DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-usb-ledtrig-usbport kmod-ath10k
+  BOARDNAME = DW33D
+  IMAGE_SIZE = 16000k
+  CONSOLE = ttyS0,115200
+  MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(rootfs),1472k(kernel),64k(art)ro,16000k at 0x50000(firmware);ar934x-nfc:96m(rootfs_data),32m(backup)ro
+  IMAGE/sysupgrade.bin = append-rootfs | pad-rootfs | pad-to 14528k | append-kernel | check-size $$$$(IMAGE_SIZE)
+endef
+TARGET_DEVICES += domywifi-dw33d
+
 define Build/MerakiNAND
 	-$(STAGING_DIR_HOST)/bin/mkmerakifw \
 		-B $(BOARDNAME) -s \



More information about the lede-commits mailing list