From: Zoltan Herpai Date: Thu, 1 Aug 2013 09:36:37 +0000 (+0000) Subject: imx23: add lradc support X-Git-Tag: reboot~9620 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9eb3572b7b620360a36676bf957ea6b83850d25d;p=oweals%2Fopenwrt.git imx23: add lradc support Signed-off-by: Zoltan HERPAI SVN-Revision: 37632 --- 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