1. 22 3月, 2012 1 次提交
  2. 05 3月, 2012 1 次提交
    • S
      ARM: tegra: match SoC name not board name in DT board files · c5444f39
      Stephen Warren 提交于
      board-dt-tegra*.c should support any board using Tegra when booted using
      device tree. Instead of explicitly listing all the supported boards,
      which requires a kernel change for each new board, list the supported SoC
      model instead.
      
      Note that the board files do currently have explicit support for setting
      up each board's pinmux. However, it's fairly likely that at least the
      basic devices on any new board will work just fine as set up by the boot-
      loader, and the pinmux data should be moving into device tree soon anyway.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      c5444f39
  3. 18 12月, 2011 2 次提交
  4. 08 12月, 2011 6 次提交
  5. 16 11月, 2011 1 次提交
  6. 10 11月, 2011 1 次提交
    • S
      arm/tegra: Don't create duplicate gpio and pinmux devices · 4b91b6fb
      Stephen Warren 提交于
      *_pinmux_init() register the GPIO and pinmux devices so that they're ready
      before any other device needs them.
      
      *_pinmux_init() are also called by board-dt.c in order to set up the GPIO
      and pinmux configurations. In this case, if we register the devices, they
      end up being probed once due to this registration, and a second time due
      to a device-tree node (or vice-versa). The second probe fails since the
      memory regions are already requested. Besides, we don't actually want the
      duplicated devices.
      
      To avoid this duplicate registration, modify *_pinmux_init() to check
      whether it's running on a DT machine. If not, register the pinmux devices.
      If so, don't register them.
      
      Finally, modify board-dt.c to call the *_pinmux_init() after all devices have
      been instantiated from device-tree. This allows the GPIO and pinmux devices
      to be instantiated and initialized before calling functions to configure the
      hardware.
      
      This has one disadvantage: The pinmux and GPIO initialization now happens
      after /all/ devices are instantiated, rather than after just gpio and
      pinmux but before anything else. So the correct HW configuration is not
      in place when e.g. the SD/MMC device is probed. Long-term, this should be
      solved by doing both:
      
      a) Initializing the HW state from DT nodes during GPIO and pinmux device
         probe.
      b) Using the deferred driver probe mechanism, so that drivers can defer
         their probe until after the gpio and pinmux drivers have probed.
      
      v2: s/int is_dt/bool is_dt/
      v3: Use of_machine_is_compatible inside *_pinmux_init() rather than passing
      an explicit parameter into the function from outside.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      4b91b6fb
  7. 14 10月, 2011 1 次提交
  8. 28 7月, 2011 1 次提交
    • G
      arm/dt: tegra devicetree support · 8e267f3d
      Grant Likely 提交于
      Everything required to populate NVIDIA Tegra devices from the device
      tree.  This patch adds a new DT_MACHINE_DESC() which matches against
      a tegra20 device tree.  So far it only registers the on-chip devices,
      but it will be refined in follow on patches to configure clocks and
      pin IO from the device tree also.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      8e267f3d