1. 17 Aug, 2011 3 commits
    • Troy Kisky's avatar
      ARM: i.MX53: clean up iomux-mx53.h · 4ab37153
      Troy Kisky authored
      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: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      4ab37153
    • Troy Kisky's avatar
      ARM: i.MX51: clean up iomux-mx51.h · 315046d0
      Troy Kisky authored
      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: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      315046d0
    • Troy Kisky's avatar
      ARM: i.MX51: Remove _MX51_PAD_xxx references · 7242e24a
      Troy Kisky authored
      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: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      7242e24a
  2. 14 Aug, 2011 13 commits
  3. 13 Aug, 2011 23 commits
  4. 12 Aug, 2011 1 commit