Merge branch 'sa11x0-mcp-fixes' into fixes
Russell King [Thu, 26 Jan 2012 21:06:54 +0000 (21:06 +0000)]
1  2 
arch/arm/mach-sa1100/collie.c
arch/arm/mach-sa1100/generic.c

@@@ -27,7 -27,6 +27,6 @@@
  #include <linux/timer.h>
  #include <linux/gpio.h>
  #include <linux/pda_power.h>
- #include <linux/mfd/ucb1x00.h>
  
  #include <mach/hardware.h>
  #include <asm/mach-types.h>
@@@ -86,15 -85,10 +85,10 @@@ static struct scoop_pcmcia_config colli
        .num_devs       = 1,
  };
  
  static struct mcp_plat_data collie_mcp_data = {
        .mccr0          = MCCR0_ADM | MCCR0_ExtClk,
        .sclk_rate      = 9216000,
-       .codec          = "ucb1x00",
-       .codec_pdata    = &collie_ucb1x00_data,
+       .gpio_base      = COLLIE_TC35143_GPIO_BASE,
  };
  
  /*
@@@ -144,6 -138,8 +138,6 @@@ static struct pda_power_pdata collie_po
  static struct resource collie_power_resource[] = {
        {
                .name           = "ac",
 -              .start          = gpio_to_irq(COLLIE_GPIO_AC_IN),
 -              .end            = gpio_to_irq(COLLIE_GPIO_AC_IN),
                .flags          = IORESOURCE_IRQ |
                                  IORESOURCE_IRQ_HIGHEDGE |
                                  IORESOURCE_IRQ_LOWEDGE,
@@@ -345,8 -341,7 +339,8 @@@ static void __init collie_init(void
  
        GPSR |= _COLLIE_GPIO_UCB1x00_RESET;
  
 -
 +      collie_power_resource[0].start = gpio_to_irq(COLLIE_GPIO_AC_IN);
 +      collie_power_resource[0].end = gpio_to_irq(COLLIE_GPIO_AC_IN);
        platform_scoop_config = &collie_pcmcia_config;
  
        ret = platform_add_devices(devices, ARRAY_SIZE(devices));
  
        sa11x0_register_mtd(&collie_flash_data, collie_flash_resources,
                            ARRAY_SIZE(collie_flash_resources));
-       /*
-        * Setup the PPC unit correctly.
-        */
-       PPDR &= ~PPC_RXD4;
-       PPDR |= PPC_TXD4 | PPC_SCLK | PPC_SFRM;
-       PSDR |= PPC_RXD4;
-       PSDR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);
-       PPSR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);
        sa11x0_register_mcp(&collie_mcp_data);
  
        sharpsl_save_param();
@@@ -217,15 -217,10 +217,10 @@@ static struct platform_device sa11x0uar
  static struct resource sa11x0mcp_resources[] = {
        [0] = {
                .start  = __PREG(Ser4MCCR0),
-               .end    = __PREG(Ser4MCCR0) + 0x1C - 1,
+               .end    = __PREG(Ser4MCCR0) + 0xffff,
                .flags  = IORESOURCE_MEM,
        },
        [1] = {
-               .start  = __PREG(Ser4MCCR1),
-               .end    = __PREG(Ser4MCCR1) + 0x4 - 1,
-               .flags  = IORESOURCE_MEM,
-       },
-       [2] = {
                .start  = IRQ_Ser4MCP,
                .end    = IRQ_Ser4MCP,
                .flags  = IORESOURCE_IRQ,
@@@ -350,9 -345,29 +345,9 @@@ void sa11x0_register_irda(struct irda_p
        sa11x0_register_device(&sa11x0ir_device, irda);
  }
  
  static struct platform_device sa11x0rtc_device = {
        .name           = "sa1100-rtc",
        .id             = -1,
 -      .resource       = sa11x0rtc_resources,
 -      .num_resources  = ARRAY_SIZE(sa11x0rtc_resources),
  };
  
  static struct platform_device *sa11x0_devices[] __initdata = {