1. 14 8月, 2009 1 次提交
  2. 23 6月, 2009 2 次提交
    • B
      [ARM] S3C24XX: Fix spi-bus configuration build errors · 927dbcd6
      Ben Dooks 提交于
      The commit ec976d6e
      removed a number of gpio definitions from <mach/hardware.h>
      but misssed updating these two files:
      
      Fix the following build errors by including <linux/gpio.h>:
      arch/arm/plat-s3c24xx/spi-bus1-gpg5_6_7.c: In function 's3c24xx_spi_gpiocfg_bus1_gpg5_6_7':
      arch/arm/plat-s3c24xx/spi-bus1-gpg5_6_7.c:25: error: implicit declaration of function 's3c2410_gpio_cfgpin'
      arch/arm/plat-s3c24xx/spi-bus1-gpg5_6_7.c:28: error: implicit declaration of function 's3c2410_gpio_pullup'
      arch/arm/plat-s3c24xx/spi-bus0-gpe11_12_13.c: In function 's3c24xx_spi_gpiocfg_bus0_gpe11_12_13':
      arch/arm/plat-s3c24xx/spi-bus0-gpe11_12_13.c:25: error: implicit declaration of function 's3c2410_gpio_cfgpin'
      arch/arm/plat-s3c24xx/spi-bus0-gpe11_12_13.c:28: error: implicit declaration of function 's3c2410_gpio_pullup'
      Signed-off-by: NBen Dooks <ben@simtec.co.uk>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      927dbcd6
    • B
      [ARM] S3C24XX: Fix use of CONFIG_S3C24XX_PWM · 291e99a1
      Ben Dooks 提交于
      CONFIG_S3C24XX_PWM was defined in arch/arm/plat-s3c24xx/Kconfig but
      not used anywhere else as the corresponding makefile used
      CONFIG_HAVE_PWM (selected by CONFIG_S3C24XX_PWM) to compile the PWM
      driver.
      
      Change the makefile to use CONFIG_S3C24XX_PWM to compile this driver
      to ensure it is only build when needed.
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      291e99a1
  3. 19 5月, 2009 3 次提交
  4. 18 5月, 2009 6 次提交
    • B
      [ARM] S3C24XX: GPIO: Change to macros for GPIO numbering · 070276d5
      Ben Dooks 提交于
      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: NBen Dooks <ben-linux@fluff.org>
      070276d5
    • B
      [ARM] S3C24XX: GPIO: Start removal of S3C24XX_GPIO_BASE · fda7b2b0
      Ben Dooks 提交于
      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: NBen Dooks <ben-linux@fluff.org>
      fda7b2b0
    • B
      [ARM] S3C24XX: Fix missing <linux/sysdev.h> · 86c03c52
      Ben Dooks 提交于
      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: NBen Dooks <ben-linux@fluff.org>
      86c03c52
    • B
      [ARM] S3C24XX: GPIO: Move gpio functions out of <mach/hardware.h> · ec976d6e
      Ben Dooks 提交于
      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: NMark Brown <broonie@opensource.wolfsonmicro.com>
      CC: David Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      ec976d6e
    • B
      [ARM] S3C24XX: GPIO: Remove pin specific input and output defines · 9f05f6a9
      Ben Dooks 提交于
      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: NBen Dooks <ben-linux@fluff.org>
      9f05f6a9
    • B
      [ARM] S3C24XX: GPIO: Remove s3c2410_gpio_irq2pin() call · ec7f4d5d
      Ben Dooks 提交于
      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: NBen Dooks <ben@simtec.co.uk>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      ec7f4d5d
  5. 17 5月, 2009 1 次提交
  6. 15 5月, 2009 1 次提交
  7. 07 5月, 2009 4 次提交
  8. 01 5月, 2009 5 次提交
  9. 17 4月, 2009 3 次提交
  10. 20 3月, 2009 1 次提交
    • R
      [ARM] pass reboot command line to arch_reset() · be093beb
      Russell King 提交于
      OMAP wishes to pass state to the boot loader upon reboot in order to
      instruct it whether to wait for USB-based reflashing or not.  There is
      already a facility to do this via the reboot() syscall, except we ignore
      the string passed to machine_restart().
      
      This patch fixes things to pass this string to arch_reset().  This means
      that we keep the reboot mode limited to telling the kernel _how_ to
      perform the reboot which should be independent of what we request the
      boot loader to do.
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      be093beb
  11. 12 3月, 2009 1 次提交
  12. 10 3月, 2009 1 次提交
    • B
      [ARM] S3C: Tidy sleep code path to fix call flow · fff94cd9
      Ben Dooks 提交于
      As noted by Russell King, the sleep code path is not
      elegant and makes use of leaving items on the stack
      between calls.
      
      Change the code that does the following:
      
              if (s3c_cpu_save(regs_save) == 0) {
                      flush_cache_all();
                      S3C_PMDBG("preparing to sleep\n");
                      pm_cpu_sleep();
              }
      
      to simply call s3c_cpu_save, and let that do the
      necessary calls to quiesce and sleep the system.
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      fff94cd9
  13. 08 3月, 2009 10 次提交
  14. 05 3月, 2009 1 次提交