oxnas: build S-ATA driver as a module
authorJohn Crispin <john@openwrt.org>
Fri, 12 Dec 2014 16:17:13 +0000 (16:17 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 12 Dec 2014 16:17:13 +0000 (16:17 +0000)
 From: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 43665

package/kernel/linux/modules/block.mk
target/linux/oxnas/Makefile
target/linux/oxnas/config-3.14
target/linux/oxnas/config-3.18

index 8a84aa4e22290969fabfb75f0494006000c8460a..20588ac2767648bd493aa5cbb7a233fccfe0bfbf 100644 (file)
@@ -116,6 +116,22 @@ endef
 $(eval $(call KernelPackage,ata-nvidia-sata))
 
 
+define KernelPackage/ata-oxnas-sata
+  TITLE:=oxnas Serial ATA support
+  KCONFIG:=CONFIG_SATA_OXNAS
+  DEPENDS:=@TARGET_oxnas
+  FILES:=$(LINUX_DIR)/drivers/ata/sata_oxnas.ko
+  AUTOLOAD:=$(call AutoLoad,41,sata_oxnas,1)
+  $(call AddDepends/ata)
+endef
+
+define KernelPackage/ata-oxnas-sata/description
+ SATA support for OX934 core found in the OX82x/PLX782x SoCs
+endef
+
+$(eval $(call KernelPackage,ata-oxnas-sata))
+
+
 define KernelPackage/ata-pdc202xx-old
   SUBMENU:=$(BLOCK_MENU)
   TITLE:=Older Promise PATA controller support
index d957fcab5c5db3575e5ca433e15bd7abc7ac23da..e919eefe9ca82282f907f28d9ed146cc9dbe11a7 100644 (file)
@@ -20,8 +20,9 @@ KERNEL_PATCHVER:=3.14
 include $(INCLUDE_DIR)/target.mk
 
 DEFAULT_PACKAGES += \
-       kmod-button-hotplug kmod-input-gpio-keys-polled kmod-leds-gpio          \
-       kmod-i2c-gpio uboot-envtools uboot-oxnas-ox820
+       kmod-ata-core kmod-ata-oxnas-sata kmod-button-hotplug \
+       kmod-input-gpio-keys-polled kmod-leds-gpio kmod-usb2-oxnas \
+       uboot-envtools uboot-oxnas-ox820
 
 KERNELNAME:=zImage dtbs
 
index 086f870cea1387edc18227871388ec5bf7138981..473a2bf75bdea1042d10595ee66cdd4a67aa2197 100644 (file)
@@ -25,7 +25,6 @@ CONFIG_ARM_NR_BANKS=8
 CONFIG_ARM_PATCH_PHYS_VIRT=y
 CONFIG_ARM_THUMB=y
 CONFIG_ARM_UNWIND=y
-CONFIG_ATA=y
 CONFIG_AUTO_ZRELADDR=y
 # CONFIG_BLK_DEV_INITRD is not set
 CONFIG_BLK_DEV_SD=y
@@ -298,7 +297,6 @@ CONFIG_RFS_ACCEL=y
 CONFIG_RPS=y
 CONFIG_RTC_CLASS=y
 # CONFIG_RTC_DRV_CMOS is not set
-CONFIG_SATA_OXNAS=y
 CONFIG_SCHED_HRTICK=y
 CONFIG_SCSI=y
 CONFIG_SERIAL_8250_NR_UARTS=1
index f66650a2e189f47c60b03a2a6ec43cfb939c293e..56dce65caff5992b183fdd3d8f78df2dba549007 100644 (file)
@@ -29,7 +29,6 @@ CONFIG_ARM_L1_CACHE_SHIFT=5
 CONFIG_ARM_PATCH_PHYS_VIRT=y
 CONFIG_ARM_THUMB=y
 CONFIG_ARM_UNWIND=y
-CONFIG_ATA=y
 # CONFIG_AUDIT_ARCH_COMPAT_GENERIC is not set
 CONFIG_AUTO_ZRELADDR=y
 # CONFIG_BLK_DEV_INITRD is not set
@@ -316,7 +315,6 @@ CONFIG_RTC_CLASS=y
 # CONFIG_RTC_DRV_CMOS is not set
 CONFIG_RWSEM_SPIN_ON_OWNER=y
 CONFIG_RWSEM_XCHGADD_ALGORITHM=y
-CONFIG_SATA_OXNAS=y
 CONFIG_SCHED_HRTICK=y
 CONFIG_SCSI=y
 CONFIG_SERIAL_8250_NR_UARTS=1