1. 25 10月, 2011 1 次提交
    • P
      plat-mxc: iomux-v3.h: implicitly enable pull-up/down when that's desired · 6571534b
      Paul Fertser 提交于
      To configure pads during the initialisation a set of special constants
      is used, e.g.
      #define MX25_PAD_FEC_MDIO__FEC_MDIO IOMUX_PAD(0x3c4, 0x1cc, 0x10, 0, 0, PAD_CTL_HYS | PAD_CTL_PUS_22K_UP)
      
      The problem is that no pull-up/down is getting activated unless both
      PAD_CTL_PUE (pull-up enable) and PAD_CTL_PKE (pull/keeper module
      enable) set. This is clearly stated in the i.MX25 datasheet and is
      confirmed by the measurements on hardware. This leads to some rather
      hard to understand bugs such as misdetecting an absent ethernet PHY (a
      real bug i had), unstable data transfer etc. This might affect mx25,
      mx35, mx50, mx51 and mx53 SoCs.
      
      It's reasonable to expect that if the pullup value is specified, the
      intention was to have it actually active, so we implicitly add the
      needed bits.
      
      Cc: stable@kernel.org
      Signed-off-by: NPaul Fertser <fercerpav@gmail.com>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      6571534b
  2. 18 10月, 2011 2 次提交
    • 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: 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
  3. 14 10月, 2011 1 次提交
  4. 07 10月, 2011 1 次提交
  5. 04 10月, 2011 2 次提交
  6. 26 9月, 2011 4 次提交
  7. 23 9月, 2011 1 次提交
  8. 20 9月, 2011 3 次提交
  9. 15 9月, 2011 1 次提交
  10. 27 8月, 2011 1 次提交
  11. 26 8月, 2011 4 次提交
  12. 24 8月, 2011 3 次提交
  13. 23 8月, 2011 1 次提交
  14. 22 8月, 2011 1 次提交
  15. 17 8月, 2011 6 次提交
    • T
      ARM: i.MX53: clean up iomux-mx53.h · 4ab37153
      Troy Kisky 提交于
      Delete about 1,000 symbols used only once
      
      I used the following script to clean up the file.
      
      cp iomux-mx53.h iomux-mx53.h.cpy
      
      sed -n iomux-mx53.h.cpy \
      -e 's/#define[ \x09]\+\(_MX5[0-9a-zA-Z_]*\)[ \x09]\+\(.\+\)/s@\1@\2@g/p' >t.tmp
      
      sed iomux-mx53.h.cpy \
      -e '/define[ \x09]\+_MX5/d' \
      -f t.tmp \
      -e 's/,[ \x09]*\([^,]\+\)/, \1/g' \
      -e 's/, 0)[ \x09]*|[ \x09]*MUX_PAD_CTRL(/, /' \
      -e 's/(IOMUX_PAD(\(.*\)))/IOMUX_PAD(\1)/' \
      -e 's/0x\([0-9a-fA-F]\{2\}\)[ \x09]*,/0x0\1,/' \
      -e 's/NON_PAD_I/__NA_/' \
      -e 's/0x0,/__NA_,/' \
      -e 's/#define[ \x09]\+\(MX5[0-9a-zA-Z_]*\)[ \x09]\+\(IOMUX_PAD.\+\)/#define \1\x09\2/' \
      -e 's/\(#define MX5[^\x09]\{5,12\}\)\x09\(IOMUX_PAD.\+\)/\1\x09\x09\x09\x09\x09\2/' \
      -e 's/\(#define MX5[^\x09]\{13,20\}\)\x09\(IOMUX_PAD.\+\)/\1\x09\x09\x09\x09\2/' \
      -e 's/\(#define MX5[^\x09]\{21,28\}\)\x09\(IOMUX_PAD.\+\)/\1\x09\x09\x09\2/' \
      -e 's/\(#define MX5[^\x09]\{29,36\}\)\x09\(IOMUX_PAD.\+\)/\1\x09\x09\2/' \
      -e 's/\(#define MX5[^\x09]\{45,\}\)\x09\(IOMUX_PAD.\+\)/\1\x09\\\n\x09\x09\x09\x09\x09\x09\x09\2/' \
      -e 's/, IOMUX_CONFIG_SION,/, 0 | IOMUX_CONFIG_SION,/' >iomux-mx53.h
      Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      4ab37153
    • T
      ARM: i.MX51: clean up iomux-mx51.h · 315046d0
      Troy Kisky 提交于
      Delete about 700 used only once symbols.
      
      I used the following script to clean up the file,
      iomux-mx51.h.
      
      cp iomux-mx51.h iomux-mx51.h.cpy
      
      sed -n iomux-mx51.h.cpy \
      -e 's/#define[ \x09]\+\(_MX5[0-9a-zA-Z_]*\)[ \x09]\+\(.\+\)/s@\1@\2@g/p' >t.tmp
      
      sed iomux-mx51.h.cpy \
      -e '/define[ \x09]\+_MX5/d' \
      -f t.tmp \
      -e 's/,[ \x09]*\([^,]\+\)/, \1/g' \
      -e 's/, 0)[ \x09]*|[ \x09]*MUX_PAD_CTRL(/, /' \
      -e 's/(IOMUX_PAD(\(.*\)))/IOMUX_PAD(\1)/' \
      -e 's/0x\([0-9a-fA-F]\{2\}\)[ \x09]*,/0x0\1,/' \
      -e 's/0x0\([0-9a-fA-F]\{3\}\)[ \x09]*,/0x\1,/' \
      -e '/#include <mach\/iomux-v3.h/ a#define __NA_\x090x000\n' \
      -e 's/0x[0]\{1,3\},/__NA_,/' \
      -e 's/#define[ \x09]\+\(MX5[0-9a-zA-Z_]*\)[ \x09]\+\(IOMUX_PAD.\+\)/#define \1\x09\2/' \
      -e 's/\(#define MX5[^\x09]\{5,12\}\)\x09\(IOMUX_PAD.\+\)/\1\x09\x09\x09\x09\2/' \
      -e 's/\(#define MX5[^\x09]\{13,20\}\)\x09\(IOMUX_PAD.\+\)/\1\x09\x09\x09\2/' \
      -e 's/\(#define MX5[^\x09]\{21,28\}\)\x09\(IOMUX_PAD.\+\)/\1\x09\x09\2/' \
      -e 's/\(#define MX5[^\x09]\{29,36\}\)\x09\(IOMUX_PAD.\+\)/\1\x09\2/' \
      -e 's/\(#define MX5[^\x09]\{45,\}\)\x09\(IOMUX_PAD.\+\)/\1\x09\\\n\x09\x09\x09\x09\x09\x09\2/' \
      -e 's/, IOMUX_CONFIG_SION,/, 0 | IOMUX_CONFIG_SION,/' \
      -e 's/\((0x[0-9a-fA-F]*, 0x[0-9a-fA-F]*, \)0x0\([0-9a-fA-F]\{2\},\)/\10x\2/' >iomux-mx51.h
      Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      315046d0
    • T
      ARM: i.MX51: Remove _MX51_PAD_xxx references · 7242e24a
      Troy Kisky 提交于
      Use new macro NEW_PAD_CTRL to remove _MX51_PAD_xxx references.
      A later patch will remove the _MX51_PAD_xxx symbols.
      Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      7242e24a
    • S
      arm/mxc: move IMX_GPIO_NR into mach/hardware.h · 1dfa86bb
      Shawn Guo 提交于
      The patch moves IMX_GPIO_NR into mach/hardware.h, so that we only
      use standard gpiolib helpers in mach/gpio.h.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      1dfa86bb
    • S
      gpio/mxc: move irq_to_gpio() into gpio-mxc driver · a4395612
      Shawn Guo 提交于
      As irq_to_gpio() is only being used by gpio-mxc driver, it should be
      moved from mach/gpio.h into gpio-mxc.c.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      a4395612
    • S
      arm/mxc: use gpiolib helper for gpio_to_irq · df1bac2e
      Shawn Guo 提交于
      As all the users of gpio_to_irq() in static initializers have been
      migrated to IMX_GPIO_TO_IRQ, we can start using the standard gpiolib
      helper for gpio_to_irq().
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      df1bac2e
  16. 16 8月, 2011 1 次提交
  17. 12 8月, 2011 2 次提交
  18. 08 8月, 2011 1 次提交
  19. 01 8月, 2011 3 次提交
  20. 27 7月, 2011 1 次提交