29 Mar, 2011

1 commit


27 Oct, 2010

1 commit


23 Sep, 2010

1 commit


05 Feb, 2010

1 commit

  • With the sparseirq conversion there was a stray irq_desc reference left
    over, this tidies it up and brings the demuxer in line with what the
    solution engine boards are doing.

    Signed-off-by: Paul Mundt

    Paul Mundt
     

02 Feb, 2010

1 commit


26 Jan, 2010

1 commit

  • The old ctrl in/out routines are non-portable and unsuitable for
    cross-platform use. While drivers/sh has already been sanitized, there
    is still quite a lot of code that is not. This converts the arch/sh/ bits
    over, which permits us to flag the routines as deprecated whilst still
    building with -Werror for the architecture code, and to ensure that
    future users are not added.

    Signed-off-by: Paul Mundt

    Paul Mundt
     

20 May, 2009

1 commit


15 May, 2009

1 commit

  • hd64461 is mapped in a fixed location, so the I/O base itself is fairly
    meaningless as a configuration item. Additionally, this makes it
    impossible to share hd64461 code alongside generic drivers (in the case
    of sh_dac_audio), so simply make it commonly defined and permit the
    mach_is_foo() logic to work out the proper semantics.

    Signed-off-by: Paul Mundt

    Paul Mundt
     

20 Mar, 2009

1 commit


22 Dec, 2008

1 commit

  • Use struct irq_chip for the interrupt handler for the HD64461. Also
    convert some in{b,w} and out{b,w} calls to the equivalent __raw_* calls.
    Include and not to stop checkpatch.pl
    complaining.

    This change should now allow machines with HD64461 to define
    GENERIC_HARDIRQS_NO__DO_IRQ.

    Acked-by: Kristoffer Ericson
    Signed-off-by: Matt Fleming
    Signed-off-by: Paul Mundt

    Matt Fleming
     

28 Oct, 2008

1 commit

  • This code has been dead for many years. The last update it received
    was in 2003 in order to update it for the driver model changes, though
    it had already been in disarray and unused before that point. The only
    boards that ever used this chip have not had users in many years either,
    so it is finally safe to just kill it off and move on with life.

    Signed-off-by: Paul Mundt

    Paul Mundt
     

14 Feb, 2008

1 commit


28 Jan, 2008

2 commits

  • This patch removes redundant irq handling code together with unused
    consistent alloc code. R2D uart setup code is changed to use
    sm501-regs.h and unused header files are removed.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • This patch removes interrupt priority tables from the intc code.
    Optimal priority assignment varies with embedded application anyway,
    so keeping the interrupt priority tables together with cpu-specific
    code doesn't make sense.

    The function intc_set_priority() should be used instead to set the
    desired interrupt priority level.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     

07 Nov, 2007

1 commit


03 Oct, 2007

1 commit


21 Sep, 2007

5 commits

  • Some trivial fixes to get SH7709 + HD64461 building again.

    Signed-off-by: Kristoffer Ericson
    Signed-off-by: Paul Mundt

    Kristoffer Ericson
     
  • With the intc core improved it is now possible to put the intc data
    structures in the initdata section.

    Version two of this patch puts the __initdata inside DECLARE_INTC_DESC()
    and removes the __initdata included in the board specific r2d code.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • This patch replaces all instances of CONFIG_VOYAGERGX with
    CONFIG_MFD_SM501. While at it we make sure the r2d code compiles
    both with and without SM501.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • This patch reworks the intc core, implementing the following features:

    - Support dual priority registers - one set and one clear register
    - All 8/16/32 bit register combinations are now supported
    - Both single mask and single enable bitmap register are supported
    - Add code to set interrupt priority
    - Speedup sense and priority configuration code
    - Allocate data using bootmem, allows intc data structures to be
    __initdata
    - Save memory - allocated memory footprint is smaller than intc
    structures

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • This patch converts the sh-specific voyagergx interrupt code to make use
    of intc. A lot of "interesting" old cruft gets replaced with intc tables
    and some simple demux code.

    - All interrupt sources in the sm501 data sheet are now in the header.
    - The number and order of IRQ values are disconnected from register bits.
    - Interrupt sources now start from IRQ 200.
    - set_irq_chained_handler() is now used to hook up the demux function.

    In the future it would probably make sense to move the interrupt demuxer
    into into the mfd driver, but this is probably a nice step in the right
    direction until that happens.

    Tested on a R2D-1 board using the serial port hooked up to the sm501.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     

