projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add kernel support for the OpenMesh OM2P-HSv3
[openwrt/openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
ath79
/
mach-om2p.c
diff --git
a/target/linux/ar71xx/files/arch/mips/ath79/mach-om2p.c
b/target/linux/ar71xx/files/arch/mips/ath79/mach-om2p.c
index f6165273d8ea5e81989e20fc6328004aaf660750..3b282a36ea3c8f4ed3e7795529c24af2e55fad98 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ath79/mach-om2p.c
+++ b/
target/linux/ar71xx/files/arch/mips/ath79/mach-om2p.c
@@
-31,7
+31,7
@@
#define OM2P_GPIO_LED_YELLOW 15
#define OM2P_GPIO_LED_LAN 16
#define OM2P_GPIO_LED_WAN 17
#define OM2P_GPIO_LED_YELLOW 15
#define OM2P_GPIO_LED_LAN 16
#define OM2P_GPIO_LED_WAN 17
-#define OM2P_GPIO_BTN_RESET 1
1
+#define OM2P_GPIO_BTN_RESET 1
#define OM2P_KEYS_POLL_INTERVAL 20 /* msecs */
#define OM2P_KEYS_DEBOUNCE_INTERVAL (3 * OM2P_KEYS_POLL_INTERVAL)
#define OM2P_KEYS_POLL_INTERVAL 20 /* msecs */
#define OM2P_KEYS_DEBOUNCE_INTERVAL (3 * OM2P_KEYS_POLL_INTERVAL)
@@
-162,8
+162,8
@@
static void __init om2p_lc_setup(void)
ARRAY_SIZE(om2p_gpio_keys),
om2p_gpio_keys);
ARRAY_SIZE(om2p_gpio_keys),
om2p_gpio_keys);
- ath79_init_mac(ath79_eth
1
_data.mac_addr, mac1, 0);
- ath79_init_mac(ath79_eth
0
_data.mac_addr, mac2, 0);
+ ath79_init_mac(ath79_eth
0
_data.mac_addr, mac1, 0);
+ ath79_init_mac(ath79_eth
1
_data.mac_addr, mac2, 0);
ath79_register_mdio(0, 0x0);
ath79_register_mdio(0, 0x0);
@@
-174,6
+174,7
@@
static void __init om2p_lc_setup(void)
}
MIPS_MACHINE(ATH79_MACH_OM2P_LC, "OM2P-LC", "OpenMesh OM2P LC", om2p_lc_setup);
}
MIPS_MACHINE(ATH79_MACH_OM2P_LC, "OM2P-LC", "OpenMesh OM2P LC", om2p_lc_setup);
+MIPS_MACHINE(ATH79_MACH_OM2Pv2, "OM2Pv2", "OpenMesh OM2Pv2", om2p_lc_setup);
static void __init om2p_hs_setup(void)
{
static void __init om2p_hs_setup(void)
{
@@
-187,7
+188,7
@@
static void __init om2p_hs_setup(void)
/* enable reset button */
ath79_gpio_output_select(OM2P_GPIO_BTN_RESET, AR934X_GPIO_OUT_GPIO);
/* enable reset button */
ath79_gpio_output_select(OM2P_GPIO_BTN_RESET, AR934X_GPIO_OUT_GPIO);
- ath79_gpio_function_enable(AR93
3
X_GPIO_FUNC_JTAG_DISABLE);
+ ath79_gpio_function_enable(AR93
4
X_GPIO_FUNC_JTAG_DISABLE);
om2p_leds_gpio[4].gpio = OM2P_GPIO_LED_WAN;
om2p_leds_gpio[5].gpio = OM2P_GPIO_LED_LAN;
om2p_leds_gpio[4].gpio = OM2P_GPIO_LED_WAN;
om2p_leds_gpio[5].gpio = OM2P_GPIO_LED_LAN;
@@
-221,3
+222,5
@@
static void __init om2p_hs_setup(void)
}
MIPS_MACHINE(ATH79_MACH_OM2P_HS, "OM2P-HS", "OpenMesh OM2P HS", om2p_hs_setup);
}
MIPS_MACHINE(ATH79_MACH_OM2P_HS, "OM2P-HS", "OpenMesh OM2P HS", om2p_hs_setup);
+MIPS_MACHINE(ATH79_MACH_OM2P_HSv2, "OM2P-HSv2", "OpenMesh OM2P HSv2", om2p_hs_setup);
+MIPS_MACHINE(ATH79_MACH_OM2P_HSv3, "OM2P-HSv3", "OpenMesh OM2P HSv3", om2p_hs_setup);