Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Fri, 13 Mar 2009 21:44:51 +0000 (21:44 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 13 Mar 2009 21:44:51 +0000 (21:44 +0000)
Conflicts:

arch/arm/mach-at91/gpio.c

13 files changed:
1  2 
MAINTAINERS
arch/arm/kernel/setup.c
arch/arm/mach-at91/gpio.c
arch/arm/mm/mmu.c
arch/arm/plat-mxc/dma-mx1-mx2.c
drivers/input/keyboard/corgikbd.c
drivers/input/keyboard/spitzkbd.c
drivers/input/touchscreen/corgi_ts.c
drivers/media/video/pxa_camera.c
drivers/net/smc911x.h
drivers/video/Kconfig
drivers/video/pxafb.c
lib/Kconfig.debug

diff --cc MAINTAINERS
Simple merge
Simple merge
index 028e4f7a88be9187950415e6c89eaf798e2e8236,2f7d4977dce95b3c43c575d2696b30888af5e187..f2236f0e101f6ba522529e1708c219cf587fa8b3
@@@ -448,20 -502,17 +509,17 @@@ static struct lock_class_key gpio_lock_
  void __init at91_gpio_irq_setup(void)
  {
        unsigned                pioc, pin;
 -      struct at91_gpio_bank   *this, *prev;
 +      struct at91_gpio_chip   *this, *prev;
  
 -      for (pioc = 0, pin = PIN_BASE, this = gpio, prev = NULL;
 +      for (pioc = 0, pin = PIN_BASE, this = gpio_chip, prev = NULL;
                        pioc++ < gpio_banks;
                        prev = this, this++) {
 -              unsigned        id = this->id;
 +              unsigned        id = this->bank->id;
                unsigned        i;
  
-               /* enable PIO controller's clock */
-               clk_enable(this->bank->clock);
                __raw_writel(~0, this->regbase + PIO_IDR);
  
 -              for (i = 0, pin = this->chipbase; i < 32; i++, pin++) {
 +              for (i = 0, pin = this->chip.base; i < 32; i++, pin++) {
                        lockdep_set_class(&irq_desc[pin].lock, &gpio_lock_class);
  
                        /*
@@@ -579,21 -547,22 +637,24 @@@ void __init at91_gpio_init(struct at91_
  
        BUG_ON(nr_banks > MAX_GPIO_BANKS);
  
 -      gpio = data;
        gpio_banks = nr_banks;
  
 -      for (i = 0, last = NULL; i < nr_banks; i++, last = data, data++) {
 -              data->chipbase = PIN_BASE + i * 32;
 -              data->regbase = data->offset + (void __iomem *)AT91_VA_BASE_SYS;
 +      for (i = 0; i < nr_banks; i++) {
 +              at91_gpio = &gpio_chip[i];
 +
 +              at91_gpio->bank = &data[i];
 +              at91_gpio->chip.base = PIN_BASE + i * 32;
 +              at91_gpio->regbase = at91_gpio->bank->offset +
 +                      (void __iomem *)AT91_VA_BASE_SYS;
  
 -              clk_enable(data->clock);
+               /* enable PIO controller's clock */
 -              /*
 -               * Some processors share peripheral ID between multiple GPIO banks.
 -               *  SAM9263 (PIOC, PIOD, PIOE)
 -               *  CAP9 (PIOA, PIOB, PIOC, PIOD)
 -               */
 -              if (last && last->id == data->id)
 -                      last->next = data;
++              clk_enable(at91_gpio->bank->clock);
 +              /* AT91SAM9263_ID_PIOCDE groups PIOC, PIOD, PIOE */
 +              if (last && last->bank->id == at91_gpio->bank->id)
 +                      last->next = at91_gpio;
 +              last = at91_gpio;
 +
 +              gpiochip_add(&at91_gpio->chip);
        }
  }
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge