From 598ef2a2e0ad8a28de8ec5e108d638a8c38ab2a1 Mon Sep 17 00:00:00 2001
From: Florian Fainelli <florian@openwrt.org>
Date: Tue, 24 Jul 2012 19:42:49 +0000
Subject: [PATCH] package ep93xx touchscreen driver as a module

SVN-Revision: 32799
---
 target/linux/ep93xx/config-3.3 |  4 +---
 target/linux/ep93xx/modules.mk | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/target/linux/ep93xx/config-3.3 b/target/linux/ep93xx/config-3.3
index f5318d4ef6..eb29df7903 100644
--- a/target/linux/ep93xx/config-3.3
+++ b/target/linux/ep93xx/config-3.3
@@ -66,7 +66,6 @@ CONFIG_CRYPTO_SHA1=y
 CONFIG_CRYPTO_WORKQUEUE=y
 CONFIG_DEBUG_BUGVERBOSE=y
 CONFIG_DEBUG_USER=y
-CONFIG_DEFAULT_TCP_CONG="cubic"
 CONFIG_DNOTIFY=y
 CONFIG_DUMMY_CONSOLE=y
 CONFIG_ELF_CORE=y
@@ -200,13 +199,12 @@ CONFIG_SPI_MASTER=y
 CONFIG_SPLIT_PTLOCK_CPUS=999999
 CONFIG_SYS_SUPPORTS_APM_EMULATION=y
 # CONFIG_TCP_CONG_ADVANCED is not set
-CONFIG_TCP_CONG_CUBIC=y
 # CONFIG_TOUCHSCREEN_ATMEL_MXT is not set
 # CONFIG_TOUCHSCREEN_AUO_PIXCIR is not set
 # CONFIG_TOUCHSCREEN_BU21013 is not set
 # CONFIG_TOUCHSCREEN_DYNAPRO is not set
 # CONFIG_TOUCHSCREEN_EGALAX is not set
-CONFIG_TOUCHSCREEN_EP93XX=y
+# CONFIG_TOUCHSCREEN_EP93XX is not set
 # CONFIG_TOUCHSCREEN_HAMPSHIRE is not set
 # CONFIG_TOUCHSCREEN_MAX11801 is not set
 # CONFIG_TOUCHSCREEN_PIXCIR is not set
diff --git a/target/linux/ep93xx/modules.mk b/target/linux/ep93xx/modules.mk
index 3fc691f4c2..94d2c83f82 100644
--- a/target/linux/ep93xx/modules.mk
+++ b/target/linux/ep93xx/modules.mk
@@ -68,3 +68,18 @@ define KernelPackage/sound-soc-ep93xx-simone/description
 endef
 
 $(eval $(call KernelPackage,sound-soc-ep93xx-simone))
+
+define KernelPackage/touchscreen-ep93xx
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=EP93xx input touchscreen support
+  KCONFIG:=CONFIG_TOUCHSCREEN_EP93XX
+  FILES:=$(LINUX_DIR)/drivers/input/touchscreen/ep93xx_ts.ko
+  AUTOLOAD:=$(call AutoLoad,51,ep93xx_ts)
+endef
+
+define KernelPackage/touchscreen-ep93xx/description
+  EP93xx SoC input touchscreen support
+endef
+
+$(eval $(call KernelPackage,touchscreen-ep93xx))
+
-- 
GitLab