aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx23
diff options
context:
space:
mode:
authorZoltan HERPAI <wigyori@uid0.hu>2013-08-01 09:36:37 +0000
committerZoltan HERPAI <wigyori@uid0.hu>2013-08-01 09:36:37 +0000
commita99a5c5c68ae33319f9e3daec2752cbb8e6f8e1b (patch)
treeee6b39e8ff9b4b1e587762c0825c9f6bfca05c37 /target/linux/imx23
parent5e46a29ef240fcf1f577422b0d28b7b838ba47d7 (diff)
downloadupstream-a99a5c5c68ae33319f9e3daec2752cbb8e6f8e1b.tar.gz
upstream-a99a5c5c68ae33319f9e3daec2752cbb8e6f8e1b.tar.bz2
upstream-a99a5c5c68ae33319f9e3daec2752cbb8e6f8e1b.zip
imx23: add lradc support
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37632 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/imx23')
-rw-r--r--target/linux/imx23/config-default17
-rw-r--r--target/linux/imx23/modules.mk15
-rw-r--r--target/linux/imx23/profiles/01-olinuxino.mk2
3 files changed, 31 insertions, 3 deletions
diff --git a/target/linux/imx23/config-default b/target/linux/imx23/config-default
index 7c5f35983c..7d05e9f537 100644
--- a/target/linux/imx23/config-default
+++ b/target/linux/imx23/config-default
@@ -68,7 +68,6 @@ CONFIG_CRYPTO_HASH2=y
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
# CONFIG_DEBUG_PINCTRL is not set
# CONFIG_DEBUG_USER is not set
-CONFIG_DECOMPRESS_LZMA=y
CONFIG_DMADEVICES=y
CONFIG_DMA_ENGINE=y
CONFIG_DMA_OF=y
@@ -142,7 +141,6 @@ CONFIG_I2C=y
CONFIG_I2C_ALGOBIT=y
CONFIG_I2C_ALGOPCA=y
CONFIG_I2C_ALGOPCF=y
-# CONFIG_I2C_ARB_GPIO_CHALLENGE is not set
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_COMPAT=y
@@ -155,7 +153,21 @@ CONFIG_I2C_MUX=y
# CONFIG_I2C_MUX_PCA954x is not set
CONFIG_I2C_MUX_PINCTRL=y
CONFIG_I2C_MXS=y
+CONFIG_IIO=y
+CONFIG_IIO_BUFFER=y
+# CONFIG_IIO_BUFFER_CB is not set
+CONFIG_IIO_CONSUMERS_PER_TRIGGER=2
+CONFIG_IIO_GPIO_TRIGGER=y
+CONFIG_IIO_KFIFO_BUF=y
+CONFIG_IIO_PERIODIC_RTC_TRIGGER=y
+# CONFIG_IIO_SIMPLE_DUMMY is not set
+# CONFIG_IIO_ST_ACCEL_3AXIS is not set
+# CONFIG_IIO_ST_GYRO_3AXIS is not set
+# CONFIG_IIO_ST_MAGN_3AXIS is not set
+CONFIG_IIO_SYSFS_TRIGGER=y
+CONFIG_IIO_TRIGGER=y
CONFIG_INITRAMFS_SOURCE=""
+CONFIG_INPUT=y
CONFIG_IRQCHIP=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_WORK=y
@@ -174,6 +186,7 @@ CONFIG_MTD_OF_PARTS=y
# CONFIG_MTD_PHYSMAP_OF is not set
CONFIG_MULTI_IRQ_HANDLER=y
CONFIG_MXS_DMA=y
+# CONFIG_MXS_LRADC is not set
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_PER_CPU_KM=y
# CONFIG_NET_DMA is not set
diff --git a/target/linux/imx23/modules.mk b/target/linux/imx23/modules.mk
index 5c9fd44ad9..119ddd7bd7 100644
--- a/target/linux/imx23/modules.mk
+++ b/target/linux/imx23/modules.mk
@@ -100,3 +100,18 @@ endef
$(eval $(call KernelPackage,sound-soc-imx23))
+define KernelPackage/iio-mxs-lradc
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=LRADC driver for i.MX23/28
+ DEPENDS:=@TARGET_imx23
+ KCONFIG:=CONFIG_MXS_LRADC
+ FILES:=$(LINUX_DIR)/drivers/staging/iio/adc/mxs-lradc.ko \
+ $(LINUX_DIR)/drivers/iio/industrialio-triggered-buffer.ko
+ AUTOLOAD:=$(call AutoLoad,70,industrialio-triggered-buffer mxs-lradc)
+endef
+
+define KernelPackage/iio-mxs-lradc/description
+ Kernel module for i.MX23/28 LRADC driver
+endef
+
+$(eval $(call KernelPackage,iio-mxs-lradc))
diff --git a/target/linux/imx23/profiles/01-olinuxino.mk b/target/linux/imx23/profiles/01-olinuxino.mk
index b2f46c4202..252f99a854 100644
--- a/target/linux/imx23/profiles/01-olinuxino.mk
+++ b/target/linux/imx23/profiles/01-olinuxino.mk
@@ -9,7 +9,7 @@ define Profile/olinuxino
NAME:=Olimex Olinuxino boards
PACKAGES += imx-bootlets kmod-usb-mxs-phy kmod-usb-net kmod-usb-net-smsc95xx \
kmod-gpio-mcp23s08 kmod-leds-gpio kmod-ledtrig-heartbeat kmod-rtc-stmp3xxx \
- kmod-sound-core kmod-sound-soc-imx23
+ kmod-sound-core kmod-sound-soc-imx23 kmod-iio-mxs-lradc
endef
define Profile/olinuxino/Description