1. 17 12月, 2009 3 次提交
    • W
      MIPS: Loongson: Add basic Loongson 2F support · 6f7a251a
      Wu Zhangjin 提交于
      Loongson 2F has built-in DDR2 and PCI-X controller. The PCI-X controller
      has a programming interface similiar to the the FPGA northbridge used on
      Loongson 2E.
      
      The main differences between Loongson 2E and Loongson 2F include:
      
      1. Loongson 2F has an extra address window configuration module, which
         is used to map CPU address space to DDR or PCI address space, or map
         the PCI-DMA address space to DDR or LIO address space.
      
      2. Loongson 2F supports 8 levels of software configurable CPu frequency
         which can be configured in the LOONGSON_CHIPCFG0 register.  The coming
         cpufreq and standby support are based on this feature.
      
      Loongson.h abstracts the modules and corresponding methods are abstracted.
      
      Add other Loongson-2F-specific source code including gcc 4.4 support, PCI
      memory space, PCI IO space, DMA address.
      Signed-off-by: NWu Zhangjin <wuzhangjin@gmail.com>
      Cc: linux-mips@linux-mips.org
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      6f7a251a
    • W
      MIPS: Loongson: Cleanup the serial port support · a3ed4951
      Wu Zhangjin 提交于
      To share the same kernel image amon different machines we have added the
      machtype command line support.
      
      In the old serial port implementation the UART base address is hardcoded as
      a macro in machine.h which breaks with machtype, so change that to discover
      the address dynamically.  Also move the initialization of the UART base
      address to uart_base.c to avoid remapping twice for early_printk.c and
      serial.c.
      Signed-off-by: NWu Zhangjin <wuzhangjin@gmail.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: http://patchwork.linux-mips.org/patch/581/
      Patchwork: http://patchwork.linux-mips.org/patch/682/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      a3ed4951
    • W
      MIPS: Bonito64: Make Loongson independent from Bonito64 code. · e2fee572
      Wu Zhangjin 提交于
      The built-in Loongson 2E/2F northbridge in is bonito64-compatible but not
      identical with it.  To avoid influencing the original bonito64 support and
      make the loongson support more maintainable, it's better to separate the
      Bonito64 code from the Loongson code.
      
      This also prepares the kernel for the coming Loongson 2f machines family
      support.
      Signed-off-by: NWu Zhangjin <wuzhangjin@gmail.com>
      Cc: Linux-MIPS <linux-mips@linux-mips.org>
      Cc: yanh@lemote.com
      Cc: huhb@lemote.com
      Cc: Zhang Le <r0bertz@gentoo.org>
      Cc: zhangfx@lemote.com,
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      e2fee572
  2. 18 9月, 2009 4 次提交