1. 30 10月, 2010 3 次提交
    • D
      msm: Kconfig: drop unused config options · 4ee7a6c2
      Daniel Walker 提交于
      These two config options don't exist, and aren't ever going to.
      So I simply delete them.
      Signed-off-by: NDaniel Walker <dwalker@codeaurora.org>
      4ee7a6c2
    • D
      msm: fix compile failure when no debug uart is selected · 06125ff0
      Daniel Walker 提交于
      If the board has a debug uart the user is given a choice of which
      uart to use. The user can also select NONE, which means not to use one.
      In most of our header files when NONE is selected nothing is defined
      for MSM_DEBUG_UART_PHYS or MSM_DEBUG_UART_BASE. This causes a compile
      failure in debug-macro.S which expect something to be defined there.
      
      Example of the failure,
      
      arch/arm/kernel/built-in.o: In function `hexbuf':
      linux-2.6/arch/arm/kernel/debug.S:186: undefined reference to `MSM_DEBUG_UART_PHYS'
      linux-2.6/arch/arm/kernel/debug.S:186: undefined reference to `MSM_DEBUG_UART_BASE'
      
      This fixes the compile failure by adding an ifdef to debug-macro.S
      that removes all the debug uart code in the case of NONE.
      Signed-off-by: NDaniel Walker <dwalker@codeaurora.org>
      06125ff0
    • D
      msm: fix debug-macro.S build failure · bcd72c3e
      Daniel Walker 提交于
      Originally there was an ifdef case to handle when no debug uart
      was selected. In commit 0ea12930
      that case was removed which causes the following build failure,
      
      linux-2.6/arch/arm/kernel/debug.S: Assembler messages:
      linux-2.6/arch/arm/kernel/debug.S:174: Error: bad instruction `addruart r1,r2'
      linux-2.6/arch/arm/kernel/debug.S:176: Error: bad instruction `waituart r2,r3'
      linux-2.6/arch/arm/kernel/debug.S:177: Error: bad instruction `senduart r1,r3'
      linux-2.6/arch/arm/kernel/debug.S:178: Error: bad instruction `busyuart r2,r3'
      linux-2.6/arch/arm/kernel/debug.S:190: Error: bad instruction `addruart r1,r2'
      
      This is a partial revert to add back the case which was removed with
      two caveats. First the API for the addruart macro was updated, and
      the new addruart case now return 0xfff00000 so that a know IO mapping
      is created instead of a random one.
      
      Cc: Jeremy Kerr <jeremy.kerr@canonical.com>
      Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Jason Wang <jason77.wang@gmail.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Nicolas Pitre <nico@fluxnic.net>
      Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
      Signed-off-by: NDaniel Walker <dwalker@codeaurora.org>
      bcd72c3e
  2. 28 10月, 2010 4 次提交
  3. 27 10月, 2010 3 次提交
    • H
      replace nested max/min macros with {max,min}3 macro · 732eacc0
      Hagen Paul Pfeifer 提交于
      Use the new {max,min}3 macros to save some cycles and bytes on the stack.
      This patch substitutes trivial nested macros with their counterpart.
      Signed-off-by: NHagen Paul Pfeifer <hagen@jauu.net>
      Cc: Joe Perches <joe@perches.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Pekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      732eacc0
    • P
      mm: remove pte_*map_nested() · ece0e2b6
      Peter Zijlstra 提交于
      Since we no longer need to provide KM_type, the whole pte_*map_nested()
      API is now redundant, remove it.
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Acked-by: NChris Metcalf <cmetcalf@tilera.com>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Rik van Riel <riel@redhat.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: David Miller <davem@davemloft.net>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ece0e2b6
    • P
      mm: stack based kmap_atomic() · 3e4d3af5
      Peter Zijlstra 提交于
      Keep the current interface but ignore the KM_type and use a stack based
      approach.
      
      The advantage is that we get rid of crappy code like:
      
      	#define __KM_PTE			\
      		(in_nmi() ? KM_NMI_PTE : 	\
      		 in_irq() ? KM_IRQ_PTE :	\
      		 KM_PTE0)
      
      and in general can stop worrying about what context we're in and what kmap
      slots might be appropriate for that.
      
      The downside is that FRV kmap_atomic() gets more expensive.
      
      For now we use a CPP trick suggested by Andrew:
      
        #define kmap_atomic(page, args...) __kmap_atomic(page)
      
      to avoid having to touch all kmap_atomic() users in a single patch.
      
      [ not compiled on:
        - mn10300: the arch doesn't actually build with highmem to begin with ]
      
      [akpm@linux-foundation.org: coding-style fixes]
      [akpm@linux-foundation.org: fix up drivers/gpu/drm/i915/intel_overlay.c]
      Acked-by: NRik van Riel <riel@redhat.com>
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Acked-by: NChris Metcalf <cmetcalf@tilera.com>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: David Miller <davem@davemloft.net>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Dave Airlie <airlied@linux.ie>
      Cc: Li Zefan <lizf@cn.fujitsu.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3e4d3af5
  4. 26 10月, 2010 9 次提交
  5. 23 10月, 2010 11 次提交
  6. 22 10月, 2010 10 次提交
    • M
      tegra: harmony: enable PCI Express · f2a44393
      Mike Rapoport 提交于
      Signed-off-by: NMike Rapoport <mike@compulab.co.il>
      CC: Olof Johansson <olof@lixom.net>
      CC: Gary King <GKing@nvidia.com>
      Signed-off-by: NColin Cross <ccross@android.com>
      f2a44393
    • M
      tegra: add PCI Express support · 77ffc146
      Mike Rapoport 提交于
      Change-Id: Ibd0bcd46895eb88952b9db29e1f68572d39aae01
      Signed-off-by: NMike Rapoport <mike@compulab.co.il>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      CC: Russell King <linux@arm.linux.org.uk>
      CC: Gary King <GKing@nvidia.com>
      Signed-off-by: NColin Cross <ccross@android.com>
      77ffc146
    • M
      tegra: add PCI Express clocks · 8d685bc5
      Mike Rapoport 提交于
      Signed-off-by: NMike Rapoport <mike@compulab.co.il>
      CC: Gary King <GKing@nvidia.com>
      Signed-off-by: NColin Cross <ccross@android.com>
      8d685bc5
    • C
      [ARM] tegra: Add APB DMA support · 4de3a8fa
      Colin Cross 提交于
      The APB DMA block handles DMA transfers to and from some peripherals
      in the Tegra SOC.  It reads from sequential addresses on the memory
      bus, and writes repeatedly to the same address on the APB bus.
      
      Two transfer modes are supported, oneshot for transferring a known
      size to or from a peripheral, and continuous for streaming data.
      In continuous mode, a callback occurs when the buffer is half full
      to allow the existing data to be handled and a new request queued.x
      
      v2 changes:
      	dma API no longer uses PTR_ERR
      Signed-off-by: NErik Gilling <konkers@android.com>
      Signed-off-by: NColin Cross <ccross@android.com>
      4de3a8fa
    • C
      [ARM] tegra: Add cpufreq support · 7056d423
      Colin Cross 提交于
      Implement cpufreq support for the Tegra SOC.  DVFS is handled by the
      core virtual cpu clock.  The frequencies of the two cores are tied
      together, the highest frequency requested by either core determines
      the actual frequency.
      Signed-off-by: NColin Cross <ccross@android.com>
      7056d423
    • C
      [ARM] tegra: common: Update common clock init table · 8486bddc
      Colin Cross 提交于
      Renames clocks in the clock init table to match the datasheet names
      Signed-off-by: NColin Cross <ccross@android.com>
      8486bddc
    • C
      [ARM] tegra: clock: Add dvfs support, bug fixes, and cleanups · 71fc84cc
      Colin Cross 提交于
      - Add drivers to clock lookup table
      - Add new pll_m entries
      - Support I2C U16 divider
      - Fix rate reporting on 32.768kHz clock
      - Call propagate rate only if set_rate succeeds
      - Add support for audio_sync clock
      - Add 24MHz to PLLA frequency list
      - Correct i2s1/2/spdifout mux
      - Add suspend support
      - Fix enable/disable parent clocks in set_parent
      - Add max_rate parameter to all clocks
      - DVFS support
      - Add virtual cpu clock with dvfs
      - Support clk_round_rate
      - Fix requesting very high periph frequencies
      - Add quirks for PLLU:
         PLLU is slightly different from the rest of the PLLs.  The
         lock enable bit is at bit 22 instead of 18 in the MISC
         register, and the post divider field is a single bit with
         reversed values from other PLLs.
      - Simplify recalculating clock rates
      - Fix UART divider flags
      - Remove unused clock ops
      Signed-off-by: NColin Cross <ccross@android.com>
      71fc84cc
    • C
      [ARM] tegra: Add support for reading fuses · 73625e3e
      Colin Cross 提交于
      The Tegra SOC contains fuses to identify the CPU type and
      bin, and a unique id.  The CPU info is required to determine
      the correct voltages for each cpu and core frequency.
      Signed-off-by: NColin Cross <ccross@android.com>
      73625e3e
    • C
      [ARM] tegra: gpio: Add suspend and wake support · 2e47b8b3
      Colin Cross 提交于
      Includes checkpatch fixes and TEGRA_NR_GPIOS changes from
      Mike Rapoport <mike@compulab.co.il>
      Signed-off-by: NColin Cross <ccross@android.com>
      2e47b8b3
    • C
      [ARM] tegra: pinmux: add safe values, move tegra2, add suspend · c5f04b8d
      Colin Cross 提交于
      - the reset values for some pin groups in the tegra pin mux can result in
      functional errors due to conflicting with actively-configured pin groups
      muxing from the same controller. this change adds a known safe, non-
      conflicting mux for every pin group, which can be used on platforms
      where the pin group is not routed to any peripheral
      
      - also add each pin group's I/O voltage rail, to enable platform code to
      map from the pin groups used by each interface to the regulators used
      for dynamic voltage control
      
      - add routines to individually configure the tristate, pin mux and pull-
      ups for a pingroup_config array, so that it is possible to program
      individual values at run-time without modifying other values.
      this allows driver power-management code to reprogram individual
      interfaces into lower power states during idle / suspend, or to
      reprogram the pin mux to support multiple physical busses per
      internal controller (e.g., sharing a single I2C or SPI controller
      across multiple pin groups)
      
      - move chip-specific data like pingroups and drive-pingroups
      out of the common code and into chip-specific code
      
      - fix debug output for group with no pullups
      
      - add a TEGRA_MUX_SAFE function.  Setting a pingroup to TEGRA_MUX_SAFE
      will automatically select a mux setting that is guaranteed not to
      conflict with any of the hardware blocks.
      Signed-off-by: NGary King <gking@nvidia.com>
      c5f04b8d