]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm/mach-orion5x/edmini_v2-setup.c
Merge tag 'for-linus-3.12-merge' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / arch / arm / mach-orion5x / edmini_v2-setup.c
index 147615510dd0ccd29f1dd8d62626661dbfdd0476..f66c1b2ee8c1fe8b0f3b6e6eb2c026975bd27bbc 100644 (file)
@@ -23,8 +23,8 @@
 #include <linux/platform_device.h>
 #include <linux/pci.h>
 #include <linux/irq.h>
+#include <linux/mbus.h>
 #include <linux/mtd/physmap.h>
-#include <linux/mv643xx_eth.h>
 #include <linux/leds.h>
 #include <linux/gpio_keys.h>
 #include <linux/input.h>
@@ -95,14 +95,6 @@ static struct platform_device edmini_v2_nor_flash = {
        .resource               = &edmini_v2_nor_flash_resource,
 };
 
-/*****************************************************************************
- * Ethernet
- ****************************************************************************/
-
-static struct mv643xx_eth_platform_data edmini_v2_eth_data = {
-       .phy_addr       = 8,
-};
-
 /*****************************************************************************
  * RTC 5C372a on I2C bus
  ****************************************************************************/
@@ -152,10 +144,11 @@ void __init edmini_v2_init(void)
         * Configure peripherals.
         */
        orion5x_ehci0_init();
-       orion5x_eth_init(&edmini_v2_eth_data);
 
-       mvebu_mbus_add_window("devbus-boot", EDMINI_V2_NOR_BOOT_BASE,
-                             EDMINI_V2_NOR_BOOT_SIZE);
+       mvebu_mbus_add_window_by_id(ORION_MBUS_DEVBUS_BOOT_TARGET,
+                                   ORION_MBUS_DEVBUS_BOOT_ATTR,
+                                   EDMINI_V2_NOR_BOOT_BASE,
+                                   EDMINI_V2_NOR_BOOT_SIZE);
        platform_device_register(&edmini_v2_nor_flash);
 
        pr_notice("edmini_v2: USB device port, flash write and power-off "