summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-03-27 18:36:56 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-03-27 18:36:56 +0000
commit6776a34d73fd2d58691dc714df96cf52d5c07221 (patch)
tree7ba4482d97ebb48f3344a60d6bf1bf954afb0c54
parent30f886203301dbed00315f5c996075d8d99ea87d (diff)
downloadmtk-20170518-6776a34d73fd2d58691dc714df96cf52d5c07221.zip
mtk-20170518-6776a34d73fd2d58691dc714df96cf52d5c07221.tar.gz
mtk-20170518-6776a34d73fd2d58691dc714df96cf52d5c07221.tar.bz2
Create the kmod-spi package and load mmc_over_gpio after spi (#3273)
SVN-Revision: 10675
-rw-r--r--package/kernel/modules/other.mk25
-rw-r--r--package/mmc_over_gpio/Makefile2
2 files changed, 18 insertions, 9 deletions
diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk
index 11c4513..2313135 100644
--- a/package/kernel/modules/other.mk
+++ b/package/kernel/modules/other.mk
@@ -514,14 +514,21 @@ $(eval $(call KernelPackage,mmc-spi))
define KernelPackage/spi
SUBMENU:=$(OTHER_MENU)
- DEPENDS:=@LINUX_2_6 +kmod-crc-itu-t +kmod-crc7
TITLE:=Serial Peripheral Interface
+ DEPENDS:=@LINUX_2_6 +kmod-crc-itu-t +kmod-crc7
KCONFIG:=CONFIG_SPI=y \
- CONFIG_MTD_DATAFLASH=n \
- CONFIG_MTD_M25P80=n \
- CONFIG_SPI_AT25=n \
- CONFIG_SPI_SPIDEV=n \
- CONFIG_SPI_TLE62X0=n
+ CONFIG_MTD_DATAFLASH \
+ CONFIG_MTD_M25P80 \
+ CONFIG_SPI_AT25 \
+ CONFIG_SPI_SPIDEV \
+ CONFIG_SPI_TLE62X0
+ FILES:= \
+ $(LINUX_DIR)/drivers/spi/at25.$(LINUX_KMOD_SUFFIX) \
+ $(LINUX_DIR)/drivers/spi/spidev.$(LINUX_KMOD_SUFFIX) \
+ $(LINUX_DIR)/drivers/spi/tle62x0.$(LINUX_KMOD_SUFFIX) \
+ $(LINUX_DIR)/drivers/mtd/devices/m25p80.$(LINUX_KMOD_SUFFIX) \
+ $(LINUX_DIR)/drivers/mtd/devices/mtd_dataflash.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,90,spi)
endef
define KernelPackage/spi/description
@@ -532,9 +539,11 @@ $(eval $(call KernelPackage,spi))
define KernelPackage/spi-bitbang
SUBMENU:=$(OTHER_MENU)
- DEPENDS:=@LINUX_2_6
TITLE:=Serial Peripheral Interface bitbanging
- KCONFIG:=CONFIG_SPI_BITBANG=y
+ DEPENDS:=@LINUX_2_6 +kmod-spi
+ KCONFIG:=CONFIG_SPI_BITBANG
+ FILES:=$(LINUX_DIR)/drivers/spi/spi_bitbang.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,91,spi_bitbang)
endef
define KernelPackage/spi-bitbang/description
diff --git a/package/mmc_over_gpio/Makefile b/package/mmc_over_gpio/Makefile
index d38fa41..88fe7f6 100644
--- a/package/mmc_over_gpio/Makefile
+++ b/package/mmc_over_gpio/Makefile
@@ -21,7 +21,7 @@ define KernelPackage/mmc-over-gpio
TITLE:=MMC/SD card over GPIO support
FILES:=$(PKG_BUILD_DIR)/spi_gpio.$(LINUX_KMOD_SUFFIX) \
$(PKG_BUILD_DIR)/mmc_over_spigpio.$(LINUX_KMOD_SUFFIX)
- AUTOLOAD:=$(call AutoLoad,90,spi_gpio mmc_over_spigpio)
+ AUTOLOAD:=$(call AutoLoad,92,spi_gpio mmc_over_spigpio)
endef
define KernelPackage/mmc-over-gpio/description