1. 14 1月, 2011 1 次提交
  2. 03 7月, 2009 1 次提交
    • D
      [ARM] pxa: use kzalloc() in pxa_init_gpio_chip() · 4aa78264
      Daniel Mack 提交于
      As slab is available early now, use kzalloc() rather than
      alloc_bootmem_low() in pxa_init_gpio_chip().
      
      This removes the following boot time warning:
      
      <4>------------[ cut here ]------------
      <4>WARNING: at mm/bootmem.c:535 alloc_arch_preferred_bootmem+0x2c/0x54()
      <d>Modules linked in:
      [<c0029430>] (unwind_backtrace+0x0/0xdc) from [<c0036f64>] (warn_slowpath_common+0x4c/0x80)
      [<c0036f64>] (warn_slowpath_common+0x4c/0x80) from [<c000ede0>] (alloc_arch_preferred_bootmem+0x2c/0x54)
      [<c000ede0>] (alloc_arch_preferred_bootmem+0x2c/0x54) from [<c000f2e4>] (___alloc_bootmem_nopanic+0x34/0xd0)
      [<c000f2e4>] (___alloc_bootmem_nopanic+0x34/0xd0) from [<c000f6e4>] (___alloc_bootmem+0xc/0x34)
      [<c000f6e4>] (___alloc_bootmem+0xc/0x34) from [<c000cb20>] (pxa_init_gpio+0x48/0x228)
      [<c000cb20>] (pxa_init_gpio+0x48/0x228) from [<c0009794>] (init_IRQ+0x34/0x44)
      [<c0009794>] (init_IRQ+0x34/0x44) from [<c00089d4>] (start_kernel+0x144/0x264)
      [<c00089d4>] (start_kernel+0x144/0x264) from [<a0008034>] (0xa0008034)
      <4>---[ end trace 1b75b31a2719ed1c ]---
      Signed-off-by: NDaniel Mack <daniel@caiaq.de>
      Signed-off-by: NEric Miao <eric.y.miao@gmail.com>
      4aa78264
  3. 27 4月, 2009 1 次提交
  4. 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
  5. 09 3月, 2009 5 次提交
  6. 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
  7. 09 10月, 2008 1 次提交
  8. 06 9月, 2008 1 次提交
  9. 07 8月, 2008 2 次提交
  10. 19 4月, 2008 7 次提交
  11. 06 2月, 2008 1 次提交