1. 26 7月, 2007 2 次提交
  2. 25 7月, 2007 2 次提交
  3. 20 7月, 2007 5 次提交
    • M
      sh: intc - add support for SH7750 and its variants · 56386f64
      Magnus Damm 提交于
      This patch converts the cpu specific 7750 setup code to use the
      new intc controller. Many new vectors are added and multiple
      processor variants including 7091, 7750, 7750s, 7750r, 7751 and
      7751r should all have the correct vectors hooked up.
      
      IRLM interrupts can be enabled using ipr_irq_enable_irlm() which
      now is marked as __init.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      56386f64
    • P
      sh: cpufreq: clock framework support. · cb5ec75b
      Paul Mundt 提交于
      This gets the SH cpufreq working again. We follow the changes
      in the AVR32 implementation for wrapping in to the clock framework.
      CPUs that wish to use this are required to define rate rounding
      primitives in order to satisfy clk_round_rate().
      
      This works well enough for the common case, though we should
      look at unifying this driver across all of the platforms that
      implement clock framework support in one capacity or another.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      cb5ec75b
    • M
      sh: intc - add support for 7780 · 39c7aa9e
      Magnus Damm 提交于
      This patch converts the cpu specific 7780 setup code to use the
      new intc controller. Many new vectors are added and also support for
      external interrupt sense configuration. So with this patch it is now
      possible to configure external interrupt pins as edge or level
      triggered using set_irq_type().
      
      No external interrupts are registered by default.
      Use plat_irq_setup_pins() to select between IRQ or IRL mode.
      
      This patch also fixes the Alarm IRQ for the RTC.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      39c7aa9e
    • P
      sh: cpufreq: Fix driver dependencies and flag as broken. · 792e947a
      Paul Mundt 提交于
      This is only supported on SH-4, so don't expose it for the other
      CPUs. Additionally, it's suffered some bitrot, so add a BROKEN
      dependency as well until we fix it up.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      792e947a
    • M
      sh: intc - shared IPR and INTC2 controller · 02ab3f70
      Magnus Damm 提交于
      This is the second version of the shared interrupt controller patch
      for the sh architecture, fixing up handling of intc_reg_fns[].
      
      The three main advantages with this controller over the existing
      ones are:
      
      	- Both priority (ipr) and bitmap (intc2) registers are
      	  supported
      	- External pin sense configuration is supported, ie edge
      	  vs level triggered
      	- CPU/Board specific code maps 1:1 with datasheet for
      	  easy verification
      
      This controller can easily coexist with the current IPR and INTC2
      controllers, but the idea is that CPUs/Boards should be moved over
      to this controller over time so we have a single code base to
      maintain.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      02ab3f70
  4. 20 6月, 2007 2 次提交
  5. 11 6月, 2007 1 次提交
  6. 08 6月, 2007 3 次提交
    • P
      sh: Fix SH-4 CPU selects. · 05627486
      Paul Mundt 提交于
      Now that select no longer works for selecting the "closest" CPU,
      we have to explicitly reference the precise sub-type in the few
      places where it actually matters (presently only setup code and
      some legacy sh-sci cruft).
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      05627486
    • P
      sh: Rip out special unknown machvec. · fd8f20e8
      Paul Mundt 提交于
      This kills off the BareCPU board as a "special" machvec, rather,
      we leave this as a default for when no other vector is available,
      or when we want to use it in combination with other vectors for
      testing with generic ops. As sh_mv is copied out anyways (or
      overloaded when an alternate vector is explicitly selected), this
      doesn't consume any additional memory.
      
      The generic machvec can be forcibly selected with sh_mv=generic,
      or by not having any other boards enabled.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      fd8f20e8
    • P
      sh: Rework CPU/board dependencies. · f3d22298
      Paul Mundt 提交于
      This was a big mess, rework the logic a bit so that we constrain
      to a particular subtype and figure out the board support based
      on that. This makes building subtype specific kernels supporting
      multiple boards possible again.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      f3d22298
  7. 09 5月, 2007 1 次提交
    • P
      sh: clockevent/clocksource/hrtimers/nohz TMU support. · 57be2b48
      Paul Mundt 提交于
      This adds basic support for clockevents and clocksources,
      presently only implemented for TMU-based systems (which
      are the majority of SH-3 and SH-4 systems).
      
      The old NO_IDLE_HZ implementation is also dropped completely,
      the only users of this were on TMU-based systems anyways.
      
      More work needs to be done to generalize the TMU handling,
      in that the current implementation is rather tied to the
      notion of TMU0 and TMU1 utilization.
      
      Additionally, as more SH timers switch over to this scheme,
      we'll be able to gut most of the remaining system timer
      infrastructure that existed before.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      57be2b48
  8. 07 5月, 2007 7 次提交
  9. 14 2月, 2007 1 次提交
  10. 13 2月, 2007 3 次提交
  11. 10 2月, 2007 1 次提交
  12. 12 12月, 2006 1 次提交
  13. 09 12月, 2006 1 次提交
    • D
      [PATCH] LOG2: Implement a general integer log2 facility in the kernel · f0d1b0b3
      David Howells 提交于
      This facility provides three entry points:
      
      	ilog2()		Log base 2 of unsigned long
      	ilog2_u32()	Log base 2 of u32
      	ilog2_u64()	Log base 2 of u64
      
      These facilities can either be used inside functions on dynamic data:
      
      	int do_something(long q)
      	{
      		...;
      		y = ilog2(x)
      		...;
      	}
      
      Or can be used to statically initialise global variables with constant values:
      
      	unsigned n = ilog2(27);
      
      When performing static initialisation, the compiler will report "error:
      initializer element is not constant" if asked to take a log of zero or of
      something not reducible to a constant.  They treat negative numbers as
      unsigned.
      
      When not dealing with a constant, they fall back to using fls() which permits
      them to use arch-specific log calculation instructions - such as BSR on
      x86/x86_64 or SCAN on FRV - if available.
      
      [akpm@osdl.org: MMC fix]
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Wojtek Kaniewski <wojtekka@toxygen.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f0d1b0b3
  14. 06 12月, 2006 8 次提交
  15. 30 11月, 2006 1 次提交
  16. 06 10月, 2006 1 次提交
    • P
      sh: First step at generic timeofday support. · 45882145
      Paul Mundt 提交于
      At the moment we wrap GENERIC_TIME around our existing timer API.
      As boards start providing their own clocksources, they're able to
      select GENERIC_TIME accordingly and optimize out most of the timer
      API.
      
      Once the current timers have been reworked as proper clocksource
      drivers, the rest of the place holders for the timer API can go
      away and we can flip on GENERIC_TIME unconditionally.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      45882145