diff options
author | Tim Harvey <tharvey@gateworks.com> | 2016-09-07 14:05:42 -0700 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-09-08 13:40:02 +0200 |
commit | 1974ad5a96c191a4697ce07d2a46b770462ff65e (patch) | |
tree | db831a5979c1733d485336b316e78c4e26fc4b83 /target | |
parent | 1419087a35c4d078d916833a1cc3fdfd0449d34c (diff) | |
download | mtk-20170518-1974ad5a96c191a4697ce07d2a46b770462ff65e.zip mtk-20170518-1974ad5a96c191a4697ce07d2a46b770462ff65e.tar.gz mtk-20170518-1974ad5a96c191a4697ce07d2a46b770462ff65e.tar.bz2 |
cns3xxx: add GW2386 support
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c | 20 |
1 files changed, 20 insertions, 0 deletions
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 667a8e5..fb519d2 100644 --- a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c +++ b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c @@ -728,6 +728,21 @@ static struct gpio laguna_gpio_gw2387[] = { { 113, GPIOF_IN , "DIO5" }, }; +static struct gpio laguna_gpio_gw2386[] = { + { 0, GPIOF_IN , "*GPS_PPS" }, + { 2, GPIOF_IN , "*USB_FAULT#" }, + { 6, GPIOF_OUT_INIT_LOW , "*USB_PCI_SEL" }, + { 7, GPIOF_OUT_INIT_LOW , "*GSM_SEL0" }, + { 8, GPIOF_OUT_INIT_LOW , "*GSM_SEL1" }, + { 9, GPIOF_OUT_INIT_LOW , "*FP_SER_EN" }, + { 108, GPIOF_IN , "DIO0" }, + { 109, GPIOF_IN , "DIO1" }, + { 110, GPIOF_IN , "DIO2" }, + { 111, GPIOF_IN , "DIO3" }, + { 112, GPIOF_IN , "DIO4" }, + { 113, GPIOF_IN , "DIO5" }, +}; + static struct gpio laguna_gpio_gw2385[] = { { 0, GPIOF_IN , "*GSC_IRQ#" }, { 1, GPIOF_OUT_INIT_HIGH, "*USB_HST_VBUS_EN" }, @@ -1015,6 +1030,11 @@ static int __init laguna_model_setup(void) laguna_register_gpio(ARRAY_AND_SIZE(laguna_gpio_gw2387)); // configure LED's laguna_gpio_leds_data.num_leds = 2; + } else if (strncmp(laguna_info.model, "GW2386", 6) == 0) { + // configure GPIO's + laguna_register_gpio(ARRAY_AND_SIZE(laguna_gpio_gw2386)); + // configure LED's + laguna_gpio_leds_data.num_leds = 2; } else if (strncmp(laguna_info.model, "GW2385", 6) == 0) { // configure GPIO's laguna_register_gpio(ARRAY_AND_SIZE(laguna_gpio_gw2385)); |