20 Jul, 2007

1 commit

  • Kill off the hd64461 io.c, as all of the hd64461 users are now
    using the generic I/O routines.

    [ hd64461/ moved to hd64461.c by Paul ]

    Signed-off-by: Kristoffer Ericson
    Signed-off-by: Paul Mundt

    Kristoffer Ericson
     

11 Jun, 2007

1 commit

  • SH-2 can presently get in to some pretty bogus states, so
    we tidy up the dependencies a bit and get it all building
    again.

    This gets us a bit closer to a functional allyesconfig
    and allmodconfig, though there are still a few things to
    fix up.

    Signed-off-by: Paul Mundt

    Paul Mundt
     

04 Jun, 2007

1 commit


15 Feb, 2007

1 commit


19 Oct, 2006

1 commit


06 Oct, 2006

1 commit


27 Sep, 2006

6 commits


03 Jul, 2006

1 commit


01 Jul, 2006

1 commit


30 Jun, 2006

1 commit

  • This patch-queue improves the generic IRQ layer to be truly generic, by adding
    various abstractions and features to it, without impacting existing
    functionality.

    While the queue can be best described as "fix and improve everything in the
    generic IRQ layer that we could think of", and thus it consists of many
    smaller features and lots of cleanups, the one feature that stands out most is
    the new 'irq chip' abstraction.

    The irq-chip abstraction is about describing and coding and IRQ controller
    driver by mapping its raw hardware capabilities [and quirks, if needed] in a
    straightforward way, without having to think about "IRQ flow"
    (level/edge/etc.) type of details.

    This stands in contrast with the current 'irq-type' model of genirq
    architectures, which 'mixes' raw hardware capabilities with 'flow' details.
    The patchset supports both types of irq controller designs at once, and
    converts i386 and x86_64 to the new irq-chip design.

    As a bonus side-effect of the irq-chip approach, chained interrupt controllers
    (master/slave PIC constructs, etc.) are now supported by design as well.

    The end result of this patchset intends to be simpler architecture-level code
    and more consolidation between architectures.

    We reused many bits of code and many concepts from Russell King's ARM IRQ
    layer, the merging of which was one of the motivations for this patchset.

    This patch:

    rename desc->handler to desc->chip.

    Originally i did not want to do this, because it's a big patch. But having
    both "desc->handler", "desc->handle_irq" and "action->handler" caused a
    large degree of confusion and made the code appear alot less clean than it
    truly is.

    I have also attempted a dual approach as well by introducing a
    desc->chip alias - but that just wasnt robust enough and broke
    frequently.

    So lets get over with this quickly. The conversion was done automatically
    via scripts and converts all the code in the kernel.

    This renaming patch is the first one amongst the patches, so that the
    remaining patches can stay flexible and can be merged and split up
    without having some big monolithic patch act as a merge barrier.

    [akpm@osdl.org: build fix]
    [akpm@osdl.org: another build fix]
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     

02 Feb, 2006

1 commit

  • Trivial patch updating the voyagergx cchip code to reference a platform device
    instead, now that the dma mask is taken care of. Given this, there's no
    longer any reason to drag around the SH-bus code, so kill that off entirely.

    Signed-off-by: Manuel Lauss
    Signed-off-by: Paul Mundt
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Mundt
     

28 Oct, 2005

1 commit


11 Sep, 2005

2 commits