1. 14 12月, 2011 1 次提交
  2. 01 12月, 2011 2 次提交
    • S
      arm/imx: fix irq_base for gpio · 04aafd71
      Shawn Guo 提交于
      When gpio core dynamically allocate gpio number for a port, it starts
      from the end of the total range, 0 ~ ARCH_NR_GPIOS.  That said, the
      earlier a port gets probed, the bigger gpio number it gets assigned.
      To match this, the irq_base for gpio should be assigned from
      'MXC_GPIO_IRQ_START + ARCH_NR_GPIOS' decreasingly.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      04aafd71
    • S
      arm/imx: fix return type of callback passed to of_irq_init() · 2a3267a4
      Shawn Guo 提交于
      The of_irq_init() expects the callback passed by .data of of_device_id
      return 'int' instead of 'void'.  This patch fixes it to have
      irq_init_cb() return the correct value, and in turn have the secondary
      interrupt controller (gpio in this case) initialized properly and also
      eliminate the error message 'of_irq_init: children remain, but no
      parents' which was overlooked before.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      2a3267a4
  3. 22 11月, 2011 2 次提交
  4. 17 11月, 2011 1 次提交
  5. 16 11月, 2011 1 次提交
  6. 11 11月, 2011 3 次提交
    • S
      arm/imx: fix imx6q mmc error when mounting rootfs · f750ba9b
      Shawn Guo 提交于
      The following error is seen in some case when mounting rootfs from
      SD/MMC cards.
      
        Waiting for root device /dev/mmcblk0p1...
        mmc1: host does not support reading read-only switch. assuming write-enable.
        mmc1: new high speed SDHC card at address b368
        mmcblk0: mmc1:b368 SDC   3.74 GiB
         mmcblk0: p1
        mmc1: Timeout waiting for hardware interrupt.
        mmcblk0: error -110 transferring data, sector 3678224, nr 40, cmd response 0x900, card status 0xc00
        end_request: I/O error, dev mmcblk0, sector 3678225
        Buffer I/O error on device mmcblk0p1, logical block 458754
        lost page write due to I/O error on mmcblk0p1
      
      This patch fixes the problem by lowering the usdhc clock and correcting
      watermark configuration.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Cc: Chris Ball <cjb@laptop.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      f750ba9b
    • S
      arm/imx: fix the references to ARCH_MX3 · 59198b6c
      Shawn Guo 提交于
      The config symbol ARCH_MX3 has been removed by commit 'a89cf59b
      arm/imx: merge i.MX3 and i.MX6', and it should not be referenced
      any more.
      
      The patch also change ARCH_MX* to SOC_IMX* for other platforms.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      59198b6c
    • S
      arm/imx: remove imx_idle hook and use pm_idle instead · 8c6d8319
      Shawn Guo 提交于
      The patch removes imx_idle hook and use pm_idle instead to get imx
      arch_idle prepared for the cleanup.  It's suggested by Russel King
      as below.
      
      > The final removal of mach/system.h depends on getting rid of the arch_idle
      > thing.  While going through these headers, I was dismayed to find these:
      >
      > arch/arm/mach-s3c2410/include/mach/system.h:void (*s3c24xx_idle)(void);
      > arch/arm/plat-mxc/include/mach/system.h:extern void (*imx_idle)(void);
      >
      > when we have a perfectly good pm_idle hook already in place - so there's
      > no excuse for these especially when other platforms are already using
      > pm_idle to hook their platform specific idle function into.  This is
      > something that better be gone at the next merge window!
      Suggested-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      8c6d8319
  7. 01 11月, 2011 2 次提交
  8. 31 10月, 2011 6 次提交
  9. 25 10月, 2011 1 次提交
  10. 24 10月, 2011 4 次提交
  11. 18 10月, 2011 4 次提交
    • S
      arm/imx: explicitly includes mach/hardware.h in pm-imx27.c · bbbab56e
      Shawn Guo 提交于
      The pm-imx27.c references a number of things requiring the explicit
      inclusion of mach/hardware.h.  Otherwise, when indirect inclusion
      to mach/hardware.h gets cleaned up, we will see the following
      compile error.
      
        CC      arch/arm/mach-imx/pm-imx27.o
      arch/arm/mach-imx/pm-imx27.c: In function ‘mx27_suspend_enter’:
      arch/arm/mach-imx/pm-imx27.c:22:3: error: implicit declaration of function ‘IOMEM’
      arch/arm/mach-imx/pm-imx27.c:22:3: error: implicit declaration of function ‘IMX_IO_P2V’
      arch/arm/mach-imx/pm-imx27.c: In function ‘mx27_pm_init’:
      arch/arm/mach-imx/pm-imx27.c:42:2: error: implicit declaration of function ‘cpu_is_mx27’
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      bbbab56e
    • S
      arm/imx: remove mx27_setup_weimcs() from mx27.h · 25971426
      Shawn Guo 提交于
      The helper function mx27_setup_weimcs() references IOMEM() and
      IMX_IO_P2V() but without required header mach/hardware.h included
      in mx27.h.  This will break the build of those mx27 file with no
      direct inclusion of mach/hardware.h, or when indirect inclusion to
      mach/hardware.h breaks.
      
      For example, when the inclusion of mach/hardware.h gets removed from
      mach/gpio.h, we will see the following compile error.
      
        CC      arch/arm/mach-imx/pm-imx27.o
      In file included from arch/arm/mach-imx/pm-imx27.c:14:0:
      arch/arm/plat-mxc/include/mach/mx27.h: In function ‘mx27_setup_weimcs’:
      arch/arm/plat-mxc/include/mach/mx27.h:138:2: error: implicit declaration of function ‘IOMEM’
      arch/arm/plat-mxc/include/mach/mx27.h:138:2: error: implicit declaration of function ‘IMX_IO_P2V’
      
      This patch removes mx27_setup_weimcs() from mx27.h and makes it local
      to mach-pcm038.c, which is the only user for this helper.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      25971426
    • S
      arm/imx: explicitly includes mach/hardware.h in mach-kzm_arm11_01.c · f2d9661b
      Shawn Guo 提交于
      The mach-kzm_arm11_01.c references a number of things requiring the
      explicit inclusion of mach/hardware.h.  Otherwise, when indirect
      inclusion to mach/hardware.h gets cleaned up, we will see the following
      compile error.
      
        CC      arch/arm/mach-imx/mach-kzm_arm11_01.o
      arch/arm/mach-imx/mach-kzm_arm11_01.c:71:3: error: implicit declaration of function ‘IOMEM’
      arch/arm/mach-imx/mach-kzm_arm11_01.c:71:3: error: implicit declaration of function ‘IMX_IO_P2V_MODULE’
      arch/arm/mach-imx/mach-kzm_arm11_01.c:71:14: error: ‘MX31_CS4’ undeclared here (not in a function)
      arch/arm/mach-imx/mach-kzm_arm11_01.c:71:14: error: ‘MX31_CS5’ undeclared here (not in a function)
      arch/arm/mach-imx/mach-kzm_arm11_01.c:71:3: error: implicit declaration of function ‘IMX_IO_P2V’
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      f2d9661b
    • S
      arm/imx: remove mx31_setup_weimcs() from mx31.h · f16fcb63
      Shawn Guo 提交于
      The helper function mx31_setup_weimcs() references IOMEM() and
      IMX_IO_P2V() but without required header mach/hardware.h included
      in mx31.h.  This will break the build of those mx31 based board file
      with no direct inclusion of mach/hardware.h, or when indirect inclusion
      to mach/hardware.h breaks.
      
      For example, when the inclusion of mach/hardware.h gets removed from
      mach/gpio.h, we will see the following compile error.
      
        CC      arch/arm/mach-imx/mach-pcm037_eet.o
      In file included from arch/arm/mach-imx/devices-imx31.h:9:0,
                       from arch/arm/mach-imx/mach-pcm037_eet.c:20:
      arch/arm/plat-mxc/include/mach/mx31.h: In function ‘mx31_setup_weimcs’:
      arch/arm/plat-mxc/include/mach/mx31.h:129:2: error: implicit declaration of function ‘IOMEM’
      arch/arm/plat-mxc/include/mach/mx31.h:129:2: error: implicit declaration of function ‘IMX_IO_P2V’
      
      This patch removes mx31_setup_weimcs() from mx31.h and makes it local
      to mach-qong.c, which is the only user for this helper.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      f16fcb63
  12. 17 10月, 2011 1 次提交
  13. 04 10月, 2011 2 次提交
  14. 28 9月, 2011 3 次提交
  15. 26 9月, 2011 1 次提交
  16. 20 9月, 2011 2 次提交
  17. 19 9月, 2011 1 次提交
  18. 26 8月, 2011 3 次提交