upgrade to 2.6.37
[openwrt/staging/chunkeey.git] / target / linux / orion / files / arch / arm / mach-orion5x / dt2-setup.c
index f794b4cc5247787c3311aaf2c4221cea1c69d60d..39b7e82e76a3ffb46d434dc7840a7dead5c90c3f 100644 (file)
@@ -209,7 +209,7 @@ static struct mv643xx_eth_platform_data dt2_eth_data = {
        .duplex         = DUPLEX_FULL,
 };
 
-static struct dsa_platform_data dt2_switch_data = {
+static struct dsa_chip_data dt2_switch_chip_data = {
        .port_names[0] = "wan",
        .port_names[1] = "lan1",
        .port_names[2] = "lan2",
@@ -218,6 +218,11 @@ static struct dsa_platform_data dt2_switch_data = {
        .port_names[5] = "lan4",
 };
 
+static struct dsa_platform_data dt2_switch_plat_data = {
+       .nr_chips       = 1,
+       .chip           = &dt2_switch_chip_data,
+};
+
 /*****************************************************************************
  * RTC ISL1208 on I2C bus
  ****************************************************************************/
@@ -289,7 +294,6 @@ static irqreturn_t dt2_power_handler(int irq, void *dev_id)
 
 static void __init dt2_init(void)
 {
-       DECLARE_MAC_BUF(mac_buf);
        /*
         * Setup basic Orion functions. Need to be called early.
         */
@@ -300,7 +304,6 @@ static void __init dt2_init(void)
        /*
         * Configure peripherals.
         */
-       gpio_display();
 
        orion5x_uart0_init();
        orion5x_ehci0_init();
@@ -314,14 +317,14 @@ static void __init dt2_init(void)
 
        printk(KERN_INFO "Serial: %s\n", dt2_eeprom.fc.dt2_serial_number);
        printk(KERN_INFO "Revision: %016x\n", dt2_eeprom.fc.dt2_revision);
-       printk(KERN_INFO "DT2: Using MAC address %s for port 0\n",
-              print_mac(mac_buf, dt2_eeprom.gw.mac_addr[0]));
-       printk(KERN_INFO "DT2: Using MAC address %s for port 1\n",
-              print_mac(mac_buf, dt2_eeprom.gw.mac_addr[1]));
+       printk(KERN_INFO "DT2: Using MAC address %pM for port 0\n",
+              dt2_eeprom.gw.mac_addr[0]);
+       printk(KERN_INFO "DT2: Using MAC address %pM for port 1\n",
+              dt2_eeprom.gw.mac_addr[1]);
 
        orion5x_eth_init(&dt2_eth_data);
        memcpy(dt2_eth_data.mac_addr, dt2_eeprom.gw.mac_addr[0], 6);
-       orion5x_eth_switch_init(&dt2_switch_data, NO_IRQ);
+       orion5x_eth_switch_init(&dt2_switch_plat_data, NO_IRQ);
 
        i2c_register_board_info(0, &dt2_i2c_rtc, 1);
 
@@ -434,8 +437,6 @@ void __init openwrt_fixup(struct machine_desc *mdesc, struct tag *t,
 /* Warning: Freecom uses their own custom bootloader with mach-type (=1500) */
 MACHINE_START(DT2, "Freecom DataTank Gateway")
        /* Maintainer: Zintis Petersons <Zintis.Petersons@abcsolutions.lv> */
-       .phys_io        = ORION5X_REGS_PHYS_BASE,
-       .io_pg_offst    = ((ORION5X_REGS_VIRT_BASE) >> 18) & 0xFFFC,
        .boot_params    = 0x00000100,
        .init_machine   = dt2_init,
        .map_io         = orion5x_map_io,