1. 30 3月, 2013 1 次提交
  2. 29 1月, 2013 2 次提交
  3. 11 1月, 2013 1 次提交
  4. 17 11月, 2012 5 次提交
    • S
      ARM: tegra: move debug-macro.S to include/debug · 46067803
      Stephen Warren 提交于
      Move Tegra's debug-macro.S over to the common debug macro directory.
      
      Move Tegra's debug UART selection menu into ARM's Kconfig.debug, so that
      all related options are selected in the same place.
      
      Tegra's uncompress.h is left in mach-tegra/include/mach; it will be
      removed whenever Tegra is converted to multi-platform.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      46067803
    • S
      ARM: tegra: don't include iomap.h from debug-macro.S · 7a281065
      Stephen Warren 提交于
      In order to move Tegra's debug-macro.S to a common location for single
      zImage, it must not rely on any machine-specific header files such as
      <mach/iomap.h>. Duplicate the few physical address definitions that
      debug-macro.S relies upon directly into the file.
      
      To avoid tegra_io_desc[] requiring shared knowledge of the UART
      mapping's virtual address, use a virtual address outside the ranges
      in tegra_io_desc[]. Call debug_ll_io_init() to propagate the mapping
      beyond the early pages tables.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      7a281065
    • S
      ARM: tegra: decouple uncompress.h and debug-macro.S · 1a6d3da8
      Stephen Warren 提交于
      Prior to this change, Tegra's debug-macro.S relied on uncompress.h having
      determined which UART to use, and whether it was safe to use the UART
      (i.e. is it not in reset, and is clocked). This determination was
      communicated from uncompress.h to debug-macro.S using a few bytes of
      Tegra's IRAM (an on-SoC RAM). This had the disadvantage that uncompress.h
      was a required part of the kernel boot process; booting a non-compressed
      kernel would not allow earlyprintk to operate.
      
      This change duplicates the UART selection and validation logic into
      debug-macro.S so that the reliance on uncompress.h is removed.
      
      This also helps out with single-zImage work, since there is currently no
      support for using any uncompress.h with single-zImage.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      1a6d3da8
    • S
      ARM: tegra: simplify DEBUG_LL UART selection options · adc18315
      Stephen Warren 提交于
      Delete CONFIG_TEGRA_DEBUG_UART_AUTO_SCRATCH; it's not useful any more:
      * No upstream bootloader currently or will ever support this option.
      * CONFIG_TEGRA_DEBUG_UART_AUTO_ODMDATA is a much more direct alternative.
      
      Merge the fixed and automatic UART selection menus into a single choice
      for simplicity; now you either pick AUTO_ODMDATA or a single fixed UART,
      rather than potentially having an AUTO option override whatever fixed
      option was chosen.
      
      Remove TEGRA_DEBUG_UART_NONE; if you don't want a Tegra DEBUG_LL UART,
      simply don't turn on DEBUG_LL. NONE used to be the default option, so
      pick AUTO_ODMDATA as the new default.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      adc18315
    • S
      ARM: tegra: select SPARSE_IRQ · c5a4d6b0
      Stephen Warren 提交于
      SPARSE_IRQ is required for single zImage support.
      
      With this enabled, we can delete <mach/irqs.h>. This requires removing
      one unnecessary include of that file, and hard-coding the PCIe IRQ into
      the PCIe driver. This is a hack that will be dealt with as part of
      converting the PCIe driver into a true DT-supporting driver.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      c5a4d6b0
  5. 06 11月, 2012 5 次提交
  6. 18 9月, 2012 1 次提交
  7. 17 9月, 2012 1 次提交
  8. 15 9月, 2012 2 次提交
  9. 14 9月, 2012 2 次提交
  10. 07 9月, 2012 1 次提交
  11. 06 9月, 2012 1 次提交
  12. 05 9月, 2012 2 次提交
  13. 26 7月, 2012 1 次提交
  14. 09 5月, 2012 1 次提交
  15. 26 4月, 2012 1 次提交
    • S
      ARM: tegra: add USB ULPI PHY reset GPIO to device tree · aa607ebf
      Stephen Warren 提交于
      ULPI PHYs have a reset signal, and different boards use a different GPIO
      for this task. Add a property to device tree to represent this.
      
      I'm not sure if adding this property to the EHCI controller node is
      entirely correct; perhaps eventually we should have explicit separate
      nodes for the various PHYs. However, we don't have that right now, so this
      binding seems like a reasonable choice.
      
      Cc: <devicetree-discuss@lists.ozlabs.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: <linux-usb@vger.kernel.org>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      aa607ebf
  16. 19 4月, 2012 2 次提交
  17. 17 4月, 2012 1 次提交
  18. 11 4月, 2012 1 次提交
    • S
      ARM: tegra: uncompress.h: Implement TEGRA_DEBUG_UART_AUTO_ODMDATA · 80881dae
      Stephen Warren 提交于
      Tegra has 5 UARTS which could be used for low-level debug output. Commit
      fe263989 "ARM: tegra: uncompress.h: Choose a UART at runtime" implemented
      one method for the kernel to automatically determine which of these to
      use at run-time, so that the same DEBUG_LL-enabled kernel image could be
      used across multiple Tegra boards. The required bootloader-side setup for
      that option is implemented in NVIDIA's various downstream U-Boot branches,
      but the U-Boot maintainers have refused to accept it upstream.
      
      This change implements an alternative automatic UART selection option
      using ODMDATA. This is a 32-bit value programmed into Tegra's boot memory
      which provides a few pieces of basic board-specific information, including
      a field that indicates the console UART. Setting up this value is part of
      the standard Tegra boot architecture, and so requires no Tegra-specific
      hacks in the bootloader's UART driver.
      
      Note that in theory, the format of ODMDATA is board-specific. However, in
      practice all boards use the same location/size/values for the UART field.
      ODMDATA[19:18] (which drive the type of debug console) is more problematic,
      since some boards use value 2 for UART and others use 3. This patch just
      accepts either value; if this doesn't work well for a given board, I'd
      suggest simply not enabling this debug option when building for that board.
      
      Note that the kernel assumes the bootloader has already set up any required
      pinmux settings for the UART; there is no way the kernel can do this for
      itself prior to knowing which board it's running on. In practice, people
      using this feature are highly likely to be using bootloaders that have
      indeed configured the pinmux. This assumption existed prior to this patch.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      80881dae
  19. 14 3月, 2012 1 次提交
  20. 07 3月, 2012 2 次提交
  21. 06 3月, 2012 1 次提交
  22. 28 2月, 2012 1 次提交
    • S
      ARM: tegra: uncompress.h: Don't depend on kernel headers · e77a6b31
      Stephen Warren 提交于
      This fixes the following compile error:
      
        CC      arch/arm/boot/compressed/misc.o
      In file included from arch/arm/boot/compressed/misc.c:28:0:
      arch/arm/mach-tegra/include/mach/uncompress.h: In function 'arch_decomp_setup':
      arch/arm/mach-tegra/include/mach/uncompress.h:125:2: error: implicit declaration of function 'BUILD_BUG_ON_ZERO' [-Werror=implicit-function-declaration]
      cc1: some warnings being treated as errors
      
      This is due to use of the ARRAY_SIZE() macro. Typically, this would be
      solved by including <linux/bug.h>, but the compressor code isn't part of
      the kernel, and so should not include kernel headers. Instead, define
      the few macros the code uses directly, and in a way that doesn't depend
      on <linux/bug.h>.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      e77a6b31
  23. 27 2月, 2012 4 次提交