1. 08 7月, 2015 1 次提交
  2. 22 6月, 2015 1 次提交
    • H
      MIPS: Loongson: Naming style cleanup and rework · 30ad29bb
      Huacai Chen 提交于
      Currently, code of Loongson-2/3 is under loongson directory and code of
      Loongson-1 is under loongson1 directory. Besides, there are Kconfig
      options such as MACH_LOONGSON and MACH_LOONGSON1. This naming style is
      very ugly and confusing. Since Loongson-2/3 are both 64-bit general-
      purpose CPU while Loongson-1 is 32-bit SoC, we rename both file names
      and Kconfig symbols from loongson/loongson1 to loongson64/loongson32.
      
      [ralf@linux-mips.org: Resolve a number of simple conflicts.]
      Signed-off-by: NHuacai Chen <chenhc@lemote.com>
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: Fuxin Zhang <zhangfx@lemote.com>
      Cc: Zhangjin Wu <wuzhangjin@gmail.com>
      Cc: Kelvin Cheung <keguang.zhang@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/9790/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      30ad29bb
  3. 01 4月, 2015 1 次提交
  4. 24 11月, 2014 2 次提交
    • H
      MIPS: Loongson: Improve LEFI firmware interface · 3adeb256
      Huacai Chen 提交于
      Machtypes of Loongson-3 machines become more and more, but there are
      only small differences among different machtypes. Keeping a large table
      of machtypes is very ugly and hard to extend. We found that the major
      machtype differences are UARTs information (number of UARTs, UART IRQs,
      UART clocks, etc.), platform devices (EC, temperature sensors, fan
      controllers, etc.) and some workarounds (because of some CPU bugs or
      mainboard bugs).
      
      In this patch we improve the UEFI-like (LEFI) interface to make all
      Loongson-3 machines use a same machtype "generic-loongson-machine".
      Signed-off-by: NHuacai Chen <chenhc@lemote.com>
      Cc: John Crispin <john@phrozen.org>
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: Fuxin Zhang <zhangfx@lemote.com>
      Cc: Zhangjin Wu <wuzhangjin@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/8324/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      3adeb256
    • H
      MIPS: Loongson: Allow booting from any core · ec0f8d3f
      Huacai Chen 提交于
      By offering Logical->Physical core id mapping, so as to reserve some
      physical cores via mask. This allow booting from any core when core-0
      has problems. Since the maximun cores supported by Loongson-3 is 16,
      32-bit cpu_startup_core_id can be split to 16-bit cpu_startup_core_id
      and 16-bit reserved_cores_mask for compatibility.
      Signed-off-by: NHuacai Chen <chenhc@lemote.com>
      Cc: John Crispin <john@phrozen.org>
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: Fuxin Zhang <zhangfx@lemote.com>
      Cc: Zhangjin Wu <wuzhangjin@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/8323/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      ec0f8d3f
  5. 31 7月, 2014 3 次提交
    • H
      MIPS: Add Loongson-3B support · e7841be5
      Huacai Chen 提交于
      Loongson-3B is a 8-cores processor. In general it looks like there are
      two Loongson-3A integrated in one chip: 8 cores are separated into two
      groups (two NUMA node), each node has its own local memory.
      
      Of course there are some differences between one Loongson-3B and two
      Loongson-3A. E.g., the base addresses of IPI registers of each node are
      not the same; Loongson-3A use ChipConfig register to enable/disable
      clock, but Loongson-3B use FreqControl register instead.
      
      There are two revision of Loongson-3B, the first revision is called as
      Loongson-3B1000, whose frequency is 1GHz and has a PRid 0x6306, the
      second revision is called as Loongson-3B1500, whose frequency is 1.5GHz
      and has a PRid 0x6307. Both revisions has a bug that clock cannot be
      disabled at runtime, but this will be fixed in future.
      Signed-off-by: NHuacai Chen <chenhc@lemote.com>
      Cc: John Crispin <john@phrozen.org>
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: linux-mips@linux-mips.org
      Cc: Fuxin Zhang <zhangfx@lemote.com>
      Cc: Zhangjin Wu <wuzhangjin@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/7188/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      e7841be5
    • H
      MIPS: Add NUMA support for Loongson-3 · c4617318
      Huacai Chen 提交于
      Multiple Loongson-3A chips can be interconnected with HT0-bus. This is
      a CC-NUMA system that every chip (node) has its own local memory and
      cache coherency is maintained by hardware. The 64-bit physical memory
      address format is as follows:
      
      0x-0000-YZZZ-ZZZZ-ZZZZ
      
      The high 16 bits should be 0, which means the real physical address
      supported by Loongson-3 is 48-bit. The "Y" bits is the base address of
      each node, which can be also considered as the node-id. The "Z" bits is
      the address offset within a node, which means every node has a 44 bits
      address space.
      
      Macros XPHYSADDR and MAX_PHYSMEM_BITS are modified unconditionally,
      because many other MIPS CPUs have also extended their address spaces.
      Signed-off-by: NHuacai Chen <chenhc@lemote.com>
      Cc: John Crispin <john@phrozen.org>
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: linux-mips@linux-mips.org
      Cc: Fuxin Zhang <zhangfx@lemote.com>
      Cc: Zhangjin Wu <wuzhangjin@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/7187/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      c4617318
    • H
      MIPS: Loongson: Modify ChipConfig register definition · 140e39c1
      Huacai Chen 提交于
      This patch is prepared for Multi-chip interconnection. Since each chip
      has a ChipConfig register, LOONGSON_CHIPCFG should be an array.
      Signed-off-by: NHuacai Chen <chenhc@lemote.com>
      Cc: John Crispin <john@phrozen.org>
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: linux-mips@linux-mips.org
      Cc: Fuxin Zhang <zhangfx@lemote.com>
      Cc: Zhangjin Wu <wuzhangjin@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/7185/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      140e39c1
  6. 01 4月, 2014 1 次提交
  7. 01 2月, 2013 1 次提交
  8. 11 5月, 2011 1 次提交
    • R
      MIPS: Loongson: Fix GCC 2.6.0 build error. · c87444af
      Ralf Baechle 提交于
        CC      arch/mips/loongson/common/env.o
      arch/mips/loongson/common/env.c: In function 'prom_init_env':
      arch/mips/loongson/common/env.c:50:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
      arch/mips/loongson/common/env.c:51:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
      arch/mips/loongson/common/env.c:52:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
      arch/mips/loongson/common/env.c:53:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
      cc1: all warnings being treated as errors
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      c87444af
  9. 17 12月, 2010 1 次提交
    • W
      MIPS: Loongson: Add return value check for strict_strtoul() · ec798125
      Wu Zhangjin 提交于
      cc1: warnings being treated as errors
      arch/mips/loongson/common/env.c: In function 'prom_init_env':
      arch/mips/loongson/common/env.c:49: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
      arch/mips/loongson/common/env.c:50: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
      arch/mips/loongson/common/env.c:51: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
      arch/mips/loongson/common/env.c:52: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
      Signed-off-by: NWu Zhangjin <wuzhangjin@gmail.com>
      Cc: linux-mips <linux-mips@linux-mips.org>
      Patchwork: https://patchwork.linux-mips.org/patch/1762/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      ec798125
  10. 27 2月, 2010 2 次提交
  11. 17 12月, 2009 1 次提交
  12. 18 9月, 2009 4 次提交