1. 13 Oct, 2011 3 commits
    • Stephen Warren's avatar
      arm/tegra: pinmux: ioremap registers · 48f2ecee
      Stephen Warren authored
      Use ioremap to obtain access to registers instead of using static
      mappings. This reduces the number of users of the static mappings, which
      will eventually allow them to be removed.
      
      Note that on Tegra30, the number of register "banks" will decrease to 2,
      and the packing of specific bits into registers will change significantly.
      That's why this change adds the "*_bank" fields to the pingroup tables,
      rather than implementing some more hard-coded scheme.
      
      Also, completely remove the implementation of suspend/resume; Tegra doesn't
      yet support suspend/resume, and the implementation is complex for the
      general pinmux driver:
      
      * Not all registers are used within each bank, so we probably shouldn't
        just iterate over every register in the bank, and save/restore it,
        since that would mean touching undefined registers.
      
      * Registers are shared between pingroups, so we can't simply iterate over
        each pingroup, and save/restore the registers it uses.
      
      It'd probably be best have probe() calculate a bitmask of actually-used
      registers for each bank, and have suspend/resume iterate over those
      bitmaps.
      
      Oh, and Real Soon Now, I should be looking into converting this driver to
      the new pinmux/pinctrl subsystem, so I didn't want to put too much work
      into the current incarnation.
      
      v2: s/space/bank/ to match comments on reg_* fields in pinmux.h.
          Re-order bank/reg parameters to pg_readl/pg_writel.
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      48f2ecee
    • Stephen Warren's avatar
      gpio/tegra: Convert to a platform device · 88d8951e
      Stephen Warren authored
      v3: Make regs variable static. Remove empty init of tegra_gpio_banks.
      
      v2: Retrieve IRQ and memory addresses from resources instead of hard-
      coding them. Add back initialization of tegra_gpio_chip.of_node.
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      [olof: switched probe routine to __devinit]
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      88d8951e
    • Stephen Warren's avatar
      arm/tegra: Convert pinmux driver to a platform device · 1ebc8496
      Stephen Warren authored
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      [olof: switch probe function to __devinit]
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      1ebc8496
  2. 12 Oct, 2011 2 commits
  3. 05 Oct, 2011 1 commit
  4. 04 Oct, 2011 12 commits
  5. 03 Oct, 2011 18 commits
  6. 02 Oct, 2011 4 commits