1. 18 May, 2009 6 commits
    • Ben Dooks's avatar
      [ARM] S3C24XX: GPIO: Change to macros for GPIO numbering · 070276d5
      Ben Dooks authored
      Prepare to remove the large number of S3C2410_GPxn defines
      by moving to S3C2410_GPx(n) in arch/arm.
      
      The following perl was used to change the files:
      
          perl -pi~ -e 's/S3C2410_GP([A-Z])([0-9]+)([^_^0-9])/S3C2410_GP\1\(\2\)\3/g'
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      070276d5
    • Ben Dooks's avatar
      [ARM] S3C24XX: GPIO: Add S3C64XX style GPIO numbering · 75cbcff3
      Ben Dooks authored
      Move the new style of GPIO numbering by using a single
      macro for each GPIO bank. This means S3C2410_GPA0 becomes
      S3C2410_GPA(0), and so on.
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      75cbcff3
    • Ben Dooks's avatar
      [ARM] S3C24XX: GPIO: Start removal of S3C24XX_GPIO_BASE · fda7b2b0
      Ben Dooks authored
      The S3C24XX_GPIO_BASE makes it difficult to compress the
      GPIO number space, and is only used in a few places of
      which everything outside arch/arm/plat-s3c24xx/gpiolib.c
      will be removed as soon as possible.
      
      Change gpiolib.c to use the S3C2410_GPxCON register addresses
      as the base for each bank, thus eliminating S3C24XX_GPIO_BASE.
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      fda7b2b0
    • Ben Dooks's avatar
      [ARM] S3C24XX: GPIO: Clean out unused definitions in <mach/regs-gpio.h> · 9c7099ca
      Ben Dooks authored
      The <mach/regs-gpio.h> really does not need the input and output
      pin configurations as these are standard and have a generic
      representation (plus the s3c24xx gpio specific code is going to
      be phased out soon).
      
      The following sed was applied to remove the lines:
      
          sed -i~ -e '/S3C2410_GP[A-Z][0-9]*_\INP/d' \
      	    -e '/S3C2410_GP[A-Z][0-9]*_\OUTP/d' \
      	    -e '/S3C2410_GPA[0-9]*_OUT/d'
      
      to remove these.
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      9c7099ca
    • Ben Dooks's avatar
      [ARM] S3C24XX: Fix missing <linux/sysdev.h> · 86c03c52
      Ben Dooks authored
      In our recent changes, arch/arm/plat-s3c24xx/gpiolib.c needs
      to have <linux/sysdev.h> included for it to build.
      
      This fixes the following error/warnings:
      
      arch/arm/plat-s3c/include/plat/pm.h:104: error: expected declaration specifiers or '...' before 'pm_message_t'
      arch/arm/plat-s3c/include/plat/pm.h:104: warning: 'struct sys_device' declared inside parameter list
      arch/arm/plat-s3c/include/plat/pm.h:104: warning: its scope is only this definition or declaration, which is probably not what you want
      arch/arm/plat-s3c/include/plat/pm.h:105: warning: 'struct sys_device' declared inside parameter list
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      86c03c52
    • Ben Dooks's avatar
      [ARM] S3C24XX: GPIO: Move gpio functions out of <mach/hardware.h> · ec976d6e
      Ben Dooks authored
      Move all the gpio functions out of <mach/hardware.h> as
      this file is for defining the generic IO base addresses
      for the kernel IO calls.
      
      Make a new header <mach/gpio-fns.h> to take this and
      include it via the chain from <linux/gpio.h> which is
      what most of these files should be using (and will be
      changed as soon as possible).
      
      Note, this does make minor changes to some drivers but
      should not mess up any pending merges.
      
      CC: Richard Purdie <rpurdie@rpsys.net>
      Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      CC: David Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      ec976d6e
  2. 17 May, 2009 2 commits
    • Ben Dooks's avatar
      [ARM] S3C24XX: GPIO: Remove pin specific input and output defines · 9f05f6a9
      Ben Dooks authored
      The use of S3C2410_GP[A-Z]x_INP and S3C2410_GP[A-Z]x_OUTP are
      very rare and are taking up large amounts of space in the
      regs-gpio.h header.
      
      The GPIO layer has had generic input and out defines called
      S3C2410_GPIO_INPUT and S3C2410_GPIO_OUTPUT for a while which work
      for all S3C24XX GPIOs.
      
      Do the following replacements:
      
         S3C2410_GP[A-Z][0-9]*_\OUTP => S3C2410_GPIO_OUTPUT
         S3C2410_GP[A-Z][0-9]*_\INP  => /S3C2410_GPIO_INPUT
         S3C2410_GPA[0-9]*_OUT       => S3C2410_GPIO_OUTPUT
      
      to remove any usages of these and prepare the header for
      the removal of these.
      
      The following command was used to acheive this:
      
      find . -type f -writable ! -name regs-gpio.h ! -name "*~" | xargs sed -i~ -e 's/S3C2410_GP[A-Z][0-9]*_\OUTP/S3C2410_GPIO_OUTPUT/g' -e 's/S3C2410_GP[A-Z][0-9]*_\INP/S3C2410_GPIO_INPUT/g' -e 's/S3C2410_GPA[0-9]*_OUT/S3C2410_GPIO_OUTPUT/g'
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      9f05f6a9
    • Ben Dooks's avatar
      [ARM] S3C24XX: GPIO: Remove s3c2410_gpio_irq2pin() call · ec7f4d5d
      Ben Dooks authored
      Remove the s3c2410_gpio_irq2pin() function as it is not being
      used in any in kernel driver and the function is probably not
      being used anywhere else.
      
      This is also part of the effort to remove any of the s3c24xx gpio
      specific code that cannot be recreated by using the gpiolib
      framework now in the kernel.
      Signed-off-by: default avatarBen Dooks <ben@simtec.co.uk>
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      ec7f4d5d
  3. 07 May, 2009 22 commits
  4. 01 May, 2009 8 commits
  5. 30 Apr, 2009 2 commits