Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH v3 0/8] MIPS: Loongson: Add the Loongson-1A processor support
@ 2016-03-01  0:48 Binbin Zhou
  2016-03-01  0:48 ` [PATCH v3 1/8] MIPS: Loongson: Add basic Loongson-1A CPU support Binbin Zhou
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Binbin Zhou @ 2016-03-01  0:48 UTC (permalink / raw)
  To: Ralf Baechle
  Cc: John Crispin, Steven J . Hill, linux-mips, Fuxin Zhang,
	Zhangjin Wu, Kelvin Cheung, Binbin Zhou, Chunbo Cui, Huacai Chen

The Loongson 1A is similar with Loongson 1B, 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.

However, Loongson 1A has a bug that the pll register can't be read,
so we set the cpu clk in the inline command line.

The command line format is cpu_clk=osc_clk,cpu_mul, the osc_clk standby cpu clock
and the cpu_mul repect the clock multiplier.

For example, we use the command is cpu_clk=33333333,8

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.

Binbin Zhou(8):
 MIPS: Loongson: Add basic Loongson-1A CPU support
 MIPS: Loongson: Add Loongson-1A Kconfig options
 MIPS: Loongson: Add platform devices for Loongson-1A/1B
 MIPS: Loongson: Add loongson-1A board support
 MIPS: Loongson-1A: Workaround for pll register can't be read
 MIPS: Loongson-1A: Add IRQ type setting support
 MIPS: Loongson-1A: Enable SPARSEMEN and HIGHMEM
 MIPS: Loongson: Add a Loongson-1A default config file

Signed-off-by: Chunbo Cui <cuicb@lemote.com>
Signed-off-by: Binbin Zhou <zhoubb@lemote.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
-- 
 arch/mips/Kconfig                                 |  11 +++++
 arch/mips/configs/ls1a_defconfig                  | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 arch/mips/include/asm/cpu-type.h                  |   3 +-
 arch/mips/include/asm/cpu.h                       |   2 +-
 arch/mips/include/asm/mach-loongson32/irq.h       |   1 +
 arch/mips/include/asm/mach-loongson32/loongson1.h | 177 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------
 arch/mips/include/asm/mach-loongson32/platform.h  |  11 +++++
 arch/mips/include/asm/sparsemem.h                 |   6 ++-
 arch/mips/kernel/cpu-probe.c                      |   6 ++-
 arch/mips/loongson32/Kconfig                      |  21 ++++++++++
 arch/mips/loongson32/Makefile                     |   6 +++
 arch/mips/loongson32/Platform                     |   1 +
 arch/mips/loongson32/common/irq.c                 |  46 +++++++++++++++++++++
 arch/mips/loongson32/common/platform.c            | 298 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 arch/mips/loongson32/common/reset.c               |   6 +++
 arch/mips/loongson32/common/setup.c               |  45 ++++++++++++++++++++-
 arch/mips/loongson32/common/time.c                |  11 +++++
 arch/mips/loongson32/ls1a/Makefile                |   5 +++
 arch/mips/loongson32/ls1a/board.c                 | 107 ++++++++++++++++++++++++++++++++++++++++++++++++
 arch/mips/mm/c-r4k.c                              |   7 ++++
 drivers/clk/clk-ls1x.c                            |  19 +++++++--
 21 files changed, 886 insertions(+), 39 deletions(-)
 create mode 100644 arch/mips/configs/ls1a_defconfig
 create mode 100644 arch/mips/loongson32/ls1a/Makefile
 create mode 100644 arch/mips/loongson32/ls1a/board.c
--
1.9.0

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

end of thread, other threads:[~2016-04-22 23:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01  0:48 [PATCH v3 0/8] MIPS: Loongson: Add the Loongson-1A processor support Binbin Zhou
2016-03-01  0:48 ` [PATCH v3 1/8] MIPS: Loongson: Add basic Loongson-1A CPU support Binbin Zhou
2016-03-01  0:48 ` [PATCH v3 2/8] MIPS: Loongson: Add Loongson-1A Kconfig options Binbin Zhou
2016-04-04  6:43   ` Ralf Baechle
2016-03-01  0:48 ` [PATCH v3 3/8] MIPS: Loongson: Add platform devices for Loongson-1A/1B Binbin Zhou
2016-04-04  6:51   ` Ralf Baechle
2016-03-01  0:48 ` [PATCH v3 4/8] MIPS: Loongson: Add loongson-1A board support Binbin Zhou
2016-03-01  0:48 ` [PATCH v3 5/8] MIPS: Loongson-1A: Workaround for pll register can't be read Binbin Zhou
2016-04-04  7:29   ` Ralf Baechle
2016-04-22 23:14     ` Stephen Boyd
2016-03-01  0:48 ` [PATCH v3 6/8] MIPS: Loongson-1A: Add IRQ type setting support Binbin Zhou
2016-04-04  7:15   ` Ralf Baechle
2016-03-01  0:48 ` [PATCH v3 7/8] MIPS: Loongson-1A: Enable SPARSEMEN and HIGHMEM Binbin Zhou
2016-03-01  0:48 ` [PATCH v3 8/8] MIPS: Loongson: Add a 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