From 95a7137bf8343f39552d010d5293e32d0efeedae Mon Sep 17 00:00:00 2001 From: imbrolla <2664456645@qq.com> Date: Fri, 17 Nov 2017 03:23:24 +0800 Subject: [PATCH] add sgr-w500-n85b-v2 --- .../ar71xx/base-files/etc/board.d/01_leds | 3 + .../ar71xx/base-files/etc/board.d/02_network | 1 + target/linux/ar71xx/base-files/etc/diag.sh | 3 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-4.4 | 1 + target/linux/ar71xx/config-4.9 | 1 + .../files/arch/mips/ath79/Kconfig.openwrt | 11 + .../ar71xx/files/arch/mips/ath79/Makefile | 1 + .../arch/mips/ath79/mach-sgr-w500-n85b-v2.c | 134 +++++++++ .../files/arch/mips/ath79/mach-tl-wr941n-v7.c | 279 ------------------ .../ar71xx/files/arch/mips/ath79/machtypes.h | 1 + target/linux/ar71xx/image/legacy-devices.mk | 6 + target/linux/ar71xx/image/legacy.mk | 1 + 14 files changed, 167 insertions(+), 279 deletions(-) create mode 100755 target/linux/ar71xx/files/arch/mips/ath79/mach-sgr-w500-n85b-v2.c delete mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr941n-v7.c diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 4b845404f..61665fed9 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -565,6 +565,9 @@ re450) ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan2g" "phy1tpt" ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan5g" "phy0tpt" ;; +sgr-w500-n85b-v2) + ucidef_set_led_wlan "wlan" "WLAN" "grentech:green:wlan2g" "phy0tpt" + ;; smart-300) ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0" ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index 397fcb06f..24501990f 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -132,6 +132,7 @@ ar71xx_setup_interfaces() unifiac-lite|\ wi2a-ac200i|\ wndap360|\ + sgr-w500-n85b-v2 |\ wp543) ucidef_set_interface_lan "eth0" ;; diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 1bfc07b4a..2ac3aea0a 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -350,6 +350,9 @@ get_status_led() { rw2458n) status_led="$board:green:d3" ;; + sgr-w500-n85b-v2) + status_led="grentech:green:status" + ;; smart-300) status_led="nc-link:green:system" ;; diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 9b5c5fbff..3819b96b8 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -992,6 +992,9 @@ ar71xx_board_detect() { *"SC450") name="sc450" ;; + "GRENTECH SGR-W500-N85b v2.0") + name="sgr-w500-n85b-v2" + ;; *"SMART-300") name="smart-300" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 632b61cba..a41f3b709 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -328,6 +328,7 @@ platform_check_image() { hornet-ub|\ mr12|\ mr16|\ + sgr-w500-n85b-v2|\ zbt-we1526|\ zcn-1523h-2|\ zcn-1523h-5) diff --git a/target/linux/ar71xx/config-4.4 b/target/linux/ar71xx/config-4.4 index fd77853f8..1cf7677f9 100644 --- a/target/linux/ar71xx/config-4.4 +++ b/target/linux/ar71xx/config-4.4 @@ -168,6 +168,7 @@ CONFIG_ATH79_MACH_RW2458N=y CONFIG_ATH79_MACH_SC1750=y CONFIG_ATH79_MACH_SC300M=y CONFIG_ATH79_MACH_SC450=y +CONFIG_ATH79_MACH_SGR_W500_N85B_V2=y CONFIG_ATH79_MACH_SMART_300=y CONFIG_ATH79_MACH_SOM9331=y CONFIG_ATH79_MACH_SR3200=y diff --git a/target/linux/ar71xx/config-4.9 b/target/linux/ar71xx/config-4.9 index c07be1dc9..2f963c730 100644 --- a/target/linux/ar71xx/config-4.9 +++ b/target/linux/ar71xx/config-4.9 @@ -166,6 +166,7 @@ CONFIG_ATH79_MACH_RW2458N=y CONFIG_ATH79_MACH_SC1750=y CONFIG_ATH79_MACH_SC300M=y CONFIG_ATH79_MACH_SC450=y +CONFIG_ATH79_MACH_SGR_W500_N85B_V2=y CONFIG_ATH79_MACH_SMART_300=y CONFIG_ATH79_MACH_SOM9331=y CONFIG_ATH79_MACH_SR3200=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt index be94fd0c8..f0203c2a9 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt +++ b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt @@ -2171,3 +2171,14 @@ config ATH79_MACH_FRITZ300E select ATH79_DEV_GPIO_BUTTONS select ATH79_DEV_LEDS_GPIO select ATH79_DEV_M25P80 + +config ATH79_MACH_SGR_W500_N85B_V2 + bool "GRENTECH SGR-W500-N85b v2.0 support" + select SOC_AR934X + select ATH79_DEV_AP9X_PCI if PCI + select ATH79_DEV_ETH + select ATH79_DEV_GPIO_BUTTONS + select ATH79_DEV_LEDS_GPIO + select ATH79_DEV_M25P80 + select ATH79_DEV_WMAC + select ATH79_DEV_USB diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Makefile b/target/linux/ar71xx/files/arch/mips/ath79/Makefile index 8ba3e8c6b..6af6e8071 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/Makefile +++ b/target/linux/ar71xx/files/arch/mips/ath79/Makefile @@ -175,6 +175,7 @@ obj-$(CONFIG_ATH79_MACH_RW2458N) += mach-rw2458n.o obj-$(CONFIG_ATH79_MACH_SC1750) += mach-sc1750.o obj-$(CONFIG_ATH79_MACH_SC300M) += mach-sc300m.o obj-$(CONFIG_ATH79_MACH_SC450) += mach-sc450.o +obj-$(CONFIG_ATH79_MACH_SGR_W500_N85B_V2) += mach-sgr-w500-n85b-v2.o obj-$(CONFIG_ATH79_MACH_SMART_300) += mach-smart-300.o obj-$(CONFIG_ATH79_MACH_SOM9331) += mach-som9331.o obj-$(CONFIG_ATH79_MACH_SR3200) += mach-sr3200.o diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-sgr-w500-n85b-v2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-sgr-w500-n85b-v2.c new file mode 100755 index 000000000..d2749e483 --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-sgr-w500-n85b-v2.c @@ -0,0 +1,134 @@ +/* + * GRENTECH SGR-W500-N85b v2.0 board support + * + * Copyright (c) 2017 Weijie Gao + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + */ + +#include +#include +#include +#include +#include + +#include + +#include "common.h" +#include "dev-ap9x-pci.h" +#include "dev-eth.h" +#include "dev-gpio-buttons.h" +#include "dev-leds-gpio.h" +#include "dev-m25p80.h" +#include "dev-spi.h" +#include "dev-wmac.h" +#include "machtypes.h" + +#define GRENTECH_GPIO_LED_STATUS 21 +#define GRENTECH_GPIO_LED_WLAN2G 20 + +#define GRENTECH_GPIO_BUTTON_RESET 3 + +#define GRENTECH_GPIO_RTL8211E_RESET_L 11 + +#define GRENTECH_GPIO_EXTERNAL_LNA0 18 +#define GRENTECH_GPIO_EXTERNAL_LNA1 19 + +#define GRENTECH_KEYS_POLL_INTERVAL 20 /* msecs */ +#define GRENTECH_KEYS_DEBOUNCE_INTERVAL (3 * GRENTECH_KEYS_POLL_INTERVAL) + +#define GRENTECH_MAC_OFFSET 0 +#define GRENTECH_WMAC_CALDATA_OFFSET 0x1000 +#define GRENTECH_PCIE_CALDATA_OFFSET 0x5000 + +static struct gpio_led grentech_leds_gpio[] __initdata = { + { + .name = "grentech:green:status", + .gpio = GRENTECH_GPIO_LED_STATUS, + .active_low = 1, + }, + { + .name = "grentech:green:wlan2g", + .gpio = GRENTECH_GPIO_LED_WLAN2G, + .active_low = 1, + } +}; + +static struct gpio_keys_button grentech_gpio_keys[] __initdata = { + { + .desc = "reset", + .type = EV_KEY, + .code = KEY_RESTART, + .debounce_interval = GRENTECH_KEYS_DEBOUNCE_INTERVAL, + .gpio = GRENTECH_GPIO_BUTTON_RESET, + .active_low = 1, + }, +}; + +static struct mdio_board_info grentech_mdio0_info[] = { + { + .bus_id = "ag71xx-mdio.0", + .phy_addr = 1, + }, +}; + +static void __init grentech_setup(void) +{ + u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); + u8 tmpmac[ETH_ALEN]; + + ath79_register_m25p80(NULL); + + ath79_register_leds_gpio(-1, ARRAY_SIZE(grentech_leds_gpio), + grentech_leds_gpio); + ath79_register_gpio_keys_polled(-1, GRENTECH_KEYS_POLL_INTERVAL, + ARRAY_SIZE(grentech_gpio_keys), + grentech_gpio_keys); + + gpio_request_one(GRENTECH_GPIO_RTL8211E_RESET_L, + GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, + "RTL8211E reset pin"); + + ath79_wmac_set_ext_lna_gpio(0, GRENTECH_GPIO_EXTERNAL_LNA0); + ath79_wmac_set_ext_lna_gpio(1, GRENTECH_GPIO_EXTERNAL_LNA1); + + ath79_init_mac(tmpmac, art + GRENTECH_MAC_OFFSET, 1); + ath79_register_wmac(art + GRENTECH_WMAC_CALDATA_OFFSET, tmpmac); + + /* AR9382 */ + ath79_init_mac(tmpmac, art + GRENTECH_MAC_OFFSET, 2); + ap9x_pci_setup_wmac_led_pin(0, 6); + ap91_pci_init(art + GRENTECH_PCIE_CALDATA_OFFSET, tmpmac); + + ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_RGMII_GMAC0); + + ath79_register_mdio(0, 0x0); + + ath79_init_mac(ath79_eth0_data.mac_addr, art + GRENTECH_MAC_OFFSET, 0); + + mdiobus_register_board_info(grentech_mdio0_info, + ARRAY_SIZE(grentech_mdio0_info)); + + /* GMAC0 is connected to a RTL8211E Gigabit PHY */ + ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; + ath79_eth0_data.phy_mask = BIT(1); + ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev; + ath79_eth0_pll_data.pll_1000 = 0x46000000; + ath79_eth0_pll_data.pll_100 = 0x0101; + ath79_eth0_pll_data.pll_10 = 0x1313; + ath79_register_eth(0); +} + +MIPS_MACHINE(ATH79_MACH_SGR_W500_N85B_V2, "SGRW500N85BV2", "GRENTECH SGR-W500-N85b v2.0", + grentech_setup); diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr941n-v7.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr941n-v7.c deleted file mode 100644 index 8afdb4723..000000000 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr941n-v7.c +++ /dev/null @@ -1,279 +0,0 @@ -/* - * TP-LINK TL-WR941N v7 board support - * - * Copyright (C) 2012 Gabor Juhos - * Copyright (C) 2014 Weijie Gao - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published - * by the Free Software Foundation. - */ - -#include -#include -#include -#include -#include -#include -#include - -#include - -#include "common.h" -#include "dev-ap9x-pci.h" -#include "dev-eth.h" -#include "dev-gpio-buttons.h" -#include "dev-leds-gpio.h" -#include "dev-m25p80.h" -#include "dev-spi.h" -#include "dev-usb.h" -#include "dev-wmac.h" -#include "machtypes.h" - -#define WR941NV7_GPIO_LED_WLAN 12 -#define WR941NV7_GPIO_LED_SYSTEM 19 -#define WR941NV7_GPIO_LED_QSS 15 - -#define WR941NV7_GPIO_BTN_RESET 16 - -#define WR941NV7_KEYS_POLL_INTERVAL 20 /* msecs */ -#define WR941NV7_KEYS_DEBOUNCE_INTERVAL (3 * WR941NV7_KEYS_POLL_INTERVAL) - -#define ATH_MII_MGMT_CMD 0x24 -#define ATH_MGMT_CMD_READ 0x1 - -#define ATH_MII_MGMT_ADDRESS 0x28 -#define ATH_ADDR_SHIFT 8 - -#define ATH_MII_MGMT_CTRL 0x2c -#define ATH_MII_MGMT_STATUS 0x30 - -#define ATH_MII_MGMT_IND 0x34 -#define ATH_MGMT_IND_BUSY (1 << 0) -#define ATH_MGMT_IND_INVALID (1 << 2) - -static const char *wr941nv7_part_probes[] = { - "tp-link", - NULL, -}; - -static struct flash_platform_data wr941nv7_flash_data = { - .part_probes = wr941nv7_part_probes, -}; - -static struct gpio_led wr941nv7_leds_gpio[] __initdata = { - { - .name = "tp-link:green:qss", - .gpio = WR941NV7_GPIO_LED_QSS, - .active_low = 1, - }, - { - .name = "tp-link:green:system", - .gpio = WR941NV7_GPIO_LED_SYSTEM, - .active_low = 1, - }, - { - .name = "tp-link:green:wlan", - .gpio = WR941NV7_GPIO_LED_WLAN, - .active_low = 1, - }, -}; - -static struct gpio_keys_button wr941nv7_gpio_keys[] __initdata = { - { - .desc = "reset", - .type = EV_KEY, - .code = KEY_RESTART, - .debounce_interval = WR941NV7_KEYS_DEBOUNCE_INTERVAL, - .gpio = WR941NV7_GPIO_BTN_RESET, - .active_low = 1, - }, -}; - -static struct mdio_board_info wr941nv7_mdio0_info[] = { - { - .bus_id = "ag71xx-mdio.0", - .phy_addr = 0, - .platform_data = NULL, - }, -}; - -static unsigned long __init ath_gmac_reg_rd(unsigned long reg) -{ - void __iomem *base; - unsigned long t; - - base = ioremap(AR71XX_GE0_BASE, AR71XX_GE0_SIZE); - - t = __raw_readl(base + reg); - - iounmap(base); - - return t; -} - -static void __init ath_gmac_reg_wr(unsigned long reg, unsigned long value) -{ - void __iomem *base; - unsigned long t = value; - - base = ioremap(AR71XX_GE0_BASE, AR71XX_GE0_SIZE); - - __raw_writel(t, base + reg); - - iounmap(base); -} - -static void __init phy_reg_write(unsigned char phy_addr, unsigned char reg, unsigned short data) -{ - unsigned short addr = (phy_addr << ATH_ADDR_SHIFT) | reg; - volatile int rddata; - unsigned short ii = 0xFFFF; - - do - { - udelay(5); - rddata = ath_gmac_reg_rd(ATH_MII_MGMT_IND) & 0x1; - } while (rddata && --ii); - - ath_gmac_reg_wr(ATH_MII_MGMT_ADDRESS, addr); - ath_gmac_reg_wr(ATH_MII_MGMT_CTRL, data); - - do - { - udelay(5); - rddata = ath_gmac_reg_rd(ATH_MII_MGMT_IND) & 0x1; - } while (rddata && --ii); -} - -static unsigned short __init phy_reg_read(unsigned char phy_addr, unsigned char reg) -{ - unsigned short addr = (phy_addr << ATH_ADDR_SHIFT) | reg, val; - volatile int rddata; - unsigned short ii = 0xffff; - - do - { - udelay(5); - rddata = ath_gmac_reg_rd(ATH_MII_MGMT_IND) & 0x1; - } while (rddata && --ii); - - ath_gmac_reg_wr(ATH_MII_MGMT_CMD, 0x0); - ath_gmac_reg_wr(ATH_MII_MGMT_ADDRESS, addr); - ath_gmac_reg_wr(ATH_MII_MGMT_CMD, ATH_MGMT_CMD_READ); - - do - { - udelay(5); - rddata = ath_gmac_reg_rd(ATH_MII_MGMT_IND) & 0x1; - } while (rddata && --ii); - - val = ath_gmac_reg_rd(ATH_MII_MGMT_STATUS); - ath_gmac_reg_wr(ATH_MII_MGMT_CMD, 0x0); - - return val; -} - -static void __init athrs27_reg_write(unsigned int s27_addr, unsigned int s27_write_data) -{ - unsigned int addr_temp; - unsigned int data; - unsigned char phy_address, reg_address; - - addr_temp = (s27_addr) >> 2; - data = addr_temp >> 7; - - phy_address = 0x1f; - reg_address = 0x10; - - phy_reg_write(phy_address, reg_address, data); - - phy_address = (0x17 & ((addr_temp >> 4) | 0x10)); - - reg_address = (((addr_temp << 1) & 0x1e) | 0x1); - data = (s27_write_data >> 16) & 0xffff; - phy_reg_write(phy_address, reg_address, data); - - reg_address = ((addr_temp << 1) & 0x1e); - data = s27_write_data & 0xffff; - phy_reg_write(phy_address, reg_address, data); -} - -static unsigned int __init athrs27_reg_read(unsigned int s27_addr) -{ - unsigned int addr_temp; - unsigned int s27_rd_csr_low, s27_rd_csr_high, s27_rd_csr; - unsigned int data; - unsigned char phy_address, reg_address; - - addr_temp = s27_addr >>2; - data = addr_temp >> 7; - - phy_address = 0x1f; - reg_address = 0x10; - - phy_reg_write(phy_address, reg_address, data); - - phy_address = (0x17 & ((addr_temp >> 4) | 0x10)); - reg_address = ((addr_temp << 1) & 0x1e); - s27_rd_csr_low = (unsigned int) phy_reg_read(phy_address, reg_address); - - reg_address = reg_address | 0x1; - s27_rd_csr_high = (unsigned int) phy_reg_read(phy_address, reg_address); - s27_rd_csr = (s27_rd_csr_high << 16) | s27_rd_csr_low ; - - return (s27_rd_csr); -} - -static void __init ar8236_reset(void) -{ - unsigned short i = 60; - - athrs27_reg_write(0x0, athrs27_reg_read(0x0) | 0x80000000); - while (i--) - { - mdelay(100); - if (!(athrs27_reg_read(0x0) & 0x80000000)) - break; - } -} - -static void __init wr941nv7_setup(void) -{ - u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); - u8 *art = (u8 *) KSEG1ADDR(0x1fff1000); - - ath79_register_m25p80(&wr941nv7_flash_data); - ath79_register_leds_gpio(-1, ARRAY_SIZE(wr941nv7_leds_gpio), - wr941nv7_leds_gpio); - ath79_register_gpio_keys_polled(-1, WR941NV7_KEYS_POLL_INTERVAL, - ARRAY_SIZE(wr941nv7_gpio_keys), - wr941nv7_gpio_keys); - - ath79_register_wmac(art, mac); - - ar8236_reset(); - - ath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_MII_GE0 | - QCA955X_ETH_CFG_MII_GE0_SLAVE); - - mdiobus_register_board_info(wr941nv7_mdio0_info, - ARRAY_SIZE(wr941nv7_mdio0_info)); - ath79_register_mdio(0, 0x0); - - ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0); - - /* GMAC0 is connected to an AR8236 switch */ - ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; - ath79_eth0_data.speed = SPEED_100; - ath79_eth0_data.duplex = DUPLEX_FULL; - ath79_eth0_data.phy_mask = BIT(0); - ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev; - ath79_register_eth(0); - - ath79_register_usb(); -} - -MIPS_MACHINE(ATH79_MACH_TL_WR941N_V7, "TL-WR941N-v7", - "TP-LINK TL-WR941N v7", - wr941nv7_setup); diff --git a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h index 6016a72c1..8d9b6b080 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h +++ b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h @@ -203,6 +203,7 @@ enum ath79_mach_type { ATH79_MACH_SC1750, /* Abicom SC1750 */ ATH79_MACH_SC300M, /* Abicom SC300M */ ATH79_MACH_SC450, /* Abicom SC450 */ + ATH79_MACH_SGR_W500_N85B_V2, /* GRENTECH SGR-W500-N85B v2 */ ATH79_MACH_SMART_300, /* NC-LINK SMART-300 */ ATH79_MACH_SOM9331, /* OpenEmbed SOM9331 */ ATH79_MACH_SR3200, /* YunCore SR3200 */ diff --git a/target/linux/ar71xx/image/legacy-devices.mk b/target/linux/ar71xx/image/legacy-devices.mk index e418282dd..5c37229e7 100644 --- a/target/linux/ar71xx/image/legacy-devices.mk +++ b/target/linux/ar71xx/image/legacy-devices.mk @@ -589,3 +589,9 @@ define LegacyDevice/NBG_460N_550N_550NH DEVICE_PACKAGES := kmod-rtc-pcf8563 endef LEGACY_DEVICES += NBG_460N_550N_550NH + +define LegacyDevice/SGRW500N85BV2 + DEVICE_TITLE := GRENTECH SGR-W500-N85b v2.0 board + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage +endef +LEGACY_DEVICES += SGRW500N85BV2 diff --git a/target/linux/ar71xx/image/legacy.mk b/target/linux/ar71xx/image/legacy.mk index 701116be4..f358b63e7 100644 --- a/target/linux/ar71xx/image/legacy.mk +++ b/target/linux/ar71xx/image/legacy.mk @@ -1004,6 +1004,7 @@ $(eval $(call SingleProfile,Zcomax,64k,ZCN1523H28,zcn-1523h-2-8,ZCN-1523H-2,ttyS $(eval $(call SingleProfile,Zcomax,64k,ZCN1523H516,zcn-1523h-5-16,ZCN-1523H-5,ttyS0,115200,$$(zcn1523h_mtdlayout))) $(eval $(call SingleProfile,ZyXEL,64k,NBG_460N_550N_550NH,nbg460n_550n_550nh,NBG460N,ttyS0,115200,NBG-460N)) +$(eval $(call SingleProfile,AthLzma,64k,SGRW500N85BV2,sgr-w500-n85b-v2,SGRW500N85BV2,ttyS0,115200,$$(ap147_mtdlayout),RKuImage)) endif # ifeq ($(SUBTARGET),generic)