From f1d1f7331ab356de16614386e7650449558e48b3 Mon Sep 17 00:00:00 2001
From: Mats Karrman <mats@southpole.se>
Date: Mon, 20 Jun 2016 14:29:52 +0200
Subject: [PATCH] iopsys-brcm63xx-arm: Add EG400 target, refs #9092

---
 iopsys-brcm63xx-arm/Config.in                 |  5 +++
 .../eg400/base-files/etc/config/buttons       | 34 +++++++++++++++++++
 iopsys-brcm63xx-arm/profiles/inteno.mk        | 19 +++++++++++
 3 files changed, 58 insertions(+)
 create mode 100644 iopsys-brcm63xx-arm/eg400/base-files/etc/config/buttons

diff --git a/iopsys-brcm63xx-arm/Config.in b/iopsys-brcm63xx-arm/Config.in
index b2af48873..a3e862cac 100644
--- a/iopsys-brcm63xx-arm/Config.in
+++ b/iopsys-brcm63xx-arm/Config.in
@@ -28,19 +28,24 @@ config BCM_KERNEL_PROFILE
        string
 
        default "963138BGWV" if TARGET_iopsys_brcm63xx_arm_dg400
+       default "963138BGWV" if TARGET_iopsys_brcm63xx_arm_eg400
 
 config BCM_CHIP_ID
        string
 
        default "63138" if TARGET_iopsys_brcm63xx_arm_dg400
+       default "63138" if TARGET_iopsys_brcm63xx_arm_eg400
 
 
 config TARGET_MODEL_NAME
 	string
 
 	default "DG400-WU7U" if TARGET_iopsys_brcm63xx_arm_dg400
+	default "EG400-WU21U" if TARGET_iopsys_brcm63xx_arm_eg400
 
 config TARGET_IBOARDID
 	string
 
 	default "DG400" if TARGET_iopsys_brcm63xx_arm_dg400
+	default "EG400" if TARGET_iopsys_brcm63xx_arm_eg400
+
diff --git a/iopsys-brcm63xx-arm/eg400/base-files/etc/config/buttons b/iopsys-brcm63xx-arm/eg400/base-files/etc/config/buttons
new file mode 100644
index 000000000..4a07c5fe4
--- /dev/null
+++ b/iopsys-brcm63xx-arm/eg400/base-files/etc/config/buttons
@@ -0,0 +1,34 @@
+
+############### mapping function button to driver button
+config button RESET
+	list button gpio_reset
+	option minpress 5000
+	option hotplug resetbutton
+
+config button DECT
+	list button 9512_dect
+	option hotplug dectshort
+	option hotplug_long dectlong
+	option minpress 1000
+	option longpress 8000
+
+config button WPS
+	list button 9512_wps
+	option hotplug wpsbutton
+	option minpress 1000
+
+config button Wireless
+	list button 9512_wireless
+	option hotplug ecobutton
+	option minpress 1000
+
+#config button THOUCH_NEAR
+#	list button 9512_touch_near
+#	option hotplug touch_near
+#	option dimming	on
+#	option minpress 0
+
+#config button THOUCH_FAR
+#	list button 9512_touch_far
+#	option hotplug touch_far
+#	option minpress 0
diff --git a/iopsys-brcm63xx-arm/profiles/inteno.mk b/iopsys-brcm63xx-arm/profiles/inteno.mk
index c8f7b7b55..321dfa71b 100644
--- a/iopsys-brcm63xx-arm/profiles/inteno.mk
+++ b/iopsys-brcm63xx-arm/profiles/inteno.mk
@@ -28,3 +28,22 @@ endef
 $(eval $(call Profile,dg400))
 
 
+define Profile/eg400
+  NAME:=eg400
+  PACKAGES:=$(VOICE_SUPPORT) $(DECT_SUPPORT) catv juci-catv juci-sfp
+endef
+
+define Profile/eg400/Config
+select BCM_I2C
+select BCM_ENDPOINT_MODULE
+select TARGET_NO_DECT
+select TARGET_NO_DSL
+endef
+
+define Profile/eg400/Description
+	eg400 profile
+endef
+
+$(eval $(call Profile,eg400))
+
+
-- 
GitLab