From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 07 Feb 2017 08:30:59 +0100 (CET) Received: from SMTPBG352.QQ.COM ([183.57.50.167]:49054 "EHLO smtpbg352.qq.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23992127AbdBGH37HP5Pm (ORCPT ); Tue, 7 Feb 2017 08:29:59 +0100 X-QQ-mid: bizesmtp16t1486452560thpzf1ei Received: from software.domain.org (unknown [222.92.8.142]) by esmtp4.qq.com (ESMTP) with id ; Tue, 07 Feb 2017 15:29:10 +0800 (CST) X-QQ-SSF: 01100000002000F0FG61B00A0000000 X-QQ-FEAT: AIU53AQ+IcRmSpVZ/809jPIJ/tUZinwp1sxlQvVziV76wjpP6bJOuzIyJvrBe Y+c4whR+D+Cl+KTnfxM+4aY23w/t+JTCDCfjkp0VQxrMYqkL4Kg/pQd8uZzqzDlGteyroMd 17z2e97+RXBK/Sihrqaq6Ai98fOZGSI86d/Yr4SpjLhXv9KZ8Ysw0nIMM0kPI2wvr+Lt3sv Sv/raX5qfWOL5kaf9KLZRenk7pmSVHPCkWAoFsiU75ky2ktyhM2fgOUR7VcMorOnWVi866I pjrBBfuGK0jsJueCtFUbYe1S0= X-QQ-GoodBg: 0 From: Binbin Zhou To: Ralf Baechle Cc: John Crispin , "Steven J . Hill" , linux-mips@linux-mips.org, Fuxin Zhang , Zhangjin Wu , Kelvin Cheung , Yang Ling , Binbin Zhou , Huacai Chen Subject: [PATCH v4 0/8] MIPS: Loongson: Add the Loongson-1A processor support Date: Tue, 7 Feb 2017 15:29:02 +0800 Message-Id: <1486452550-10721-1-git-send-email-zhoubb@lemote.com> X-Mailer: git-send-email 2.7.0 X-QQ-SENDSIZE: 520 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 56689 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: zhoubb@lemote.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips The Loongson 1A is similar with Loongson 1B/1C, which is a 32-bit SoC. It implements the MIPS32 release 2 instruction set. They share the same PRID, so we rewrite the PRID_REV_LOONGSON1B to PRID_REV_LOONGSON1A_1B, and use their CPU macros to distinguish. Changes since v1: 1. According commit c908656a7531771ae7642990a7c5f3c7307bd612 (MIPS: Loongson: Naming style cleanup and rework) to fix the naming style. Changes since v2: 1. Remove __irq_set_handler_locked() 2. Rebases on top of v4.5-rc5. Changes since v3: 1. Rename the loonson1 series's RPID name 2. Rewite Loongson-1A's clk driver 2. Rebases on top of v4.10-rc2. Binbin Zhou(8): MIPS: Loongson: Merge RPID macro for loongson1A/1B/1C MIPS: Loongson: Expand Loongson-1's register definition MIPS: Loongson: Add basic Loongson-1A CPU support MIPS: Loongson: Add Loongson-1A Kconfig options MIPS: Loongson: Add platform devices for Loongson1 MIPS: Loongson: Add loongson-1A board support clk: Loongson: Add Loongson-1A clock support MIPS: Loongson: Add Loongson-1A default config file Signed-off-by: Binbin Zhou Signed-off-by: Huacai Chen -- arch/mips/Kconfig | 12 +++++++++ arch/mips/configs/loongson1a_defconfig | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/mips/include/asm/cpu-type.h | 3 ++- arch/mips/include/asm/cpu.h | 3 +-- arch/mips/include/asm/mach-loongson32/irq.h | 16 ++++++++---- arch/mips/include/asm/mach-loongson32/loongson1.h | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------- arch/mips/include/asm/mach-loongson32/platform.h | 2 ++ arch/mips/include/asm/mach-loongson32/regs-clk.h | 30 ++++++++++++++++++++- arch/mips/include/asm/mach-loongson32/regs-mux.h | 36 ++++++++++++++++++++++++- arch/mips/kernel/cpu-probe.c | 6 ++++- arch/mips/loongson32/Kconfig | 20 ++++++++++++++ arch/mips/loongson32/Makefile | 6 +++++ arch/mips/loongson32/Platform | 1 + arch/mips/loongson32/common/irq.c | 2 +- arch/mips/loongson32/common/platform.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++++---------- arch/mips/loongson32/common/setup.c | 6 +++-- arch/mips/loongson32/ls1a/Makefile | 5 ++++ arch/mips/loongson32/ls1a/board.c | 31 ++++++++++++++++++++++ arch/mips/mm/c-r4k.c | 10 +++++++ drivers/clk/loongson1/Makefile | 1 + drivers/clk/loongson1/clk-loongson1a.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 21 files changed, 593 insertions(+), 58 deletions(-) create mode 100644 arch/mips/configs/loongson1a_defconfig create mode 100644 arch/mips/loongson32/ls1a/Makefile create mode 100644 arch/mips/loongson32/ls1a/board.c create mode 100644 drivers/clk/loongson1/clk-loongson1a.c -- 1.9.0