mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-22 04:28:03 +03:00
[ar71xx] preliminary support for the RB-493/AH, based on a patch by Carl Riechers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12986 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
92c4109e54
commit
db0c81f577
@ -212,3 +212,26 @@ static void __init rb450_setup(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
MIPS_MACHINE(MACH_AR71XX_RB_450, "MikroTik RouterBOARD 450", rb450_setup);
|
MIPS_MACHINE(MACH_AR71XX_RB_450, "MikroTik RouterBOARD 450", rb450_setup);
|
||||||
|
|
||||||
|
static void __init rb493_setup(void)
|
||||||
|
{
|
||||||
|
rb4xx_add_device_spi();
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
ar71xx_add_device_mdio(0x3fffff00);
|
||||||
|
ar71xx_add_device_eth(0, PHY_INTERFACE_MODE_MII, 0x00000000);
|
||||||
|
ar71xx_add_device_eth(1, PHY_INTERFACE_MODE_RMII, 0x00000001);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(rb4xx_leds_gpio),
|
||||||
|
rb4xx_leds_gpio);
|
||||||
|
|
||||||
|
ar71xx_add_device_gpio_buttons(-1, RB4XX_BUTTONS_POLL_INTERVAL,
|
||||||
|
ARRAY_SIZE(rb4xx_gpio_buttons),
|
||||||
|
rb4xx_gpio_buttons);
|
||||||
|
|
||||||
|
platform_device_register(&rb4xx_nand_device);
|
||||||
|
}
|
||||||
|
|
||||||
|
MIPS_MACHINE(MACH_AR71XX_RB_493, "MikroTik RouterBOARD 493/AH", rb493_setup);
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
--- a/include/asm-mips/bootinfo.h
|
--- a/include/asm-mips/bootinfo.h
|
||||||
+++ b/include/asm-mips/bootinfo.h
|
+++ b/include/asm-mips/bootinfo.h
|
||||||
@@ -79,6 +79,15 @@
|
@@ -79,6 +79,16 @@
|
||||||
#define MACH_LASAT_200 1 /* Masquerade PRO/SP200 */
|
#define MACH_LASAT_200 1 /* Masquerade PRO/SP200 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -24,9 +24,10 @@
|
|||||||
+ */
|
+ */
|
||||||
+#define MACH_AR71XX_GENERIC 0
|
+#define MACH_AR71XX_GENERIC 0
|
||||||
+#define MACH_AR71XX_WP543 1 /* Compex WP543 */
|
+#define MACH_AR71XX_WP543 1 /* Compex WP543 */
|
||||||
+#define MACH_AR71XX_RB_411 2 /* MikroTik RouterBOARD 411 */
|
+#define MACH_AR71XX_RB_411 2 /* MikroTik RouterBOARD 411/411A/411AH */
|
||||||
+#define MACH_AR71XX_RB_433 3 /* MikroTik RouterBOARD 433/433AH */
|
+#define MACH_AR71XX_RB_433 3 /* MikroTik RouterBOARD 433/433AH */
|
||||||
+#define MACH_AR71XX_RB_450 4 /* MikroTik RouterBOARD 450 */
|
+#define MACH_AR71XX_RB_450 4 /* MikroTik RouterBOARD 450 */
|
||||||
|
+#define MACH_AR71XX_RB_493 5 /* Mikrotik RouterBOARD 493/493AH */
|
||||||
+
|
+
|
||||||
+/*
|
+/*
|
||||||
* Valid machtype for group NEC EMMA2RH
|
* Valid machtype for group NEC EMMA2RH
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
--- a/include/asm-mips/bootinfo.h
|
--- a/include/asm-mips/bootinfo.h
|
||||||
+++ b/include/asm-mips/bootinfo.h
|
+++ b/include/asm-mips/bootinfo.h
|
||||||
@@ -57,6 +57,15 @@
|
@@ -57,6 +57,16 @@
|
||||||
#define MACH_MIKROTIK_RB532 0 /* Mikrotik RouterBoard 532 */
|
#define MACH_MIKROTIK_RB532 0 /* Mikrotik RouterBoard 532 */
|
||||||
#define MACH_MIKROTIK_RB532A 1 /* Mikrotik RouterBoard 532A */
|
#define MACH_MIKROTIK_RB532A 1 /* Mikrotik RouterBoard 532A */
|
||||||
|
|
||||||
@ -25,9 +25,10 @@
|
|||||||
+ */
|
+ */
|
||||||
+#define MACH_AR71XX_GENERIC 0
|
+#define MACH_AR71XX_GENERIC 0
|
||||||
+#define MACH_AR71XX_WP543 1 /* Compex WP543 */
|
+#define MACH_AR71XX_WP543 1 /* Compex WP543 */
|
||||||
+#define MACH_AR71XX_RB_411 2 /* MikroTik RouterBOARD 411 */
|
+#define MACH_AR71XX_RB_411 2 /* MikroTik RouterBOARD 411/411A/411AH */
|
||||||
+#define MACH_AR71XX_RB_433 3 /* MikroTik RouterBOARD 433/433AH */
|
+#define MACH_AR71XX_RB_433 3 /* MikroTik RouterBOARD 433/433AH */
|
||||||
+#define MACH_AR71XX_RB_450 4 /* MikroTik RouterBOARD 450 */
|
+#define MACH_AR71XX_RB_450 4 /* MikroTik RouterBOARD 450 */
|
||||||
|
+#define MACH_AR71XX_RB_493 5 /* Mikrotik RouterBOARD 493/493AH */
|
||||||
+
|
+
|
||||||
#define CL_SIZE COMMAND_LINE_SIZE
|
#define CL_SIZE COMMAND_LINE_SIZE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user