linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v8 0/9] MIPS: Loongson: Add the Loongson-1A processor support
@ 2017-06-20  8:56 Binbin Zhou
  2017-06-20  8:56 ` [PATCH v8 1/9] MIPS: Loongson: Merge PRID macro for Loongson-1A/1B/1C Binbin Zhou
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Binbin Zhou @ 2017-06-20  8:56 UTC (permalink / raw)
  To: Ralf Baechle, James Hogan
  Cc: John Crispin, Steven J . Hill, Aurelien Jarno, Fuxin Zhang,
	Zhangjin Wu, Kelvin Cheung, Yang Ling, 谢致邦,
	Stephen Boyd, Michael Turquette, linux-mips, linux-clk,
	Binbin Zhou, Huacai Chen

The Loongson-1A CPU is similar with Loongson-1B/1C, which is a 32-bit SoC.

It is a cost-effective single chip system based on LS232 processor core,
and is applicable to fields such as industrial control, and security applications.
It implements the MIPS32 release 2 instruction set.

They share the same PRID, so we rewrite them into PRID_REV_LOONGSON1ABC,
and use their CPU macros to distinguish.

Due to historic reasons, devicetree is not supported on Loongson1 platform now.
Maybe it will have change in the future.

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 Loongson-1 series's PRID name.
2. Rewite Loongson-1A's clk driver.
3. Rebases on top of v4.10-rc2.

Changes since v4:

1. Fix comment's spelling error.

Changes since v5:

1. Rebases on top of v4.11-rc3.

Changes since v6:

1. Improve comment readability.
2. Rebases on top of v4.12-rc4.

Changes since v7:
1. Rename Loongson1 clk driver's spinlock name.

Binbin Zhou(9):
 MIPS: Loongson: Merge PRID macro for Loongson-1A/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 Loongson-1A
 MIPS: Loongson: Add Loongson-1A board support
 clk: Loongson: A descriptive spinlock name for Loongson1's clk driver
 clk: Loongson: Add Loongson-1A clock support
 MIPS: Loongson: Add Loongson-1A default config file

Signed-off-by: Binbin Zhou <zhoubb@lemote.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
-- 
 arch/mips/Kconfig                                 |  12 +++++++++
 arch/mips/configs/loongson1a_defconfig            | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 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            |  73 +++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/clk/loongson1/clk-loongson1b.c            |  14 +++++-----
 drivers/clk/loongson1/clk-loongson1c.c            |   8 +++---
 23 files changed, 601 insertions(+), 69 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-06-21 17:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-20  8:56 [PATCH v8 0/9] MIPS: Loongson: Add the Loongson-1A processor support Binbin Zhou
2017-06-20  8:56 ` [PATCH v8 1/9] MIPS: Loongson: Merge PRID macro for Loongson-1A/1B/1C Binbin Zhou
2017-06-20  8:57 ` [PATCH v8 2/9] MIPS: Loongson: Expand Loongson-1's register definition Binbin Zhou
2017-06-20  8:57 ` [PATCH v8 3/9] MIPS: Loongson: Add basic Loongson-1A CPU support Binbin Zhou
2017-06-20  8:57 ` [PATCH v8 4/9] MIPS: Loongson: Add Loongson-1A Kconfig options Binbin Zhou
2017-06-20  8:57 ` [PATCH v8 5/9] MIPS: Loongson: Add platform devices for Loongson-1A Binbin Zhou
2017-06-20  8:57 ` [PATCH v8 6/9] MIPS: Loongson: Add Loongson-1A board support Binbin Zhou
2017-06-20  8:57 ` [PATCH v8 7/9] clk: Loongson: A descriptive spinlock name for Loongson1's clk driver Binbin Zhou
2017-06-20  8:57 ` [PATCH v8 8/9] clk: Loongson: Add Loongson-1A clock support Binbin Zhou
2017-06-21 17:49   ` Stephen Boyd
2017-06-20  8:57 ` [PATCH v8 9/9] MIPS: Loongson: Add Loongson-1A default config file Binbin Zhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).