[LEDE-DEV] [PATCH v2] cns3xxx: add GW2394 Support

Tim Harvey tharvey at gateworks.com
Wed Sep 7 08:47:41 PDT 2016


Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
 target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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
-- 
1.9.1




More information about the Lede-dev mailing list