Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 14.39 KB | None | 0 0
  1. diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
  2. index e5a943374f..b353f82397 100755
  3. --- a/target/linux/ar71xx/base-files/etc/board.d/02_network
  4. +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
  5. @@ -145,6 +145,7 @@ ar71xx_setup_interfaces()
  6.     gl-inet|\
  7.     gl-mifi|\
  8.     jwap003|\
  9. +  minibox-v3|\
  10.     om2p-hsv4|\
  11.     om2pv4|\
  12.     pb42|\
  13. diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
  14. index 5ef620b861..2ed6dd3c14 100644
  15. --- a/target/linux/ar71xx/base-files/etc/diag.sh
  16. +++ b/target/linux/ar71xx/base-files/etc/diag.sh
  17. @@ -25,6 +25,7 @@ get_status_led() {
  18.     antminer-r1|\
  19.     eap120|\
  20.     minibox-v1|\
  21. +  minibox-v3|\
  22.     som9331|\
  23.     sr3200|\
  24.     tl-wr802n-v2|\
  25. diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  26. index 99035632e6..251010f747 100755
  27. --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
  28. +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
  29. @@ -287,11 +287,17 @@ tplink_board_detect() {
  30.     "360000"*)
  31.         model="TP-Link TL-WDR3600"
  32.         ;;
  33. -   "3C0001"*)
  34. +   "3c0001"*)
  35.         model="OOLITE"
  36. +
  37. +       [ "$hwid" = "3c00010c" -a "$mid" = "00000001" ] && {
  38. +           model="MINIBOX_V3"
  39. +           hwver=""
  40. +       }
  41.         ;;
  42. -   "3C0002"*)
  43. +   "3c0002"*)
  44.         model="MINIBOX_V1"
  45. +       hwver=""
  46.         ;;
  47.     "430000"*)
  48.         model="TP-Link TL-WDR4300"
  49. @@ -720,6 +726,9 @@ ar71xx_board_detect() {
  50.     *"MiniBox V1.0")
  51.         name="minibox-v1"
  52.         ;;
  53. +   *"MiniBox V3")
  54. +       name="minibox-v3"
  55. +       ;;
  56.     *"MR12")
  57.         name="mr12"
  58.         ;;
  59. diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  60. index 18e5e41dd0..bfb0968606 100755
  61. --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  62. +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
  63. @@ -387,6 +387,7 @@ platform_check_image() {
  64.     gl-inet|\
  65.     mc-mac1200r|\
  66.     minibox-v1|\
  67. +  minibox-v3|\
  68.     omy-g1|\
  69.     omy-x1|\
  70.     onion-omega|\
  71. @@ -456,6 +457,7 @@ platform_check_image() {
  72.     tl-wr941nd|\
  73.     tl-wr941nd-v5|\
  74.     tl-wr941nd-v6)
  75. +
  76.         local magic_ver="0100"
  77.  
  78.         case "$board" in
  79. diff --git a/target/linux/ar71xx/config-4.4 b/target/linux/ar71xx/config-4.4
  80. index 4793bf4deb..3c5a9ea33b 100644
  81. --- a/target/linux/ar71xx/config-4.4
  82. +++ b/target/linux/ar71xx/config-4.4
  83. @@ -119,6 +119,7 @@ CONFIG_ATH79_MACH_GL_INET=y
  84.  CONFIG_ATH79_MACH_GL_MIFI=y
  85.  CONFIG_ATH79_MACH_GL_USB150=y
  86.  CONFIG_ATH79_MACH_GS_MINIBOX_V1=y
  87. +CONFIG_ATH79_MACH_GS_MINIBOX_V3=y
  88.  CONFIG_ATH79_MACH_GS_OOLITE=y
  89.  # CONFIG_ATH79_MACH_HIVEAP_121 is not set
  90.  CONFIG_ATH79_MACH_HIWIFI_HC6361=y
  91. diff --git a/target/linux/ar71xx/config-4.9 b/target/linux/ar71xx/config-4.9
  92. index 84b2a0b72b..d299efafd6 100644
  93. --- a/target/linux/ar71xx/config-4.9
  94. +++ b/target/linux/ar71xx/config-4.9
  95. @@ -117,6 +117,7 @@ CONFIG_ATH79_MACH_GL_INET=y
  96.  CONFIG_ATH79_MACH_GL_MIFI=y
  97.  CONFIG_ATH79_MACH_GL_USB150=y
  98.  CONFIG_ATH79_MACH_GS_MINIBOX_V1=y
  99. +CONFIG_ATH79_MACH_GS_MINIBOX_V3=y
  100.  CONFIG_ATH79_MACH_GS_OOLITE=y
  101.  # CONFIG_ATH79_MACH_HIVEAP_121 is not set
  102.  CONFIG_ATH79_MACH_HIWIFI_HC6361=y
  103. @@ -221,8 +222,8 @@ CONFIG_ATH79_MACH_UBNT=y
  104.  CONFIG_ATH79_MACH_UBNT_UNIFIAC=y
  105.  CONFIG_ATH79_MACH_UBNT_XM=y
  106.  CONFIG_ATH79_MACH_WEIO=y
  107. -# CONFIG_ATH79_MACH_WI2A_AC200I is not set
  108.  CONFIG_ATH79_MACH_WHR_HP_G300N=y
  109. +# CONFIG_ATH79_MACH_WI2A_AC200I is not set
  110.  CONFIG_ATH79_MACH_WLAE_AG300N=y
  111.  CONFIG_ATH79_MACH_WLR8100=y
  112.  CONFIG_ATH79_MACH_WNDAP360=y
  113. @@ -431,13 +432,24 @@ CONFIG_OF_NET=y
  114.  CONFIG_OF_PCI=y
  115.  CONFIG_OF_PCI_IRQ=y
  116.  CONFIG_PCI=y
  117. +CONFIG_PCIEAER=y
  118. +CONFIG_PCIEASPM=y
  119. +# CONFIG_PCIEASPM_DEBUG is not set
  120. +CONFIG_PCIEASPM_DEFAULT=y
  121. +# CONFIG_PCIEASPM_PERFORMANCE is not set
  122. +# CONFIG_PCIEASPM_POWERSAVE is not set
  123. +CONFIG_PCIEPORTBUS=y
  124. +CONFIG_PCIE_DPC=y
  125. +CONFIG_PCIE_PTM=y
  126.  CONFIG_PCI_AR724X=y
  127.  CONFIG_PCI_DISABLE_COMMON_QUIRKS=y
  128.  CONFIG_PCI_DOMAINS=y
  129.  CONFIG_PCI_DRIVERS_LEGACY=y
  130. +CONFIG_PCI_REALLOC_ENABLE_AUTO=y
  131.  CONFIG_PERF_USE_VMALLOC=y
  132.  CONFIG_PGTABLE_LEVELS=2
  133.  CONFIG_PHYLIB=y
  134. +CONFIG_RAS=y
  135.  CONFIG_RATIONAL=y
  136.  # CONFIG_RCU_STALL_COMMON is not set
  137.  CONFIG_RTL8306_PHY=y
  138. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
  139. index 5cb4f7ed3e..19810a7a0f 100644
  140. --- a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
  141. +++ b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
  142. @@ -825,6 +825,17 @@ config ATH79_MACH_GS_MINIBOX_V1
  143.     select ATH79_DEV_USB
  144.     select ATH79_DEV_WMAC
  145.  
  146. +config ATH79_MACH_GS_MINIBOX_V3
  147. +  bool "Gainstrong Minibox V3 support"
  148. +  select SOC_QCA953X
  149. +  select ATH79_DEV_GPIO_BUTTONS
  150. +  select ATH79_DEV_LEDS_GPIO
  151. +  select ATH79_DEV_SPI
  152. +  select ATH79_DEV_USB
  153. +  select ATH79_DEV_WMAC
  154. +  select ATH79_DEV_ETH
  155. +  select ATH79_DEV_M25P80
  156. +
  157.  config ATH79_MACH_GS_OOLITE
  158.     bool "GS Oolite V1 support"
  159.     select SOC_AR933X
  160. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Makefile b/target/linux/ar71xx/files/arch/mips/ath79/Makefile
  161. index 7d12282baa..e225d3b7d2 100644
  162. --- a/target/linux/ar71xx/files/arch/mips/ath79/Makefile
  163. +++ b/target/linux/ar71xx/files/arch/mips/ath79/Makefile
  164. @@ -125,6 +125,7 @@ obj-$(CONFIG_ATH79_MACH_GL_INET)        += mach-gl-inet.o
  165.  obj-$(CONFIG_ATH79_MACH_GL_MIFI)       += mach-gl-mifi.o
  166.  obj-$(CONFIG_ATH79_MACH_GL_USB150)     += mach-gl-usb150.o
  167.  obj-$(CONFIG_ATH79_MACH_GS_MINIBOX_V1)     += mach-gs-minibox-v1.o
  168. +obj-$(CONFIG_ATH79_MACH_GS_MINIBOX_V3)     += mach-gs-minibox-v3.o
  169.  obj-$(CONFIG_ATH79_MACH_GS_OOLITE)     += mach-gs-oolite.o
  170.  obj-$(CONFIG_ATH79_MACH_HIVEAP_121)        += mach-hiveap-121.o
  171.  obj-$(CONFIG_ATH79_MACH_HIWIFI_HC6361)     += mach-hiwifi-hc6361.o
  172. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-minibox-v3.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-minibox-v3.c
  173. index 123743b648..4517d10053 100644
  174. --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-minibox-v3.c
  175. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-minibox-v3.c
  176. @@ -18,13 +18,18 @@
  177.   *
  178.   */
  179.  
  180. +#include <linux/phy.h>
  181. +#include <linux/gpio.h>
  182. +#include <linux/pci.h>
  183.  #include <linux/platform_device.h>
  184.  #include <linux/ath9k_platform.h>
  185.  #include <linux/ar8216_platform.h>
  186.  
  187. +#include <asm/mach-ath79/ath79.h>
  188.  #include <asm/mach-ath79/ar71xx_regs.h>
  189.  
  190.  #include "common.h"
  191. +#include "dev-ap9x-pci.h"
  192.  #include "dev-eth.h"
  193.  #include "dev-gpio-buttons.h"
  194.  #include "dev-leds-gpio.h"
  195. @@ -33,6 +38,7 @@
  196.  #include "dev-usb.h"
  197.  #include "dev-wmac.h"
  198.  #include "machtypes.h"
  199. +#include "pci.h"
  200.  
  201.  #define GS_MINIBOX_V3_GPIO_LED_STATUS      14
  202.  #define GS_MINIBOX_V3_GPIO_BTN_RST                 17
  203. @@ -53,7 +59,7 @@ static struct flash_platform_data gs_minibox_v3_flash_data = {
  204.  
  205.  static struct gpio_led gs_minibox_v3_leds_gpio[] __initdata = {
  206.     {
  207. -       .name       = "minibox_v3:status",
  208. +       .name       = "minibox-v3:green:system",
  209.         .gpio       = GS_MINIBOX_V3_GPIO_LED_STATUS,
  210.         .active_low = 1,
  211.     },
  212. @@ -86,12 +92,13 @@ static void __init gs_minibox_v3_setup(void)
  213.     ath79_register_m25p80(&gs_minibox_v3_flash_data);
  214.     gs_minibox_v3_gpio_led_setup();
  215.  
  216. -        ath79_register_usb();
  217. +  ath79_register_usb();
  218.  
  219. -   ath79_register_wmac(art + GS_MINIBOX_V3_WMAC_CALDATA_OFFSET, NULL);
  220.     ath79_register_mdio(0, 0x0);
  221.     ath79_register_mdio(1, 0x0);
  222.  
  223. +  ath79_register_wmac(art + GS_MINIBOX_V3_WMAC_CALDATA_OFFSET, NULL);
  224. +
  225.     ath79_init_mac(ath79_eth0_data.mac_addr, art + GS_MINIBOX_V3_MAC0_OFFSET, 0);
  226.     ath79_init_mac(ath79_eth1_data.mac_addr, art + GS_MINIBOX_V3_MAC1_OFFSET, 0);
  227.  
  228. @@ -109,6 +116,8 @@ static void __init gs_minibox_v3_setup(void)
  229.     ath79_switch_data.phy_poll_mask |= BIT(4);
  230.     ath79_switch_data.phy4_mii_en = 1;
  231.     ath79_register_eth(1);
  232. +
  233. +  ath79_register_pci();
  234.  }
  235.  
  236.  MIPS_MACHINE(ATH79_MACH_GS_MINIBOX_V3, "MINIBOX-V3", "Minibox V3",
  237. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
  238. index 01472b679f..6d2a050c87 100644
  239. --- a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
  240. +++ b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
  241. @@ -117,6 +117,7 @@ enum ath79_mach_type {
  242.     ATH79_MACH_GL_MIFI,         /* GL-MIFI support */
  243.     ATH79_MACH_GL_USB150,           /* GL.iNet GL-USB150 */
  244.     ATH79_MACH_GS_MINIBOX_V1,       /* Gainstrong MiniBox V1.0 */
  245. +   ATH79_MACH_GS_MINIBOX_V3,       /* Gainstrong MiniBox V3 */
  246.     ATH79_MACH_GS_OOLITE,           /* GS OOLITE V1.0 */
  247.     ATH79_MACH_HIVEAP_121,          /* Aerohive HiveAP-121*/
  248.     ATH79_MACH_HIWIFI_HC6361,       /* HiWiFi HC6361 */
  249. diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk
  250. index 3c5fcc3f3c..6db8e61490 100644
  251. --- a/target/linux/ar71xx/image/generic.mk
  252. +++ b/target/linux/ar71xx/image/generic.mk
  253. @@ -608,6 +608,18 @@ define Device/minibox-v1
  254.  endef
  255.  TARGET_DEVICES += minibox-v1
  256.  
  257. +define Device/minibox-v3
  258. +  $(Device/tplink-16mlzma)
  259. +  DEVICE_TITLE := Gainstrong MiniBox V3
  260. +  DEVICE_PACKAGES := kmod-usb-core kmod-usb2  kmod-usb-ledtrig-usbport \
  261. +                       kmod-ath10k ath10k-firmware-qca9887 -swconfig -uboot-envtools
  262. +  BOARDNAME := MINIBOX-V3
  263. +  DEVICE_PROFILE := MINIBOXV3
  264. +  TPLINK_HWID := 0x3C00010C
  265. +  CONSOLE := ttyATH0,115200
  266. +endef
  267. +TARGET_DEVICES += minibox-v3
  268. +
  269.  define Device/omy-g1
  270.    $(Device/tplink-16mlzma)
  271.    DEVICE_TITLE := OMYlink OMY-G1
  272. diff --git a/target/linux/ar71xx/mikrotik/config-default b/target/linux/ar71xx/mikrotik/config-default
  273. index 42f9882bb2..4814671d54 100644
  274. --- a/target/linux/ar71xx/mikrotik/config-default
  275. +++ b/target/linux/ar71xx/mikrotik/config-default
  276. @@ -83,6 +83,7 @@
  277.  # CONFIG_ATH79_MACH_GL_MIFI is not set
  278.  # CONFIG_ATH79_MACH_GL_USB150 is not set
  279.  # CONFIG_ATH79_MACH_GS_MINIBOX_V1 is not set
  280. +# CONFIG_ATH79_MACH_GS_MINIBOX_V3 is not set
  281.  # CONFIG_ATH79_MACH_GS_OOLITE is not set
  282.  # CONFIG_ATH79_MACH_HIWIFI_HC6361 is not set
  283.  # CONFIG_ATH79_MACH_HORNET_UB is not set
  284. diff --git a/target/linux/ar71xx/nand/config-default b/target/linux/ar71xx/nand/config-default
  285. index 340d64cab9..cf1032b67c 100644
  286. --- a/target/linux/ar71xx/nand/config-default
  287. +++ b/target/linux/ar71xx/nand/config-default
  288. @@ -84,6 +84,7 @@ CONFIG_ATH79_MACH_DOMYWIFI_DW33D=y
  289.  # CONFIG_ATH79_MACH_GL_MIFI is not set
  290.  # CONFIG_ATH79_MACH_GL_USB150 is not set
  291.  # CONFIG_ATH79_MACH_GS_MINIBOX_V1 is not set
  292. +# CONFIG_ATH79_MACH_GS_MINIBOX_V3 is not set
  293.  # CONFIG_ATH79_MACH_GS_OOLITE is not set
  294.  CONFIG_ATH79_MACH_HIVEAP_121=y
  295.  # CONFIG_ATH79_MACH_HIWIFI_HC6361 is not set
  296. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-minibox-v3.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-minibox-v3.c
  297. new file mode 100644
  298. index 0000000000..123743b648
  299. --- /dev/null
  300. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-minibox-v3.c
  301. @@ -0,0 +1,115 @@
  302. +/*
  303. + * Atheros GS_MINIBOX_V3 reference board support
  304. + *
  305. + * Copyright (c) 2013 The Linux Foundation. All rights reserved.
  306. + * Copyright (c) 2012 Gabor Juhos <juhosg@openwrt.org>
  307. + *
  308. + * Permission to use, copy, modify, and/or distribute this software for any
  309. + * purpose with or without fee is hereby granted, provided that the above
  310. + * copyright notice and this permission notice appear in all copies.
  311. + *
  312. + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  313. + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  314. + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  315. + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  316. + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  317. + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  318. + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  319. + *
  320. + */
  321. +
  322. +#include <linux/platform_device.h>
  323. +#include <linux/ath9k_platform.h>
  324. +#include <linux/ar8216_platform.h>
  325. +
  326. +#include <asm/mach-ath79/ar71xx_regs.h>
  327. +
  328. +#include "common.h"
  329. +#include "dev-eth.h"
  330. +#include "dev-gpio-buttons.h"
  331. +#include "dev-leds-gpio.h"
  332. +#include "dev-m25p80.h"
  333. +#include "dev-spi.h"
  334. +#include "dev-usb.h"
  335. +#include "dev-wmac.h"
  336. +#include "machtypes.h"
  337. +
  338. +#define GS_MINIBOX_V3_GPIO_LED_STATUS      14
  339. +#define GS_MINIBOX_V3_GPIO_BTN_RST                 17
  340. +#define GS_MINIBOX_V3_KEYS_POLL_INTERVAL           20  /* msecs */
  341. +#define GS_MINIBOX_V3_KEYS_DEBOUNCE_INTERVAL   (3 * GS_MINIBOX_V3_KEYS_POLL_INTERVAL)
  342. +#define GS_MINIBOX_V3_MAC0_OFFSET                  0
  343. +#define GS_MINIBOX_V3_MAC1_OFFSET                  6
  344. +#define GS_MINIBOX_V3_WMAC_CALDATA_OFFSET          0x1000
  345. +
  346. +static const char *gs_minibox_v3_part_probes[] = {
  347. +        "tp-link",
  348. +        NULL,
  349. +};
  350. +
  351. +static struct flash_platform_data gs_minibox_v3_flash_data = {
  352. +        .part_probes    = gs_minibox_v3_part_probes,
  353. +};
  354. +
  355. +static struct gpio_led gs_minibox_v3_leds_gpio[] __initdata = {
  356. +   {
  357. +       .name       = "minibox_v3:status",
  358. +       .gpio       = GS_MINIBOX_V3_GPIO_LED_STATUS,
  359. +       .active_low = 1,
  360. +   },
  361. +};
  362. +
  363. +static struct gpio_keys_button gs_minibox_v3_gpio_keys[] __initdata = {
  364. +   {
  365. +       .desc       = "reset button",
  366. +       .type       = EV_KEY,
  367. +       .code       = KEY_RESTART,
  368. +       .debounce_interval = GS_MINIBOX_V3_KEYS_DEBOUNCE_INTERVAL,
  369. +       .gpio       = GS_MINIBOX_V3_GPIO_BTN_RST,
  370. +       .active_low = 1,
  371. +   },
  372. +};
  373. +
  374. +static void __init gs_minibox_v3_gpio_led_setup(void)
  375. +{
  376. +   ath79_register_leds_gpio(-1, ARRAY_SIZE(gs_minibox_v3_leds_gpio),
  377. +           gs_minibox_v3_leds_gpio);
  378. +   ath79_register_gpio_keys_polled(-1, GS_MINIBOX_V3_KEYS_POLL_INTERVAL,
  379. +           ARRAY_SIZE(gs_minibox_v3_gpio_keys),
  380. +           gs_minibox_v3_gpio_keys);
  381. +}
  382. +
  383. +static void __init gs_minibox_v3_setup(void)
  384. +{
  385. +   u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
  386. +
  387. +   ath79_register_m25p80(&gs_minibox_v3_flash_data);
  388. +   gs_minibox_v3_gpio_led_setup();
  389. +
  390. +        ath79_register_usb();
  391. +
  392. +   ath79_register_wmac(art + GS_MINIBOX_V3_WMAC_CALDATA_OFFSET, NULL);
  393. +   ath79_register_mdio(0, 0x0);
  394. +   ath79_register_mdio(1, 0x0);
  395. +
  396. +   ath79_init_mac(ath79_eth0_data.mac_addr, art + GS_MINIBOX_V3_MAC0_OFFSET, 0);
  397. +   ath79_init_mac(ath79_eth1_data.mac_addr, art + GS_MINIBOX_V3_MAC1_OFFSET, 0);
  398. +
  399. +   /* WAN port */
  400. +   ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
  401. +   ath79_eth0_data.speed = SPEED_100;
  402. +   ath79_eth0_data.duplex = DUPLEX_FULL;
  403. +   ath79_eth0_data.phy_mask = BIT(4);
  404. +   ath79_register_eth(0);
  405. +
  406. +   /* LAN ports */
  407. +   ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
  408. +   ath79_eth1_data.speed = SPEED_1000;
  409. +   ath79_eth1_data.duplex = DUPLEX_FULL;
  410. +   ath79_switch_data.phy_poll_mask |= BIT(4);
  411. +   ath79_switch_data.phy4_mii_en = 1;
  412. +   ath79_register_eth(1);
  413. +}
  414. +
  415. +MIPS_MACHINE(ATH79_MACH_GS_MINIBOX_V3, "MINIBOX-V3", "Minibox V3",
  416. +        gs_minibox_v3_setup);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement