Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tbblgm119
lede
提交
c11722d7
L
lede
项目概览
tbblgm119
/
lede
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
lede
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
c11722d7
编写于
11月 24, 2017
作者:
C
coolsnowwolf
提交者:
GitHub
11月 24, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #186 from imbrolla/master
添加sgr-w500-n85b-v2,2041 v1, 2041 v2机型
上级
3de04493
a13e5efc
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
185 addition
and
1 deletion
+185
-1
target/linux/ar71xx/base-files/etc/board.d/01_leds
target/linux/ar71xx/base-files/etc/board.d/01_leds
+3
-0
target/linux/ar71xx/base-files/etc/board.d/02_network
target/linux/ar71xx/base-files/etc/board.d/02_network
+1
-0
target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/diag.sh
+3
-0
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/ar71xx.sh
+3
-0
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+1
-0
target/linux/ar71xx/config-4.4
target/linux/ar71xx/config-4.4
+1
-0
target/linux/ar71xx/config-4.9
target/linux/ar71xx/config-4.9
+1
-0
target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
+11
-0
target/linux/ar71xx/files/arch/mips/ath79/Makefile
target/linux/ar71xx/files/arch/mips/ath79/Makefile
+1
-0
target/linux/ar71xx/files/arch/mips/ath79/mach-sgr-w500-n85b-v2.c
...inux/ar71xx/files/arch/mips/ath79/mach-sgr-w500-n85b-v2.c
+134
-0
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr941n-v7.c
...et/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr941n-v7.c
+0
-0
target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+1
-0
target/linux/ar71xx/image/legacy-devices.mk
target/linux/ar71xx/image/legacy-devices.mk
+6
-0
target/linux/ar71xx/image/legacy.mk
target/linux/ar71xx/image/legacy.mk
+1
-0
target/linux/ar71xx/image/tp-link.mk
target/linux/ar71xx/image/tp-link.mk
+18
-1
未找到文件。
target/linux/ar71xx/base-files/etc/board.d/01_leds
浏览文件 @
c11722d7
...
...
@@ -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"
...
...
target/linux/ar71xx/base-files/etc/board.d/02_network
浏览文件 @
c11722d7
...
...
@@ -132,6 +132,7 @@ ar71xx_setup_interfaces()
unifiac-lite|
\
wi2a-ac200i|
\
wndap360|
\
sgr-w500-n85b-v2
|
\
wp543
)
ucidef_set_interface_lan
"eth0"
;;
...
...
target/linux/ar71xx/base-files/etc/diag.sh
浏览文件 @
c11722d7
...
...
@@ -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"
;;
...
...
target/linux/ar71xx/base-files/lib/ar71xx.sh
浏览文件 @
c11722d7
...
...
@@ -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"
;;
...
...
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
浏览文件 @
c11722d7
...
...
@@ -328,6 +328,7 @@ platform_check_image() {
hornet-ub|
\
mr12|
\
mr16|
\
sgr-w500-n85b-v2|
\
zbt-we1526|
\
zcn-1523h-2|
\
zcn-1523h-5
)
...
...
target/linux/ar71xx/config-4.4
浏览文件 @
c11722d7
...
...
@@ -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
...
...
target/linux/ar71xx/config-4.9
浏览文件 @
c11722d7
...
...
@@ -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
...
...
target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
浏览文件 @
c11722d7
...
...
@@ -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
target/linux/ar71xx/files/arch/mips/ath79/Makefile
浏览文件 @
c11722d7
...
...
@@ -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
...
...
target/linux/ar71xx/files/arch/mips/ath79/mach-sgr-w500-n85b-v2.c
0 → 100755
浏览文件 @
c11722d7
/*
* GRENTECH SGR-W500-N85b v2.0 board support
*
* Copyright (c) 2017 Weijie Gao <hackpascal@gmail.com>
*
* 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 <linux/pci.h>
#include <linux/phy.h>
#include <linux/gpio.h>
#include <linux/platform_device.h>
#include <linux/ath9k_platform.h>
#include <asm/mach-ath79/ar71xx_regs.h>
#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
);
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr941n-v7.c
100644 → 100755
浏览文件 @
c11722d7
文件模式从 100644 更改为 100755
target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
浏览文件 @
c11722d7
...
...
@@ -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 */
...
...
target/linux/ar71xx/image/legacy-devices.mk
浏览文件 @
c11722d7
...
...
@@ -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
target/linux/ar71xx/image/legacy.mk
浏览文件 @
c11722d7
...
...
@@ -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)
...
...
target/linux/ar71xx/image/tp-link.mk
浏览文件 @
c11722d7
...
...
@@ -1102,6 +1102,14 @@ define Device/tl-wr941nd-v6-cn
TPLINK_HWID
:=
0x09410006
endef
define
Device/tl-wr2041nd-v1
$(Device/tplink-8mlzma)
DEVICE_TITLE
:=
TP-LINK TL-WR2041N/ND v1
BOARDNAME
:=
TL-WDR3500
DEVICE_PROFILE
:=
TLWR2041
TPLINK_HWID
:=
0x20410001
endef
define
Device/tl-wr942n-v1
DEVICE_TITLE
:=
TP-LINK TL-WR942N v1
DEVICE_PACKAGES
:=
kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
...
...
@@ -1118,7 +1126,7 @@ define Device/tl-wr942n-v1
SUPPORTED_DEVICES
:=
tl-wr942n-v1
endef
TARGET_DEVICES
+=
tl-wr940n-v4 tl-wr941nd-v2 tl-wr941nd-v3 tl-wr941nd-v4 tl-wr941nd-v5 tl-wr941nd-v6 tl-wr941nd-v6-cn tl-wr942n-v1
TARGET_DEVICES
+=
tl-wr940n-v4 tl-wr941nd-v2 tl-wr941nd-v3 tl-wr941nd-v4 tl-wr941nd-v5 tl-wr941nd-v6 tl-wr941nd-v6-cn tl-wr942n-v1
tl-wr2041nd-v1
define
Device/tl-wr941n-v7
$(Device/tplink-8mlzma)
...
...
@@ -1160,3 +1168,12 @@ define Device/tl-wr882n-v1
TPLINK_HWID
:=
0x08820001
endef
TARGET_DEVICES
+=
tl-wr882n-v1
define
Device/tl-wr2041nd-v2
$(Device/tplink-8mlzma)
DEVICE_TITLE
:=
TP-LINK TL-WR2041N/ND v2
BOARDNAME
:=
TL-WR941N-v7
DEVICE_PROFILE
:=
TLWR2041
TPLINK_HWID
:=
0x20410002
endef
TARGET_DEVICES
+=
tl-wr2041nd-v2
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录