#include <asm/mach-ar71xx/mach-rb750.h>
#include "machtype.h"
+#include "devices.h"
#include "dev-ap91-eth.h"
static struct rb750_led_data rb750_leds[] = {
static struct platform_device rb750_leds_device = {
.name = "leds-rb750",
- .id = -1,
.dev = {
.platform_data = &rb750_leds_data,
}
};
+static const char *rb750_port_names[AP91_ETH_NUM_PORT_NAMES] __initdata = {
+ "port5",
+ "port4",
+ "port3",
+ "port2",
+};
+
+static struct platform_device rb750_nand_device = {
+ .name = "rb750-nand",
+ .id = -1,
+};
+
int rb750_latch_change(u32 mask_clr, u32 mask_set)
{
static DEFINE_SPINLOCK(lock);
AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN |
AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN);
- ap91_eth_init(NULL);
+ ar71xx_init_mac(ar71xx_eth0_data.mac_addr, ar71xx_mac_base, 0);
+ ar71xx_init_mac(ar71xx_eth1_data.mac_addr, ar71xx_mac_base, 1);
+ ap91_eth_init(rb750_port_names);
+
platform_device_register(&rb750_leds_device);
+ platform_device_register(&rb750_nand_device);
}
MIPS_MACHINE(AR71XX_MACH_RB_750, "750i", "MikroTik RouterBOARD 750",