1. 27 4月, 2009 1 次提交
  2. 23 3月, 2009 1 次提交
    • E
      [ARM] pxa: move common GPIO handling code into plat-pxa · 38f539a6
      Eric Miao 提交于
      1. add common GPIO handling code into [arch/arm/plat-pxa]
      
      2. common code in <mach/gpio.h> moved into <plat/gpio.h>, new processors
         should implement its own <mach/gpio.h>, provide the following required
         definitions and '#include <plat/gpio.h>' in the end:
      
         - GPIO_REGS_VIRT for mapped virtual address of the GPIO registers'
           physical I/O memory
      
         - macros of GPLR(), GPSR(), GPDR() for constant optimization for
           functions gpio_{set,get}_value() (so that bit-bang code can still
           have tolerable performance)
      
         - NR_BUILTIN_GPIO for the number of onchip GPIO
      
         - definitions of __gpio_is_inverted() and __gpio_is_occupied(), they
           can be either macros or inlined functions
      Signed-off-by: NEric Miao <eric.miao@marvell.com>
      38f539a6
  3. 09 3月, 2009 5 次提交
  4. 02 12月, 2008 2 次提交
    • E
      f1647e4c
    • E
      [ARM] pxa: add support for additional GPIOs on PXA26x · 067455aa
      Eric Miao 提交于
      Original patch from Marek Vasut, the problems with PXA26x are:
      
      1. there are additional 4 GPIOs 86,87,88,89 have their direction bits
         inverted in GPDR2, as well as their alternate function bits being
         '1' for their GPIO functionality in GAFRx
      
      2. there is no easy way to decide if the processor is a pxa26x or a
         pxa250/pxa255 at run-time, so the assumption here is the pxa26x
         will be treated as one of the pxa25x variants, and board code
         should have a better knowledge of the processor it is featured
      
      Introduce pxa26x_init_irq() for the second purpose, and treat the
      additional GPIOs > 85 on PXA25x specially.
      
      Kconfig option CONFIG_CPU_PXA26x is introduced to optimize the code
      a bit when PXA26x support isn't needed. Board config options have
      to select this to enable the support for PXA26x.
      
      __gpio_is_inverted() will be optimized way when CONFIG_CPU_PXA26x
      isn't selected.
      Signed-off-by: NMarek Vasut <marek.vasut@gmail.com>
      Signed-off-by: NEric Miao <eric.miao@marvell.com>
      067455aa
  5. 09 10月, 2008 1 次提交
  6. 06 9月, 2008 1 次提交
  7. 07 8月, 2008 2 次提交
  8. 19 4月, 2008 7 次提交
  9. 06 2月, 2008 1 次提交