diff mbox

[LEDE-DEV] cns3xxx: add GW2394 Support

Message ID 1473179906-29746-1-git-send-email-tharvey@gateworks.com
State Superseded
Headers show

Commit Message

Tim Harvey Sept. 6, 2016, 4:38 p.m. UTC
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c             | 4 +++-
 .../linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

Comments

Felix Fietkau Sept. 7, 2016, 1:22 p.m. UTC | #1
On 2016-09-06 18:38, Tim Harvey wrote:
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
>  target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c             | 4 +++-
>  .../linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch | 4 +++-

255-laguna-add-gsc-driver-support.patch doesn't seem to be in the tree,
so this patch does not apply.

- Felix
diff mbox

Patch

diff --git a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c
index 6c77923..667a8e5 100644
--- a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c
+++ b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c
@@ -1030,7 +1030,9 @@  static int __init laguna_model_setup(void)
 			laguna_gpio_leds[3].name = "blue";
 			laguna_gpio_leds[3].active_low = 0,
 			laguna_gpio_leds_data.num_leds = 4;
-		} else if (strncmp(laguna_info.model, "GW2384", 6) == 0) {
+		} else if ( (strncmp(laguna_info.model, "GW2384", 6) == 0)
+			 || (strncmp(laguna_info.model, "GW2394", 6) == 0) )
+		{
 			// configure GPIO's
 			laguna_register_gpio(ARRAY_AND_SIZE(laguna_gpio_gw2384));
 			// configure LED's
diff --git a/target/linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch b/target/linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch
index e08ba9e..acdbf0d 100644
--- a/target/linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch
+++ b/target/linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch
@@ -352,7 +352,9 @@ 
 +			platform_device_register(&laguna_gpio_leds_device);
 +			platform_device_register(&laguna_gsc_input);
 +			platform_device_register(&laguna_keys_device);
- 		} else if (strncmp(laguna_info.model, "GW2384", 6) == 0) {
+ 		} else if ( (strncmp(laguna_info.model, "GW2384", 6) == 0)
+ 			 || (strncmp(laguna_info.model, "GW2394", 6) == 0) )
+		{
 -			// configure GPIO's
 +			// GSC
 +			laguna_keys[0].gpio = 100;