summaryrefslogtreecommitdiff
path: root/target/linux/adm5120/files/arch/mips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-09-23 13:11:35 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-09-23 13:11:35 +0000
commit66e3ba92bc3f37c0153f1890070289c2555206fa (patch)
treee6995bc0997adf48f4f22e4c83a0799c0af6d7b3 /target/linux/adm5120/files/arch/mips
parentae0d98552de1476b2dc39efc0d60961b51f4a571 (diff)
downloadmtk-20170518-66e3ba92bc3f37c0153f1890070289c2555206fa.zip
mtk-20170518-66e3ba92bc3f37c0153f1890070289c2555206fa.tar.gz
mtk-20170518-66e3ba92bc3f37c0153f1890070289c2555206fa.tar.bz2
add preliminary support for the Mikrotik RouterBOARD 192
SVN-Revision: 8978
Diffstat (limited to 'target/linux/adm5120/files/arch/mips')
-rw-r--r--target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c18
-rw-r--r--target/linux/adm5120/files/arch/mips/adm5120/prom.c1
2 files changed, 18 insertions, 1 deletions
diff --git a/target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c b/target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c
index f233772..c09ad1a 100644
--- a/target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c
+++ b/target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c
@@ -1,7 +1,7 @@
/*
* $Id$
*
- * Mikrotik RouterBOARDs 111/112/133/133C/150/153
+ * Mikrotik RouterBOARDs 1xx series
*
* Copyright (C) 2007 OpenWrt.org
* Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
@@ -87,6 +87,10 @@ static unsigned char rb133c_vlans[6] __initdata = {
static unsigned char rb15x_vlans[6] __initdata = {
/* FIXME: untested */
0x41, 0x42, 0x44, 0x48, 0x50, 0x00
+
+static unsigned char rb192_vlans[6] __initdata = {
+ /* FIXME: untested */
+ 0x41, 0x50, 0x48, 0x44, 0x42, 0x00
};
#else
static unsigned char rb_vlans[6] __initdata = {
@@ -96,6 +100,7 @@ static unsigned char rb_vlans[6] __initdata = {
#define rb133_vlans rb_vlans
#define rb133c_vlans rb_vlans
#define rb15x_vlans rb_vlans
+#define rb192_vlans rb_vlans
#endif
static struct adm5120_board rb111_board __initdata = {
@@ -158,6 +163,16 @@ static struct adm5120_board rb153_board __initdata = {
.devices = rb1xx_devices,
};
+static struct adm5120_board rb153_board __initdata = {
+ .mach_type = MACH_ADM5120_RB_192,
+ .name = "Mikrotik RouterBOARD 192",
+ .board_setup = rb1xx_setup,
+ .eth_num_ports = 5,
+ .eth_vlans = rb192_vlans,
+ .num_devices = ARRAY_SIZE(rb1xx_devices),
+ .devices = rb1xx_devices,
+};
+
static int __init register_boards(void)
{
adm5120_board_register(&rb111_board);
@@ -166,6 +181,7 @@ static int __init register_boards(void)
adm5120_board_register(&rb133c_board);
adm5120_board_register(&rb150_board);
adm5120_board_register(&rb153_board);
+ adm5120_board_register(&rb192_board);
return 0;
}
diff --git a/target/linux/adm5120/files/arch/mips/adm5120/prom.c b/target/linux/adm5120/files/arch/mips/adm5120/prom.c
index c6187b4..4c2f658 100644
--- a/target/linux/adm5120/files/arch/mips/adm5120/prom.c
+++ b/target/linux/adm5120/files/arch/mips/adm5120/prom.c
@@ -75,6 +75,7 @@ static struct board_desc common_boards[] __initdata = {
DEFBOARD("133C3", MACH_ADM5120_RB_133C),
DEFBOARD("150", MACH_ADM5120_RB_153), /* it's intentional */
DEFBOARD("153", MACH_ADM5120_RB_153),
+ DEFBOARD("192", MACH_ADM5120_RB_192),
DEFBOARD("miniROUTER", MACH_ADM5120_RB_150),
};