Merge branch '7xx-iosplit-plat' with omap-fixes
authorTony Lindgren <tony@atomide.com>
Wed, 11 Nov 2009 02:10:34 +0000 (18:10 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 11 Nov 2009 02:10:34 +0000 (18:10 -0800)
25 files changed:
1  2 
arch/arm/mach-omap1/board-ams-delta.c
arch/arm/mach-omap1/board-generic.c
arch/arm/mach-omap1/board-innovator.c
arch/arm/mach-omap1/board-palmte.c
arch/arm/mach-omap1/board-palmtt.c
arch/arm/mach-omap1/board-palmz71.c
arch/arm/mach-omap1/board-sx1.c
arch/arm/mach-omap1/board-voiceblue.c
arch/arm/mach-omap1/serial.c
arch/arm/mach-omap2/board-3430sdp.c
arch/arm/mach-omap2/board-4430sdp.c
arch/arm/mach-omap2/board-ldp.c
arch/arm/mach-omap2/board-omap3evm.c
arch/arm/mach-omap2/board-omap3pandora.c
arch/arm/mach-omap2/board-rx51-peripherals.c
arch/arm/mach-omap2/board-rx51.c
arch/arm/mach-omap2/board-zoom2.c
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/pm34xx.c
arch/arm/mach-omap2/serial.c
arch/arm/plat-omap/dma.c
arch/arm/plat-omap/include/plat/keypad.h
arch/arm/plat-omap/iommu.c
drivers/mfd/twl4030-core.c
drivers/mmc/host/omap_hsmmc.c

index 8ad5cc3e83e3483d6042a7cc3ba320d89ba0ba0a,7214ff40c16a51c5547e8bef7f0d65d7046aafc4..7fc11c34b69615f8db54a3ddb0f9a01252ca019a
  #include <asm/mach/arch.h>
  #include <asm/mach/map.h>
  
- #include <mach/board-ams-delta.h>
+ #include <plat/board-ams-delta.h>
  #include <mach/gpio.h>
- #include <mach/keypad.h>
- #include <mach/mux.h>
- #include <mach/usb.h>
- #include <mach/board.h>
- #include <mach/common.h>
+ #include <plat/keypad.h>
+ #include <plat/mux.h>
+ #include <plat/usb.h>
+ #include <plat/board.h>
+ #include <plat/common.h>
  
  static u8 ams_delta_latch1_reg;
  static u16 ams_delta_latch2_reg;
@@@ -219,10 -219,6 +219,10 @@@ static struct platform_device *ams_delt
  
  static void __init ams_delta_init(void)
  {
 +      /* mux pins for uarts */
 +      omap_cfg_reg(UART1_TX);
 +      omap_cfg_reg(UART1_RTS);
 +
        iotable_init(ams_delta_io_desc, ARRAY_SIZE(ams_delta_io_desc));
  
        omap_board_config = ams_delta_config;
  
        omap_usb_init(&ams_delta_usb_config);
        platform_add_devices(ams_delta_devices, ARRAY_SIZE(ams_delta_devices));
 +
 +      omap_writew(omap_readw(ARM_RSTCT1) | 0x0004, ARM_RSTCT1);
  }
  
  static struct plat_serial8250_port ams_delta_modem_ports[] = {
index 6c8a41f20e516fdd773a061c4f7689eb44a59967,aaea01823eb2d38ddec184d0176f261145c7831f..e1195a3467b86106a60c258a429c664ca818569e
  #include <asm/mach/map.h>
  
  #include <mach/gpio.h>
- #include <mach/mux.h>
- #include <mach/usb.h>
- #include <mach/board.h>
- #include <mach/common.h>
+ #include <plat/mux.h>
+ #include <plat/usb.h>
+ #include <plat/board.h>
+ #include <plat/common.h>
  
  static void __init omap_generic_init_irq(void)
  {
@@@ -64,14 -64,6 +64,14 @@@ static void __init omap_generic_init(vo
  {
  #ifdef CONFIG_ARCH_OMAP15XX
        if (cpu_is_omap15xx()) {
 +              /* mux pins for uarts */
 +              omap_cfg_reg(UART1_TX);
 +              omap_cfg_reg(UART1_RTS);
 +              omap_cfg_reg(UART2_TX);
 +              omap_cfg_reg(UART2_RTS);
 +              omap_cfg_reg(UART3_TX);
 +              omap_cfg_reg(UART3_RX);
 +
                omap_usb_init(&generic1510_usb_config);
        }
  #endif
index cd6c3951482635a8df9fef80ecae12ab904d635c,68462c505e3ddb1622a172af1b6ca399d956bc6d..cf0fdb9c182f9a7b0903708b77eddc13a3793380
  #include <asm/mach/flash.h>
  #include <asm/mach/map.h>
  
- #include <mach/mux.h>
- #include <mach/fpga.h>
+ #include <plat/mux.h>
+ #include <plat/fpga.h>
  #include <mach/gpio.h>
- #include <mach/tc.h>
- #include <mach/usb.h>
- #include <mach/keypad.h>
- #include <mach/common.h>
- #include <mach/mmc.h>
+ #include <plat/tc.h>
+ #include <plat/usb.h>
+ #include <plat/keypad.h>
+ #include <plat/common.h>
+ #include <plat/mmc.h>
  
  /* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */
  #define INNOVATOR1610_ETHR_START      0x04000300
@@@ -376,26 -376,6 +376,26 @@@ static void __init innovator_init(void
  {
  #ifdef CONFIG_ARCH_OMAP15XX
        if (cpu_is_omap1510()) {
 +              unsigned char reg;
 +
 +              /* mux pins for uarts */
 +              omap_cfg_reg(UART1_TX);
 +              omap_cfg_reg(UART1_RTS);
 +              omap_cfg_reg(UART2_TX);
 +              omap_cfg_reg(UART2_RTS);
 +              omap_cfg_reg(UART3_TX);
 +              omap_cfg_reg(UART3_RX);
 +
 +              reg = fpga_read(OMAP1510_FPGA_POWER);
 +              reg |= OMAP1510_FPGA_PCR_COM1_EN;
 +              fpga_write(reg, OMAP1510_FPGA_POWER);
 +              udelay(10);
 +
 +              reg = fpga_read(OMAP1510_FPGA_POWER);
 +              reg |= OMAP1510_FPGA_PCR_COM2_EN;
 +              fpga_write(reg, OMAP1510_FPGA_POWER);
 +              udelay(10);
 +
                platform_add_devices(innovator1510_devices, ARRAY_SIZE(innovator1510_devices));
                spi_register_board_info(innovator1510_boardinfo,
                                ARRAY_SIZE(innovator1510_boardinfo));
index 4de258420f398035add256d074dd490b98a9cfe1,73d115e288a123afb00da95166dd829d99175e2d..9fe887262bdf3b5e0e33fe9885feb059eea04309
  #include <asm/mach/flash.h>
  
  #include <mach/gpio.h>
- #include <mach/mux.h>
- #include <mach/usb.h>
- #include <mach/tc.h>
- #include <mach/dma.h>
- #include <mach/board.h>
- #include <mach/irda.h>
- #include <mach/keypad.h>
- #include <mach/common.h>
+ #include <plat/mux.h>
+ #include <plat/usb.h>
+ #include <plat/tc.h>
+ #include <plat/dma.h>
+ #include <plat/board.h>
+ #include <plat/irda.h>
+ #include <plat/keypad.h>
+ #include <plat/common.h>
  
  #define PALMTE_USBDETECT_GPIO 0
  #define PALMTE_USB_OR_DC_GPIO 1
@@@ -342,14 -342,6 +342,14 @@@ static void __init palmte_misc_gpio_set
  
  static void __init omap_palmte_init(void)
  {
 +      /* mux pins for uarts */
 +      omap_cfg_reg(UART1_TX);
 +      omap_cfg_reg(UART1_RTS);
 +      omap_cfg_reg(UART2_TX);
 +      omap_cfg_reg(UART2_RTS);
 +      omap_cfg_reg(UART3_TX);
 +      omap_cfg_reg(UART3_RX);
 +
        omap_board_config = palmte_config;
        omap_board_config_size = ARRAY_SIZE(palmte_config);
  
index d972cf941b76f86472a9191e1a2d9789d92e69a6,81dd74dbbd3391332febf1456f525b4c448ad810..af068e3e0fe7e95dc8bc7fb50fbcad35f790024d
  #include <asm/mach/map.h>
  #include <asm/mach/flash.h>
  
- #include <mach/led.h>
+ #include <plat/led.h>
  #include <mach/gpio.h>
- #include <mach/mux.h>
- #include <mach/usb.h>
- #include <mach/dma.h>
- #include <mach/tc.h>
- #include <mach/board.h>
- #include <mach/irda.h>
- #include <mach/keypad.h>
- #include <mach/common.h>
+ #include <plat/mux.h>
+ #include <plat/usb.h>
+ #include <plat/dma.h>
+ #include <plat/tc.h>
+ #include <plat/board.h>
+ #include <plat/irda.h>
+ #include <plat/keypad.h>
+ #include <plat/common.h>
  
  #include <linux/spi/spi.h>
  #include <linux/spi/ads7846.h>
@@@ -289,14 -289,6 +289,14 @@@ static void __init omap_mpu_wdt_mode(in
  
  static void __init omap_palmtt_init(void)
  {
 +      /* mux pins for uarts */
 +      omap_cfg_reg(UART1_TX);
 +      omap_cfg_reg(UART1_RTS);
 +      omap_cfg_reg(UART2_TX);
 +      omap_cfg_reg(UART2_RTS);
 +      omap_cfg_reg(UART3_TX);
 +      omap_cfg_reg(UART3_RX);
 +
        omap_mpu_wdt_mode(0);
  
        omap_board_config = palmtt_config;
index 986bd4df0e972f3522a9c4abf786227d1abe6007,427ad3a6591fd558e17cc9a973407d341f4fbaea..c7a3b6f365009cd7a3f6fad537e3844241e55022
  #include <asm/mach/flash.h>
  
  #include <mach/gpio.h>
- #include <mach/mux.h>
- #include <mach/usb.h>
- #include <mach/dma.h>
- #include <mach/tc.h>
- #include <mach/board.h>
- #include <mach/irda.h>
- #include <mach/keypad.h>
- #include <mach/common.h>
- #include <mach/omap-alsa.h>
+ #include <plat/mux.h>
+ #include <plat/usb.h>
+ #include <plat/dma.h>
+ #include <plat/tc.h>
+ #include <plat/board.h>
+ #include <plat/irda.h>
+ #include <plat/keypad.h>
+ #include <plat/common.h>
+ #include <plat/omap-alsa.h>
  
  #include <linux/spi/spi.h>
  #include <linux/spi/ads7846.h>
@@@ -307,14 -307,6 +307,14 @@@ palmz71_gpio_setup(int early
  static void __init
  omap_palmz71_init(void)
  {
 +      /* mux pins for uarts */
 +      omap_cfg_reg(UART1_TX);
 +      omap_cfg_reg(UART1_RTS);
 +      omap_cfg_reg(UART2_TX);
 +      omap_cfg_reg(UART2_RTS);
 +      omap_cfg_reg(UART3_TX);
 +      omap_cfg_reg(UART3_RX);
 +
        palmz71_gpio_setup(1);
        omap_mpu_wdt_mode(0);
  
index 056ae64e0f557c912aede0c5f73850c60dfde940,b3bb01bbaa0d0c00da3a9c6039378d2e14fdad6e..7a97fac83d8d10f6131fda3e308f3bc99ee5de6f
  #include <asm/mach/map.h>
  
  #include <mach/gpio.h>
- #include <mach/mux.h>
- #include <mach/dma.h>
- #include <mach/irda.h>
- #include <mach/usb.h>
- #include <mach/tc.h>
- #include <mach/board.h>
- #include <mach/common.h>
- #include <mach/keypad.h>
- #include <mach/board-sx1.h>
+ #include <plat/mux.h>
+ #include <plat/dma.h>
+ #include <plat/irda.h>
+ #include <plat/usb.h>
+ #include <plat/tc.h>
+ #include <plat/board.h>
+ #include <plat/common.h>
+ #include <plat/keypad.h>
+ #include <plat/board-sx1.h>
  
  /* Write to I2C device */
  int sx1_i2c_write_byte(u8 devaddr, u8 regoffset, u8 value)
@@@ -377,14 -377,6 +377,14 @@@ static struct omap_board_config_kernel 
  
  static void __init omap_sx1_init(void)
  {
 +      /* mux pins for uarts */
 +      omap_cfg_reg(UART1_TX);
 +      omap_cfg_reg(UART1_RTS);
 +      omap_cfg_reg(UART2_TX);
 +      omap_cfg_reg(UART2_RTS);
 +      omap_cfg_reg(UART3_TX);
 +      omap_cfg_reg(UART3_RX);
 +
        platform_add_devices(sx1_devices, ARRAY_SIZE(sx1_devices));
  
        omap_board_config = sx1_config;
index 07b07522d5bf99b643cdb6d557c24b339bd11528,ba9db2144b2b559aaf6c65a4451bf694282febfc..35c75c1bd0aaaacf03eb3006fb6e504e5496e909
  #include <asm/mach/flash.h>
  #include <asm/mach/map.h>
  
- #include <mach/common.h>
+ #include <plat/common.h>
  #include <mach/gpio.h>
- #include <mach/mux.h>
- #include <mach/tc.h>
- #include <mach/usb.h>
+ #include <plat/mux.h>
+ #include <plat/tc.h>
+ #include <plat/usb.h>
  
  static struct plat_serial8250_port voiceblue_ports[] = {
        {
@@@ -152,14 -152,6 +152,14 @@@ static void __init voiceblue_init_irq(v
  
  static void __init voiceblue_init(void)
  {
 +      /* mux pins for uarts */
 +      omap_cfg_reg(UART1_TX);
 +      omap_cfg_reg(UART1_RTS);
 +      omap_cfg_reg(UART2_TX);
 +      omap_cfg_reg(UART2_RTS);
 +      omap_cfg_reg(UART3_TX);
 +      omap_cfg_reg(UART3_RX);
 +
        /* Watchdog */
        gpio_request(0, "Watchdog");
        /* smc91x reset */
index d23979bc0fd52aebce992a9caa34e897d9fc877b,0e3c507cc44d867ed6e6be5d615c89ca9beb6300..5ebf0946c76a9990cffa2db50fb49856bbfe5263
  
  #include <asm/mach-types.h>
  
- #include <mach/board.h>
- #include <mach/mux.h>
+ #include <plat/board.h>
+ #include <plat/mux.h>
  #include <mach/gpio.h>
- #include <mach/fpga.h>
+ #include <plat/fpga.h>
  
  static struct clk * uart1_ck;
  static struct clk * uart2_ck;
@@@ -64,7 -64,6 +64,6 @@@ static void __init omap_serial_reset(st
  
  static struct plat_serial8250_port serial_platform_data[] = {
        {
-               .membase        = OMAP1_IO_ADDRESS(OMAP_UART1_BASE),
                .mapbase        = OMAP_UART1_BASE,
                .irq            = INT_UART1,
                .flags          = UPF_BOOT_AUTOCONF,
@@@ -73,7 -72,6 +72,6 @@@
                .uartclk        = OMAP16XX_BASE_BAUD * 16,
        },
        {
-               .membase        = OMAP1_IO_ADDRESS(OMAP_UART2_BASE),
                .mapbase        = OMAP_UART2_BASE,
                .irq            = INT_UART2,
                .flags          = UPF_BOOT_AUTOCONF,
@@@ -82,7 -80,6 +80,6 @@@
                .uartclk        = OMAP16XX_BASE_BAUD * 16,
        },
        {
-               .membase        = OMAP1_IO_ADDRESS(OMAP_UART3_BASE),
                .mapbase        = OMAP_UART3_BASE,
                .irq            = INT_UART3,
                .flags          = UPF_BOOT_AUTOCONF,
@@@ -110,18 -107,11 +107,11 @@@ void __init omap_serial_init(void
  {
        int i;
  
-       if (cpu_is_omap730()) {
+       if (cpu_is_omap7xx()) {
                serial_platform_data[0].regshift = 0;
                serial_platform_data[1].regshift = 0;
-               serial_platform_data[0].irq = INT_730_UART_MODEM_1;
-               serial_platform_data[1].irq = INT_730_UART_MODEM_IRDA_2;
-       }
-       if (cpu_is_omap850()) {
-               serial_platform_data[0].regshift = 0;
-               serial_platform_data[1].regshift = 0;
-               serial_platform_data[0].irq = INT_850_UART_MODEM_1;
-               serial_platform_data[1].irq = INT_850_UART_MODEM_IRDA_2;
+               serial_platform_data[0].irq = INT_7XX_UART_MODEM_1;
+               serial_platform_data[1].irq = INT_7XX_UART_MODEM_IRDA_2;
        }
  
        if (cpu_is_omap15xx()) {
        }
  
        for (i = 0; i < OMAP_MAX_NR_PORTS; i++) {
 -              unsigned char reg;
+               /* Static mapping, never released */
+               serial_platform_data[i].membase =
+                       ioremap(serial_platform_data[i].mapbase, SZ_2K);
+               if (!serial_platform_data[i].membase) {
+                       printk(KERN_ERR "Could not ioremap uart%i\n", i);
+                       continue;
+               }
 -
                switch (i) {
                case 0:
                        uart1_ck = clk_get(NULL, "uart1_ck");
                                if (cpu_is_omap15xx())
                                        clk_set_rate(uart1_ck, 12000000);
                        }
 -                      if (cpu_is_omap15xx()) {
 -                              omap_cfg_reg(UART1_TX);
 -                              omap_cfg_reg(UART1_RTS);
 -                              if (machine_is_omap_innovator()) {
 -                                      reg = fpga_read(OMAP1510_FPGA_POWER);
 -                                      reg |= OMAP1510_FPGA_PCR_COM1_EN;
 -                                      fpga_write(reg, OMAP1510_FPGA_POWER);
 -                                      udelay(10);
 -                              }
 -                      }
                        break;
                case 1:
                        uart2_ck = clk_get(NULL, "uart2_ck");
                                else
                                        clk_set_rate(uart2_ck, 48000000);
                        }
 -                      if (cpu_is_omap15xx()) {
 -                              omap_cfg_reg(UART2_TX);
 -                              omap_cfg_reg(UART2_RTS);
 -                              if (machine_is_omap_innovator()) {
 -                                      reg = fpga_read(OMAP1510_FPGA_POWER);
 -                                      reg |= OMAP1510_FPGA_PCR_COM2_EN;
 -                                      fpga_write(reg, OMAP1510_FPGA_POWER);
 -                                      udelay(10);
 -                              }
 -                      }
                        break;
                case 2:
                        uart3_ck = clk_get(NULL, "uart3_ck");
                                if (cpu_is_omap15xx())
                                        clk_set_rate(uart3_ck, 12000000);
                        }
 -                      if (cpu_is_omap15xx()) {
 -                              omap_cfg_reg(UART3_TX);
 -                              omap_cfg_reg(UART3_RX);
 -                      }
                        break;
                }
                omap_serial_reset(&serial_platform_data[i]);
index 0acb5560229c349ba66fa2327e838a9d4409a8d0,607845b7207f28fda819fae7f7bcd7e003fc1e13..a2abac98c56927c6f776b35993ba1325af13f5a9
@@@ -17,7 -17,6 +17,7 @@@
  #include <linux/platform_device.h>
  #include <linux/delay.h>
  #include <linux/input.h>
 +#include <linux/input/matrix_keypad.h>
  #include <linux/spi/spi.h>
  #include <linux/spi/ads7846.h>
  #include <linux/i2c/twl4030.h>
  #include <asm/mach/arch.h>
  #include <asm/mach/map.h>
  
- #include <mach/mcspi.h>
- #include <mach/mux.h>
- #include <mach/board.h>
- #include <mach/usb.h>
- #include <mach/common.h>
- #include <mach/dma.h>
- #include <mach/gpmc.h>
+ #include <plat/mcspi.h>
+ #include <plat/mux.h>
+ #include <plat/board.h>
+ #include <plat/usb.h>
+ #include <plat/common.h>
+ #include <plat/dma.h>
+ #include <plat/gpmc.h>
  
- #include <mach/control.h>
- #include <mach/gpmc-smc91x.h>
+ #include <plat/control.h>
 -#include <plat/keypad.h>
+ #include <plat/gpmc-smc91x.h>
  
  #include "sdram-qimonda-hyb18m512160af-6.h"
  #include "mmc-twl4030.h"
@@@ -511,7 -511,7 +511,7 @@@ static void __init omap_3430sdp_map_io(
  MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board")
        /* Maintainer: Syed Khasim - Texas Instruments Inc */
        .phys_io        = 0x48000000,
-       .io_pg_offst    = ((0xd8000000) >> 18) & 0xfffc,
+       .io_pg_offst    = ((0xfa000000) >> 18) & 0xfffc,
        .boot_params    = 0x80000100,
        .map_io         = omap_3430sdp_map_io,
        .init_irq       = omap_3430sdp_init_irq,
index 609a5a4a7e292ef66c134c84aa86a188a201c98d,242bba30b5bed07499121c748c4619c9dc95332f..0c6be6b4a7e2b6f3fc40ba803c7f574289ebf0a8
  #include <asm/mach/arch.h>
  #include <asm/mach/map.h>
  
- #include <mach/board.h>
- #include <mach/common.h>
- #include <mach/control.h>
- #include <mach/timer-gp.h>
+ #include <plat/board.h>
+ #include <plat/common.h>
+ #include <plat/control.h>
+ #include <plat/timer-gp.h>
  #include <asm/hardware/gic.h>
  
  static struct platform_device sdp4430_lcd_device = {
@@@ -52,14 -52,21 +52,23 @@@ static struct omap_board_config_kernel 
  
  static void __init gic_init_irq(void)
  {
-       gic_dist_init(0, OMAP2_IO_ADDRESS(OMAP44XX_GIC_DIST_BASE), 29);
-       gic_cpu_init(0, OMAP2_IO_ADDRESS(OMAP44XX_GIC_CPU_BASE));
+       void __iomem *base;
+       /* Static mapping, never released */
+       base = ioremap(OMAP44XX_GIC_DIST_BASE, SZ_4K);
+       BUG_ON(!base);
+       gic_dist_init(0, base, 29);
+       /* Static mapping, never released */
+       gic_cpu_base_addr = ioremap(OMAP44XX_GIC_CPU_BASE, SZ_512);
+       BUG_ON(!gic_cpu_base_addr);
+       gic_cpu_init(0, gic_cpu_base_addr);
  }
  
  static void __init omap_4430sdp_init_irq(void)
  {
 +      omap_board_config = sdp4430_config;
 +      omap_board_config_size = ARRAY_SIZE(sdp4430_config);
        omap2_init_common_hw(NULL, NULL);
  #ifdef CONFIG_OMAP_32K_TIMER
        omap2_gp_clockevent_set_gptimer(1);
@@@ -72,6 -79,8 +81,6 @@@
  static void __init omap_4430sdp_init(void)
  {
        platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices));
 -      omap_board_config = sdp4430_config;
 -      omap_board_config_size = ARRAY_SIZE(sdp4430_config);
        omap_serial_init();
  }
  
@@@ -84,7 -93,7 +93,7 @@@ static void __init omap_4430sdp_map_io(
  MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board")
        /* Maintainer: Santosh Shilimkar - Texas Instruments Inc */
        .phys_io        = 0x48000000,
-       .io_pg_offst    = ((0xd8000000) >> 18) & 0xfffc,
+       .io_pg_offst    = ((0xfa000000) >> 18) & 0xfffc,
        .boot_params    = 0x80000100,
        .map_io         = omap_4430sdp_map_io,
        .init_irq       = omap_4430sdp_init_irq,
index d57ec2f4d0a9a85f94024e3bee816df68f24012f,5c825607543eb9c2deb714b459e1df4d472c9bfd..c062238fe88144c1d81c949d0ac28c2a2f3b2cf3
@@@ -16,7 -16,6 +16,7 @@@
  #include <linux/platform_device.h>
  #include <linux/delay.h>
  #include <linux/input.h>
 +#include <linux/input/matrix_keypad.h>
  #include <linux/gpio_keys.h>
  #include <linux/workqueue.h>
  #include <linux/err.h>
  #include <asm/mach/arch.h>
  #include <asm/mach/map.h>
  
- #include <mach/mcspi.h>
+ #include <plat/mcspi.h>
  #include <mach/gpio.h>
- #include <mach/board.h>
- #include <mach/common.h>
- #include <mach/gpmc.h>
+ #include <plat/board.h>
+ #include <plat/common.h>
+ #include <plat/gpmc.h>
  
  #include <asm/delay.h>
- #include <mach/control.h>
- #include <mach/usb.h>
+ #include <plat/control.h>
+ #include <plat/usb.h>
 -#include <plat/keypad.h>
  
  #include "mmc-twl4030.h"
  
@@@ -399,7 -399,7 +399,7 @@@ static void __init omap_ldp_map_io(void
  
  MACHINE_START(OMAP_LDP, "OMAP LDP board")
        .phys_io        = 0x48000000,
-       .io_pg_offst    = ((0xd8000000) >> 18) & 0xfffc,
+       .io_pg_offst    = ((0xfa000000) >> 18) & 0xfffc,
        .boot_params    = 0x80000100,
        .map_io         = omap_ldp_map_io,
        .init_irq       = omap_ldp_init_irq,
index 4c4d7f8dbd7236cf6d33afa2eee8748e9d78e357,f6f8592258f9af5a5365bdaf506b8c2eeb3062a4..522ff6288c6f122a063b0e2c89edb4efa32d2e9d
@@@ -20,7 -20,6 +20,7 @@@
  #include <linux/clk.h>
  #include <linux/gpio.h>
  #include <linux/input.h>
 +#include <linux/input/matrix_keypad.h>
  #include <linux/leds.h>
  
  #include <linux/spi/spi.h>
  #include <asm/mach/arch.h>
  #include <asm/mach/map.h>
  
- #include <mach/board.h>
- #include <mach/mux.h>
- #include <mach/usb.h>
- #include <mach/common.h>
- #include <mach/mcspi.h>
+ #include <plat/board.h>
+ #include <plat/mux.h>
+ #include <plat/usb.h>
+ #include <plat/common.h>
+ #include <plat/mcspi.h>
 -#include <plat/keypad.h>
  
  #include "sdram-micron-mt46h32m32lf-6.h"
  #include "mmc-twl4030.h"
@@@ -324,7 -324,7 +324,7 @@@ static void __init omap3_evm_map_io(voi
  MACHINE_START(OMAP3EVM, "OMAP3 EVM")
        /* Maintainer: Syed Mohammed Khasim - Texas Instruments */
        .phys_io        = 0x48000000,
-       .io_pg_offst    = ((0xd8000000) >> 18) & 0xfffc,
+       .io_pg_offst    = ((0xfa000000) >> 18) & 0xfffc,
        .boot_params    = 0x80000100,
        .map_io         = omap3_evm_map_io,
        .init_irq       = omap3_evm_init_irq,
index 5326e0d61597725aab8da89f930383f6d9400a16,d6bcfaab94ca8ed1fa4de2ee8c746a388277e478..5a38494bf066b95481395e2517d3c7e61e7bf9b1
  #include <linux/i2c/twl4030.h>
  #include <linux/leds.h>
  #include <linux/input.h>
 +#include <linux/input/matrix_keypad.h>
  #include <linux/gpio_keys.h>
  
  #include <asm/mach-types.h>
  #include <asm/mach/arch.h>
  #include <asm/mach/map.h>
  
- #include <mach/board.h>
- #include <mach/common.h>
+ #include <plat/board.h>
+ #include <plat/common.h>
  #include <mach/gpio.h>
  #include <mach/hardware.h>
- #include <mach/mcspi.h>
- #include <mach/usb.h>
- #include <mach/mux.h>
+ #include <plat/mcspi.h>
+ #include <plat/usb.h>
 -#include <plat/keypad.h>
+ #include <plat/mux.h>
  
  #include "sdram-micron-mt46h32m32lf-6.h"
  #include "mmc-twl4030.h"
@@@ -412,7 -412,7 +412,7 @@@ static void __init omap3pandora_map_io(
  
  MACHINE_START(OMAP3_PANDORA, "Pandora Handheld Console")
        .phys_io        = 0x48000000,
-       .io_pg_offst    = ((0xd8000000) >> 18) & 0xfffc,
+       .io_pg_offst    = ((0xfa000000) >> 18) & 0xfffc,
        .boot_params    = 0x80000100,
        .map_io         = omap3pandora_map_io,
        .init_irq       = omap3pandora_init_irq,
index e34d96a825e3a60259a48cbd6dd92a3f79499881,9e16d90021d381fb1f64cac27761656e98db0738..cf4583a5d284eb3af3680a6bdfdac43882efc53d
@@@ -12,7 -12,6 +12,7 @@@
  #include <linux/init.h>
  #include <linux/platform_device.h>
  #include <linux/input.h>
 +#include <linux/input/matrix_keypad.h>
  #include <linux/spi/spi.h>
  #include <linux/i2c.h>
  #include <linux/i2c/twl4030.h>
  #include <linux/gpio.h>
  #include <linux/mmc/host.h>
  
- #include <mach/mcspi.h>
- #include <mach/mux.h>
- #include <mach/board.h>
- #include <mach/common.h>
- #include <mach/dma.h>
- #include <mach/gpmc.h>
- #include <mach/onenand.h>
- #include <mach/gpmc-smc91x.h>
+ #include <plat/mcspi.h>
+ #include <plat/mux.h>
+ #include <plat/board.h>
+ #include <plat/common.h>
+ #include <plat/dma.h>
+ #include <plat/gpmc.h>
 -#include <plat/keypad.h>
+ #include <plat/onenand.h>
+ #include <plat/gpmc-smc91x.h>
  
  #include "mmc-twl4030.h"
  
index 78869a9a1cc24700786549c23af8993f2b293d3a,060245e1474005241b2679482c9fa4378660e4bc..f1e7e5bbf9854d3b653d992333a645da66a32610
  #include <asm/mach/arch.h>
  #include <asm/mach/map.h>
  
- #include <mach/mcspi.h>
- #include <mach/mux.h>
- #include <mach/board.h>
- #include <mach/common.h>
- #include <mach/dma.h>
- #include <mach/gpmc.h>
- #include <mach/usb.h>
+ #include <plat/mcspi.h>
+ #include <plat/mux.h>
+ #include <plat/board.h>
+ #include <plat/common.h>
 -#include <plat/keypad.h>
+ #include <plat/dma.h>
+ #include <plat/gpmc.h>
+ #include <plat/usb.h>
  
  static struct omap_lcd_config rx51_lcd_config = {
        .ctrl_name      = "internal",
@@@ -84,7 -85,7 +84,7 @@@ static void __init rx51_map_io(void
  MACHINE_START(NOKIA_RX51, "Nokia RX-51 board")
        /* Maintainer: Lauri Leukkunen <lauri.leukkunen@nokia.com> */
        .phys_io        = 0x48000000,
-       .io_pg_offst    = ((0xd8000000) >> 18) & 0xfffc,
+       .io_pg_offst    = ((0xfa000000) >> 18) & 0xfffc,
        .boot_params    = 0x80000100,
        .map_io         = rx51_map_io,
        .init_irq       = rx51_init_irq,
index ea00486a5e5314b5e5255a7c3aa9d4a9af306960,56f9d8436323a03fbc9cbf8e2c881278994f2fc0..4ad9b94ed4aead064315e3dd15c07c22cd36b574
@@@ -13,7 -13,6 +13,7 @@@
  #include <linux/init.h>
  #include <linux/platform_device.h>
  #include <linux/input.h>
 +#include <linux/input/matrix_keypad.h>
  #include <linux/gpio.h>
  #include <linux/i2c/twl4030.h>
  #include <linux/regulator/machine.h>
@@@ -21,8 -20,9 +21,8 @@@
  #include <asm/mach-types.h>
  #include <asm/mach/arch.h>
  
- #include <mach/common.h>
- #include <mach/usb.h>
+ #include <plat/common.h>
+ #include <plat/usb.h>
 -#include <plat/keypad.h>
  
  #include "mmc-twl4030.h"
  #include "sdram-micron-mt46h32m32lf-6.h"
@@@ -283,7 -283,7 +283,7 @@@ static void __init omap_zoom2_map_io(vo
  
  MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board")
        .phys_io        = 0x48000000,
-       .io_pg_offst    = ((0xd8000000) >> 18) & 0xfffc,
+       .io_pg_offst    = ((0xfa000000) >> 18) & 0xfffc,
        .boot_params    = 0x80000100,
        .map_io         = omap_zoom2_map_io,
        .init_irq       = omap_zoom2_init_irq,
diff --combined arch/arm/mach-omap2/io.c
index 56be87d13edb1cefb46356f2fda7c2eaf63ba4e4,3c33f24208a35e0ae637cc0893d38676a477508d..59d28b2fd8c54ced6a1dc6dc7d8da364f5beedac
  
  #include <asm/mach/map.h>
  
- #include <mach/mux.h>
- #include <mach/omapfb.h>
- #include <mach/sram.h>
- #include <mach/sdrc.h>
- #include <mach/gpmc.h>
- #include <mach/serial.h>
+ #include <plat/mux.h>
+ #include <plat/omapfb.h>
+ #include <plat/sram.h>
+ #include <plat/sdrc.h>
+ #include <plat/gpmc.h>
+ #include <plat/serial.h>
  
  #ifndef CONFIG_ARCH_OMAP4     /* FIXME: Remove this once clkdev is ready */
  #include "clock.h"
  
- #include <mach/omap-pm.h>
- #include <mach/powerdomain.h>
+ #include <plat/omap-pm.h>
+ #include <plat/powerdomain.h>
  #include "powerdomains.h"
  
- #include <mach/clockdomain.h>
+ #include <plat/clockdomain.h>
  #include "clockdomains.h"
  #endif
- #include <mach/omap_hwmod.h>
+ #include <plat/omap_hwmod.h>
  #include "omap_hwmod_2420.h"
  #include "omap_hwmod_2430.h"
  #include "omap_hwmod_34xx.h"
@@@ -202,6 -202,24 +202,24 @@@ static struct map_desc omap44xx_io_desc
                .length         = OMAP44XX_GPMC_SIZE,
                .type           = MT_DEVICE,
        },
+       {
+               .virtual        = OMAP44XX_EMIF1_VIRT,
+               .pfn            = __phys_to_pfn(OMAP44XX_EMIF1_PHYS),
+               .length         = OMAP44XX_EMIF1_SIZE,
+               .type           = MT_DEVICE,
+       },
+       {
+               .virtual        = OMAP44XX_EMIF2_VIRT,
+               .pfn            = __phys_to_pfn(OMAP44XX_EMIF2_PHYS),
+               .length         = OMAP44XX_EMIF2_SIZE,
+               .type           = MT_DEVICE,
+       },
+       {
+               .virtual        = OMAP44XX_DMM_VIRT,
+               .pfn            = __phys_to_pfn(OMAP44XX_DMM_PHYS),
+               .length         = OMAP44XX_DMM_SIZE,
+               .type           = MT_DEVICE,
+       },
        {
                .virtual        = L4_PER_44XX_VIRT,
                .pfn            = __phys_to_pfn(L4_PER_44XX_PHYS),
@@@ -302,9 -320,7 +320,9 @@@ void __init omap2_init_common_hw(struc
        pwrdm_init(powerdomains_omap);
        clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps);
        omap2_clk_init();
 +#endif
        omap_serial_early_init();
 +#ifndef CONFIG_ARCH_OMAP4
        omap_hwmod_late_init();
        omap_pm_if_init();
        omap2_sdrc_init(sdrc_cs0, sdrc_cs1);
index 89463190923a6d2f152b7bd261232571b086b2ef,10aa923ea484493363cdf3f90cd4ffd355cdfc62..391054900a6a8a711a786d888dc8671815b6f5ee
  #include <linux/err.h>
  #include <linux/gpio.h>
  
- #include <mach/sram.h>
- #include <mach/clockdomain.h>
- #include <mach/powerdomain.h>
- #include <mach/control.h>
- #include <mach/serial.h>
+ #include <plat/sram.h>
+ #include <plat/clockdomain.h>
+ #include <plat/powerdomain.h>
+ #include <plat/control.h>
+ #include <plat/serial.h>
  
  #include "cm.h"
  #include "cm-regbits-34xx.h"
@@@ -639,15 -639,14 +639,15 @@@ static void __init prcm_setup_regs(void
        prm_write_mod_reg(OMAP3430_IO_EN | OMAP3430_WKUP_EN,
                          OCP_MOD, OMAP3_PRM_IRQENABLE_MPU_OFFSET);
  
 -      /* Enable GPIO wakeups in PER */
 +      /* Enable wakeups in PER */
        prm_write_mod_reg(OMAP3430_EN_GPIO2 | OMAP3430_EN_GPIO3 |
                          OMAP3430_EN_GPIO4 | OMAP3430_EN_GPIO5 |
 -                        OMAP3430_EN_GPIO6, OMAP3430_PER_MOD, PM_WKEN);
 +                        OMAP3430_EN_GPIO6 | OMAP3430_EN_UART3,
 +                        OMAP3430_PER_MOD, PM_WKEN);
        /* and allow them to wake up MPU */
        prm_write_mod_reg(OMAP3430_GRPSEL_GPIO2 | OMAP3430_EN_GPIO3 |
                          OMAP3430_GRPSEL_GPIO4 | OMAP3430_EN_GPIO5 |
 -                        OMAP3430_GRPSEL_GPIO6,
 +                        OMAP3430_GRPSEL_GPIO6 | OMAP3430_EN_UART3,
                          OMAP3430_PER_MOD, OMAP3430_PM_MPUGRPSEL);
  
        /* Don't attach IVA interrupts */
index 54dfeb5d56672ca0c34b37d0c41f40074cf38eb9,f14a1a17f71799a81a11b252cd90b382bc810ca6..a5aecffe03ff4abaf9eaceb7f85dee19779d730e
  #include <linux/clk.h>
  #include <linux/io.h>
  
- #include <mach/common.h>
- #include <mach/board.h>
- #include <mach/clock.h>
- #include <mach/control.h>
+ #include <plat/common.h>
+ #include <plat/board.h>
+ #include <plat/clock.h>
+ #include <plat/control.h>
  
  #include "prm.h"
  #include "pm.h"
@@@ -73,7 -73,6 +73,6 @@@ static LIST_HEAD(uart_list)
  
  static struct plat_serial8250_port serial_platform_data0[] = {
        {
-               .membase        = OMAP2_IO_ADDRESS(OMAP_UART1_BASE),
                .mapbase        = OMAP_UART1_BASE,
                .irq            = 72,
                .flags          = UPF_BOOT_AUTOCONF,
@@@ -87,7 -86,6 +86,6 @@@
  
  static struct plat_serial8250_port serial_platform_data1[] = {
        {
-               .membase        = OMAP2_IO_ADDRESS(OMAP_UART2_BASE),
                .mapbase        = OMAP_UART2_BASE,
                .irq            = 73,
                .flags          = UPF_BOOT_AUTOCONF,
  
  static struct plat_serial8250_port serial_platform_data2[] = {
        {
-               .membase        = OMAP2_IO_ADDRESS(OMAP_UART3_BASE),
                .mapbase        = OMAP_UART3_BASE,
                .irq            = 74,
                .flags          = UPF_BOOT_AUTOCONF,
                .regshift       = 2,
                .uartclk        = OMAP24XX_BASE_BAUD * 16,
        }, {
 -#ifdef CONFIG_ARCH_OMAP4
 -              .membase        = OMAP2_IO_ADDRESS(OMAP_UART4_BASE),
 -              .mapbase        = OMAP_UART4_BASE,
 -              .irq            = 70,
 -              .flags          = UPF_BOOT_AUTOCONF,
 -              .iotype         = UPIO_MEM,
 -              .regshift       = 2,
 -              .uartclk        = OMAP24XX_BASE_BAUD * 16,
 -      }, {
 -#endif
                .flags          = 0
        }
  };
  #ifdef CONFIG_ARCH_OMAP4
  static struct plat_serial8250_port serial_platform_data3[] = {
        {
-               .membase        = OMAP2_IO_ADDRESS(OMAP_UART4_BASE),
                .mapbase        = OMAP_UART4_BASE,
                .irq            = 70,
                .flags          = UPF_BOOT_AUTOCONF,
@@@ -595,6 -601,16 +591,16 @@@ void __init omap_serial_early_init(void
                struct device *dev = &pdev->dev;
                struct plat_serial8250_port *p = dev->platform_data;
  
+               /*
+                * Module 4KB + L4 interconnect 4KB
+                * Static mapping, never released
+                */
+               p->membase = ioremap(p->mapbase, SZ_8K);
+               if (!p->membase) {
+                       printk(KERN_ERR "ioremap failed for uart%i\n", i + 1);
+                       continue;
+               }
                sprintf(name, "uart%d_ick", i+1);
                uart->ick = clk_get(NULL, name);
                if (IS_ERR(uart->ick)) {
diff --combined arch/arm/plat-omap/dma.c
index b53125f412931c6e535df1e111cc293ae067a6b0,9e11cddf3f72caf01576f6ef191456c8c09a3fda..3edffde7f439872ee6cd486b870625392a7af4c5
@@@ -32,9 -32,9 +32,9 @@@
  
  #include <asm/system.h>
  #include <mach/hardware.h>
- #include <mach/dma.h>
+ #include <plat/dma.h>
  
- #include <mach/tc.h>
+ #include <plat/tc.h>
  
  #undef DEBUG
  
@@@ -978,14 -978,6 +978,14 @@@ void omap_stop_dma(int lch
  {
        u32 l;
  
 +      /* Disable all interrupts on the channel */
 +      if (cpu_class_is_omap1())
 +              dma_write(0, CICR(lch));
 +
 +      l = dma_read(CCR(lch));
 +      l &= ~OMAP_DMA_CCR_EN;
 +      dma_write(l, CCR(lch));
 +
        if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) {
                int next_lch, cur_lch = lch;
                char dma_chan_link_map[OMAP_DMA4_LOGICAL_DMA_CH_COUNT];
                        next_lch = dma_chan[cur_lch].next_lch;
                        cur_lch = next_lch;
                } while (next_lch != -1);
 -
 -              return;
        }
  
 -      /* Disable all interrupts on the channel */
 -      if (cpu_class_is_omap1())
 -              dma_write(0, CICR(lch));
 -
 -      l = dma_read(CCR(lch));
 -      l &= ~OMAP_DMA_CCR_EN;
 -      dma_write(l, CCR(lch));
 -
        dma_chan[lch].flags &= ~OMAP_DMA_ACTIVE;
  }
  EXPORT_SYMBOL(omap_stop_dma);
@@@ -2345,40 -2347,46 +2345,46 @@@ EXPORT_SYMBOL(omap_stop_lcd_dma)
  
  static int __init omap_init_dma(void)
  {
+       unsigned long base;
        int ch, r;
  
        if (cpu_class_is_omap1()) {
-               omap_dma_base = OMAP1_IO_ADDRESS(OMAP1_DMA_BASE);
+               base = OMAP1_DMA_BASE;
                dma_lch_count = OMAP1_LOGICAL_DMA_CH_COUNT;
        } else if (cpu_is_omap24xx()) {
-               omap_dma_base = OMAP2_IO_ADDRESS(OMAP24XX_DMA4_BASE);
+               base = OMAP24XX_DMA4_BASE;
                dma_lch_count = OMAP_DMA4_LOGICAL_DMA_CH_COUNT;
        } else if (cpu_is_omap34xx()) {
-               omap_dma_base = OMAP2_IO_ADDRESS(OMAP34XX_DMA4_BASE);
+               base = OMAP34XX_DMA4_BASE;
                dma_lch_count = OMAP_DMA4_LOGICAL_DMA_CH_COUNT;
        } else if (cpu_is_omap44xx()) {
-               omap_dma_base = OMAP2_IO_ADDRESS(OMAP44XX_DMA4_BASE);
+               base = OMAP44XX_DMA4_BASE;
                dma_lch_count = OMAP_DMA4_LOGICAL_DMA_CH_COUNT;
        } else {
                pr_err("DMA init failed for unsupported omap\n");
                return -ENODEV;
        }
  
+       omap_dma_base = ioremap(base, SZ_4K);
+       BUG_ON(!omap_dma_base);
        if (cpu_class_is_omap2() && omap_dma_reserve_channels
                        && (omap_dma_reserve_channels <= dma_lch_count))
                dma_lch_count = omap_dma_reserve_channels;
  
        dma_chan = kzalloc(sizeof(struct omap_dma_lch) * dma_lch_count,
                                GFP_KERNEL);
-       if (!dma_chan)
-               return -ENOMEM;
+       if (!dma_chan) {
+               r = -ENOMEM;
+               goto out_unmap;
+       }
  
        if (cpu_class_is_omap2()) {
                dma_linked_lch = kzalloc(sizeof(struct dma_link_info) *
                                                dma_lch_count, GFP_KERNEL);
                if (!dma_linked_lch) {
-                       kfree(dma_chan);
-                       return -ENOMEM;
+                       r = -ENOMEM;
+                       goto out_free;
                }
        }
  
                                for (i = 0; i < ch; i++)
                                        free_irq(omap1_dma_irq[i],
                                                 (void *) (i + 1));
-                               return r;
+                               goto out_free;
                        }
                }
        }
                               "(error %d)\n", r);
                        for (i = 0; i < dma_chan_count; i++)
                                free_irq(omap1_dma_irq[i], (void *) (i + 1));
-                       return r;
+                       goto out_free;
                }
        }
  
        return 0;
+ out_free:
+       kfree(dma_chan);
+ out_unmap:
+       iounmap(omap_dma_base);
+       return r;
  }
  
  arch_initcall(omap_init_dma);
index 0000000000000000000000000000000000000000,d91b9be334ff2ff1b80078f95c1d805c0d278224..3ae52ccc793c5d7d47e8913738691902f6c882b2
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,42 +1,45 @@@
 -#include <linux/input/matrix_keypad.h>
+ /*
+  *  arch/arm/plat-omap/include/mach/keypad.h
+  *
+  *  Copyright (C) 2006 Komal Shah <komal_shah802003@yahoo.com>
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License version 2 as
+  * published by the Free Software Foundation.
+  */
+ #ifndef ASMARM_ARCH_KEYPAD_H
+ #define ASMARM_ARCH_KEYPAD_H
++#warning: Please update the board to use matrix_keypad.h instead
+ struct omap_kp_platform_data {
+       int rows;
+       int cols;
+       int *keymap;
+       unsigned int keymapsize;
+       unsigned int rep:1;
+       unsigned long delay;
+       unsigned int dbounce:1;
+       /* specific to OMAP242x*/
+       unsigned int *row_gpios;
+       unsigned int *col_gpios;
+ };
+ /* Group (0..3) -- when multiple keys are pressed, only the
+  * keys pressed in the same group are considered as pressed. This is
+  * in order to workaround certain crappy HW designs that produce ghost
+  * keypresses. */
+ #define GROUP_0               (0 << 16)
+ #define GROUP_1               (1 << 16)
+ #define GROUP_2               (2 << 16)
+ #define GROUP_3               (3 << 16)
+ #define GROUP_MASK    GROUP_3
+ #define KEY_PERSISTENT                0x00800000
+ #define KEYNUM_MASK           0x00EFFFFF
++#define KEY(col, row, val) (((col) << 28) | ((row) << 24) | (val))
++#define PERSISTENT_KEY(col, row) (((col) << 28) | ((row) << 24) | \
++                                              KEY_PERSISTENT)
+ #endif
index 94584f167a8222b1a013bf68d036afe913615daf,aa84729a0dff7b1161387bc7e468b27756d739a7..c0ff1e39d8934d443db9780e7cdf9e6c75ae7bff
@@@ -20,7 -20,7 +20,7 @@@
  
  #include <asm/cacheflush.h>
  
- #include <mach/iommu.h>
+ #include <plat/iommu.h>
  
  #include "iopgtable.h"
  
@@@ -664,7 -664,7 +664,7 @@@ static size_t iopgtable_clear_entry_cor
                nent = 1; /* for the next L1 entry */
        } else {
                bytes = IOPGD_SIZE;
 -              if (*iopgd & IOPGD_SUPER) {
 +              if ((*iopgd & IOPGD_SUPER) == IOPGD_SUPER) {
                        nent *= 16;
                        /* rewind to the 1st entry */
                        iopgd = (u32 *)((u32)iopgd & IOSUPER_MASK);
index a1c47ee95c0eef065e591cfeadde949eafb8e414,efa00ea97725b3c9229a02997d3440a07546babd..6cb12502e3065001b51e04ce252988ce831bbc3c
@@@ -39,7 -39,7 +39,7 @@@
  #include <linux/i2c/twl4030.h>
  
  #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
- #include <mach/cpu.h>
+ #include <plat/cpu.h>
  #endif
  
  /*
@@@ -795,7 -795,7 +795,7 @@@ twl4030_probe(struct i2c_client *client
                        twl->client = i2c_new_dummy(client->adapter,
                                        twl->address);
                        if (!twl->client) {
 -                              dev_err(&twl->client->dev,
 +                              dev_err(&client->dev,
                                        "can't attach client %d\n", i);
                                status = -ENOMEM;
                                goto fail;
index 0aecaaebef3d48c40141666f267f8da3fb473a65,c8f3e0245f1d0f519b6819768362a6abca5648b6..4b232251890904d2c4014a1c5b8e8fce2b325c07
  #include <linux/mmc/core.h>
  #include <linux/io.h>
  #include <linux/semaphore.h>
- #include <mach/dma.h>
+ #include <plat/dma.h>
  #include <mach/hardware.h>
- #include <mach/board.h>
- #include <mach/mmc.h>
- #include <mach/cpu.h>
+ #include <plat/board.h>
+ #include <plat/mmc.h>
+ #include <plat/cpu.h>
  
  /* OMAP HSMMC Host Controller Registers */
  #define OMAP_HSMMC_SYSCONFIG  0x0010
@@@ -2013,7 -2013,7 +2013,7 @@@ static struct platform_driver omap_hsmm
  static int __init omap_hsmmc_init(void)
  {
        /* Register the MMC driver */
 -      return platform_driver_register(&omap_hsmmc_driver);
 +      return platform_driver_probe(&omap_hsmmc_driver, omap_hsmmc_probe);
  }
  
  static void __exit omap_hsmmc_cleanup(void)