21 Sep, 2011

1 commit

  • There are two cascade interrupts in Loongson machines, one for bonito
    northbridge, another for the 8259A controller in the southbridge. Both
    want to be non threaded.

    Signed-off-by: Wu Zhangjin
    Signed-off-by: Thomas Gleixner
    Cc: linux-mips@linux-mips.org
    Cc: Wu Zhangjin
    Patchwork: https://patchwork.linux-mips.org/patch/2638/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

26 Jul, 2011

1 commit


05 Aug, 2010

3 commits

  • LOONGSON2_PERFCNT_IRQ is used for the irq number of the performance
    overflow interrupts; LOONGSON_PERFCNT_IRQ is unused so remove it.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1494/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • On FuLoong-2F IP6 is shared by the performance counter overflow interrupt
    and the Bonito northbridge interrupt. To reduce overhead only call
    do_IRQ() when oprofile is enabled to reduce overhead.

    This patch adds an inline function do_perfcnt_IRQ() to hide the #if's ,
    which can be shared by the other Loongson machines, i.e. gdium.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1492/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • set_irq_trigger_mode() is not needed on all platforms so remove it
    and move the related source code to mach_init_irq().

    This will allow gdium to share the common irq.c without adding an empty
    set_irq_trigger_mode().

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1493/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

01 May, 2010

1 commit


27 Feb, 2010

4 commits


17 Dec, 2009

9 commits

  • Before putting the Loongson 2F into wait mode, suspend the MFGPT Timer and
    after wake-up resume it. This may save some power.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/706/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/683/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Yeeloong 2F netbook has an KB3310B embedded controller to manage the LID
    action. When the LID is closed or opened a SCI interrupt is sent out and
    the corresponding event is saved to an EC register for later query.

    Allow the LID open interrupt to wake the processor from wait mode if it is
    in the suspend mode.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/685/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • YeeLoong2F has a KB3310b embedded controller. Add basic operations for
    future related drivers and board support.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/684/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Add a new machtype and kernel options for the Lynloong.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/657/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Kernel support for this machine is almost the same as Fuloong 2F; the only
    difference is that it uses the serial port provided by Loongson 2F processor
    as Yeeloong 2F does.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/656/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Lemote Loongson 2F family machines need an external interrupt to wake the
    system from the suspend mode.

    For YeeLoong 2F and Mengloong 2F setup the keyboard interrupt as the wakeup
    interrupt.

    The new Fuloong 2F and LingLoong 2F have a button to directly send an
    interrupt to the CPU so there is no need to setup an interrupt.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Cc: yanh@lemote.com
    Cc: huhb@lemote.com
    Cc: Wu Zhangjin
    Cc: Len Brown
    Cc: Rafael J. Wysocki
    Cc: linux-pm@lists.linux-foundation.org
    Patchwork: http://patchwork.linux-mips.org/patch/630/
    Acked-by: Pavel Machek
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Fuloong 2F, Yeeloong 2F and Menglong 2F have different reset / shutdown
    logic.

    Signed-off-by: Wu Zhangjin
    Cc: zhangfx@lemote.com
    Cc: yanh@lemote.com
    Cc: huhb@lemote.com
    Cc: Nicholas Mc Guire
    Cc: Arnaud Patard
    Cc: loongson-dev@googlegroups.com
    Cc: linux-mips@linux-mips.org
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • The generic i8259_irq() will make kernel hang on booting, so Loongson 2F
    needs its own polling method.

    IP6 is shared by the bonito interrupt and perfcounter interrupts.

    Signed-off-by: Wu Zhangjin
    Cc: zhangfx@lemote.com
    Cc: yanh@lemote.com
    Cc: huhb@lemote.com
    Cc: Nicholas Mc Guire
    Cc: Arnaud Patard
    Cc: loongson-dev@googlegroups.com
    Cc: linux-mips@linux-mips.org
    Signed-off-by: Ralf Baechle

    Wu Zhangjin