linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add Lemote NAS and Lynloong support
@ 2009-11-16 16:58 Wu Zhangjin
  2009-11-16 16:58 ` [PATCH 1/2] loongson: lemote-2f: add NAS support Wu Zhangjin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Wu Zhangjin @ 2009-11-16 16:58 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, Wu Zhangjin

The following two patches add support for NAS & Lynloong made by Lemote, These
two machines are basically the same as fuloong2f, only a few part of
differences.

Hi, Ralf, Could you please queue them to 2.6.33? I will delay the left drivers
to 2.6.34.

Thanks & Regards,
	Wu Zhangjin

Wu Zhangjin (2):
  loongson: lemote-2f: add NAS support
  loongson: lemote-2f: add lynloong support

 arch/mips/include/asm/bootinfo.h      |    4 +++-
 arch/mips/loongson/common/machtype.c  |    2 ++
 arch/mips/loongson/common/serial.c    |    2 ++
 arch/mips/loongson/common/uart_base.c |    2 ++
 arch/mips/loongson/lemote-2f/reset.c  |    4 ++++
 5 files changed, 13 insertions(+), 1 deletions(-)

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

* [PATCH 1/2] loongson: lemote-2f: add NAS support
  2009-11-16 16:58 [PATCH 0/2] Add Lemote NAS and Lynloong support Wu Zhangjin
@ 2009-11-16 16:58 ` Wu Zhangjin
  2009-11-17 11:39   ` Ralf Baechle
  2009-11-16 16:58 ` [PATCH 2/2] loongson: lemote-2f: add lynloong support Wu Zhangjin
  2009-11-16 17:01 ` [PATCH 0/2] Add Lemote NAS and Lynloong support Ralf Baechle
  2 siblings, 1 reply; 8+ messages in thread
From: Wu Zhangjin @ 2009-11-16 16:58 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, Wu Zhangjin

This patch add support to Lemote's Loongson-2F based network attached
system.

The kernel support to this machine is almost the same as fuloong2f, the
only difference is that it use the serial port provided by loongson2f
processor as yeeloong2f does.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 arch/mips/include/asm/bootinfo.h      |    3 ++-
 arch/mips/loongson/common/machtype.c  |    1 +
 arch/mips/loongson/common/serial.c    |    1 +
 arch/mips/loongson/common/uart_base.c |    1 +
 arch/mips/loongson/lemote-2f/reset.c  |    2 ++
 5 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/arch/mips/include/asm/bootinfo.h b/arch/mips/include/asm/bootinfo.h
index 07d4115..be28e3b 100644
--- a/arch/mips/include/asm/bootinfo.h
+++ b/arch/mips/include/asm/bootinfo.h
@@ -67,7 +67,8 @@
 #define MACH_LEMOTE_ML2F7      3
 #define MACH_LEMOTE_YL2F89     4
 #define MACH_DEXXON_GDIUM2F10  5
-#define MACH_LOONGSON_END      6
+#define MACH_LEMOTE_NAS        6
+#define MACH_LOONGSON_END      7
 
 extern char *system_type;
 const char *get_system_type(void);
diff --git a/arch/mips/loongson/common/machtype.c b/arch/mips/loongson/common/machtype.c
index 87b502f..6f77a73 100644
--- a/arch/mips/loongson/common/machtype.c
+++ b/arch/mips/loongson/common/machtype.c
@@ -22,6 +22,7 @@ static const char *system_types[] = {
 	[MACH_LEMOTE_ML2F7]             "lemote-mengloong-2f-7inches",
 	[MACH_LEMOTE_YL2F89]            "lemote-yeeloong-2f-8.9inches",
 	[MACH_DEXXON_GDIUM2F10]         "dexxon-gidum-2f-10inches",
+	[MACH_LEMOTE_NAS]		"lemote-nas-2f",
 	[MACH_LOONGSON_END]             NULL,
 };
 
diff --git a/arch/mips/loongson/common/serial.c b/arch/mips/loongson/common/serial.c
index dc6488c..45601e4 100644
--- a/arch/mips/loongson/common/serial.c
+++ b/arch/mips/loongson/common/serial.c
@@ -45,6 +45,7 @@ static struct plat_serial8250_port uart8250_data[][2] = {
 	[MACH_LEMOTE_ML2F7]             {PORT_M(3), {} },
 	[MACH_LEMOTE_YL2F89]            {PORT_M(3), {} },
 	[MACH_DEXXON_GDIUM2F10]         {PORT_M(3), {} },
+	[MACH_LEMOTE_NAS]               {PORT_M(3), {} },
 	[MACH_LOONGSON_END]             {},
 };
 
diff --git a/arch/mips/loongson/common/uart_base.c b/arch/mips/loongson/common/uart_base.c
index c3db78a..1ab7309 100644
--- a/arch/mips/loongson/common/uart_base.c
+++ b/arch/mips/loongson/common/uart_base.c
@@ -23,6 +23,7 @@ unsigned long __maybe_unused uart8250_base[] = {
 	[MACH_LEMOTE_ML2F7]	(LOONGSON_LIO1_BASE + 0x3f8),
 	[MACH_LEMOTE_YL2F89]	(LOONGSON_LIO1_BASE + 0x3f8),
 	[MACH_DEXXON_GDIUM2F10]	(LOONGSON_LIO1_BASE + 0x3f8),
+	[MACH_LEMOTE_NAS]	(LOONGSON_LIO1_BASE + 0x3f8),
 	[MACH_LOONGSON_END]	0,
 };
 EXPORT_SYMBOL(uart8250_base);
diff --git a/arch/mips/loongson/lemote-2f/reset.c b/arch/mips/loongson/lemote-2f/reset.c
index 0458a1c..980299d 100644
--- a/arch/mips/loongson/lemote-2f/reset.c
+++ b/arch/mips/loongson/lemote-2f/reset.c
@@ -141,6 +141,7 @@ void mach_prepare_reboot(void)
 {
 	switch (mips_machtype) {
 	case MACH_LEMOTE_FL2F:
+	case MACH_LEMOTE_NAS:
 		fl2f_reboot();
 		break;
 	case MACH_LEMOTE_ML2F7:
@@ -158,6 +159,7 @@ void mach_prepare_shutdown(void)
 {
 	switch (mips_machtype) {
 	case MACH_LEMOTE_FL2F:
+	case MACH_LEMOTE_NAS:
 		fl2f_shutdown();
 		break;
 	case MACH_LEMOTE_ML2F7:
-- 
1.6.2.1

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

* [PATCH 2/2] loongson: lemote-2f: add lynloong support
  2009-11-16 16:58 [PATCH 0/2] Add Lemote NAS and Lynloong support Wu Zhangjin
  2009-11-16 16:58 ` [PATCH 1/2] loongson: lemote-2f: add NAS support Wu Zhangjin
@ 2009-11-16 16:58 ` Wu Zhangjin
  2009-11-17 11:40   ` Ralf Baechle
  2009-11-16 17:01 ` [PATCH 0/2] Add Lemote NAS and Lynloong support Ralf Baechle
  2 siblings, 1 reply; 8+ messages in thread
From: Wu Zhangjin @ 2009-11-16 16:58 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, Wu Zhangjin

This patch add a new machtype and kernel options for lynloong, which can
help to select lynloong specific source code and tell users which type
of machine they are using via the /proc/cpuinfo interface.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 arch/mips/include/asm/bootinfo.h      |    3 ++-
 arch/mips/loongson/common/machtype.c  |    1 +
 arch/mips/loongson/common/serial.c    |    1 +
 arch/mips/loongson/common/uart_base.c |    1 +
 arch/mips/loongson/lemote-2f/reset.c  |    2 ++
 5 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/arch/mips/include/asm/bootinfo.h b/arch/mips/include/asm/bootinfo.h
index be28e3b..09eee09 100644
--- a/arch/mips/include/asm/bootinfo.h
+++ b/arch/mips/include/asm/bootinfo.h
@@ -68,7 +68,8 @@
 #define MACH_LEMOTE_YL2F89     4
 #define MACH_DEXXON_GDIUM2F10  5
 #define MACH_LEMOTE_NAS        6
-#define MACH_LOONGSON_END      7
+#define MACH_LEMOTE_LL2F       7
+#define MACH_LOONGSON_END      8
 
 extern char *system_type;
 const char *get_system_type(void);
diff --git a/arch/mips/loongson/common/machtype.c b/arch/mips/loongson/common/machtype.c
index 6f77a73..2a46b4d 100644
--- a/arch/mips/loongson/common/machtype.c
+++ b/arch/mips/loongson/common/machtype.c
@@ -23,6 +23,7 @@ static const char *system_types[] = {
 	[MACH_LEMOTE_YL2F89]            "lemote-yeeloong-2f-8.9inches",
 	[MACH_DEXXON_GDIUM2F10]         "dexxon-gidum-2f-10inches",
 	[MACH_LEMOTE_NAS]		"lemote-nas-2f",
+	[MACH_LEMOTE_LL2F]              "lemote-lynloong-2f",
 	[MACH_LOONGSON_END]             NULL,
 };
 
diff --git a/arch/mips/loongson/common/serial.c b/arch/mips/loongson/common/serial.c
index 45601e4..ea29db0 100644
--- a/arch/mips/loongson/common/serial.c
+++ b/arch/mips/loongson/common/serial.c
@@ -46,6 +46,7 @@ static struct plat_serial8250_port uart8250_data[][2] = {
 	[MACH_LEMOTE_YL2F89]            {PORT_M(3), {} },
 	[MACH_DEXXON_GDIUM2F10]         {PORT_M(3), {} },
 	[MACH_LEMOTE_NAS]               {PORT_M(3), {} },
+	[MACH_LEMOTE_LL2F]              {PORT(3), {} },
 	[MACH_LOONGSON_END]             {},
 };
 
diff --git a/arch/mips/loongson/common/uart_base.c b/arch/mips/loongson/common/uart_base.c
index 1ab7309..275bed6 100644
--- a/arch/mips/loongson/common/uart_base.c
+++ b/arch/mips/loongson/common/uart_base.c
@@ -24,6 +24,7 @@ unsigned long __maybe_unused uart8250_base[] = {
 	[MACH_LEMOTE_YL2F89]	(LOONGSON_LIO1_BASE + 0x3f8),
 	[MACH_DEXXON_GDIUM2F10]	(LOONGSON_LIO1_BASE + 0x3f8),
 	[MACH_LEMOTE_NAS]	(LOONGSON_LIO1_BASE + 0x3f8),
+	[MACH_LEMOTE_LL2F]	(LOONGSON_PCIIO_BASE + 0x2f8),
 	[MACH_LOONGSON_END]	0,
 };
 EXPORT_SYMBOL(uart8250_base);
diff --git a/arch/mips/loongson/lemote-2f/reset.c b/arch/mips/loongson/lemote-2f/reset.c
index 980299d..44bb984 100644
--- a/arch/mips/loongson/lemote-2f/reset.c
+++ b/arch/mips/loongson/lemote-2f/reset.c
@@ -142,6 +142,7 @@ void mach_prepare_reboot(void)
 	switch (mips_machtype) {
 	case MACH_LEMOTE_FL2F:
 	case MACH_LEMOTE_NAS:
+	case MACH_LEMOTE_LL2F:
 		fl2f_reboot();
 		break;
 	case MACH_LEMOTE_ML2F7:
@@ -160,6 +161,7 @@ void mach_prepare_shutdown(void)
 	switch (mips_machtype) {
 	case MACH_LEMOTE_FL2F:
 	case MACH_LEMOTE_NAS:
+	case MACH_LEMOTE_LL2F:
 		fl2f_shutdown();
 		break;
 	case MACH_LEMOTE_ML2F7:
-- 
1.6.2.1

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

* Re: [PATCH 0/2] Add Lemote NAS and Lynloong support
  2009-11-16 16:58 [PATCH 0/2] Add Lemote NAS and Lynloong support Wu Zhangjin
  2009-11-16 16:58 ` [PATCH 1/2] loongson: lemote-2f: add NAS support Wu Zhangjin
  2009-11-16 16:58 ` [PATCH 2/2] loongson: lemote-2f: add lynloong support Wu Zhangjin
@ 2009-11-16 17:01 ` Ralf Baechle
  2009-11-16 17:09   ` Wu Zhangjin
  2 siblings, 1 reply; 8+ messages in thread
From: Ralf Baechle @ 2009-11-16 17:01 UTC (permalink / raw)
  To: Wu Zhangjin; +Cc: linux-mips

On Tue, Nov 17, 2009 at 12:58:13AM +0800, Wu Zhangjin wrote:

> The following two patches add support for NAS & Lynloong made by Lemote, These
> two machines are basically the same as fuloong2f, only a few part of
> differences.
> 
> Hi, Ralf, Could you please queue them to 2.6.33? I will delay the left drivers
> to 2.6.34.

What driver patches you got pending?

  Ralf

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

* Re: [PATCH 0/2] Add Lemote NAS and Lynloong support
  2009-11-16 17:01 ` [PATCH 0/2] Add Lemote NAS and Lynloong support Ralf Baechle
@ 2009-11-16 17:09   ` Wu Zhangjin
  2009-11-17 13:44     ` Ralf Baechle
  0 siblings, 1 reply; 8+ messages in thread
From: Wu Zhangjin @ 2009-11-16 17:09 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

On Mon, 2009-11-16 at 18:01 +0100, Ralf Baechle wrote:
> On Tue, Nov 17, 2009 at 12:58:13AM +0800, Wu Zhangjin wrote:
> 
> > The following two patches add support for NAS & Lynloong made by Lemote, These
> > two machines are basically the same as fuloong2f, only a few part of
> > differences.
> > 
> > Hi, Ralf, Could you please queue them to 2.6.33? I will delay the left drivers
> > to 2.6.34.
> 
> What driver patches you got pending?

the CPUFreq driver for loongson2f and the platform drivers for
yeeloong2f netbook and lynloong pc.

is the time enough to upstream them? and again, where should I put the
platform drivers in(I have incorporated with your feedbacks)? in
arch/mips or drivers/platform/mips ?

and I will send the lastest CPUFreq driver asap.

Best Regards,
	Wu Zhangjin

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

* Re: [PATCH 1/2] loongson: lemote-2f: add NAS support
  2009-11-16 16:58 ` [PATCH 1/2] loongson: lemote-2f: add NAS support Wu Zhangjin
@ 2009-11-17 11:39   ` Ralf Baechle
  0 siblings, 0 replies; 8+ messages in thread
From: Ralf Baechle @ 2009-11-17 11:39 UTC (permalink / raw)
  To: Wu Zhangjin; +Cc: linux-mips

On Tue, Nov 17, 2009 at 12:58:14AM +0800, Wu Zhangjin wrote:

> This patch add support to Lemote's Loongson-2F based network attached
> system.
> 
> The kernel support to this machine is almost the same as fuloong2f, the
> only difference is that it use the serial port provided by loongson2f
> processor as yeeloong2f does.

Thanks, queue for 2.6.33.

  Ralf

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

* Re: [PATCH 2/2] loongson: lemote-2f: add lynloong support
  2009-11-16 16:58 ` [PATCH 2/2] loongson: lemote-2f: add lynloong support Wu Zhangjin
@ 2009-11-17 11:40   ` Ralf Baechle
  0 siblings, 0 replies; 8+ messages in thread
From: Ralf Baechle @ 2009-11-17 11:40 UTC (permalink / raw)
  To: Wu Zhangjin; +Cc: linux-mips

On Tue, Nov 17, 2009 at 12:58:15AM +0800, Wu Zhangjin wrote:

> This patch add a new machtype and kernel options for lynloong, which can
> help to select lynloong specific source code and tell users which type
> of machine they are using via the /proc/cpuinfo interface.

Thanks, queued for 2.6.33.

  Ralf

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

* Re: [PATCH 0/2] Add Lemote NAS and Lynloong support
  2009-11-16 17:09   ` Wu Zhangjin
@ 2009-11-17 13:44     ` Ralf Baechle
  0 siblings, 0 replies; 8+ messages in thread
From: Ralf Baechle @ 2009-11-17 13:44 UTC (permalink / raw)
  To: Wu Zhangjin; +Cc: linux-mips

On Tue, Nov 17, 2009 at 01:09:49AM +0800, Wu Zhangjin wrote:

> > What driver patches you got pending?
> 
> the CPUFreq driver for loongson2f and the platform drivers for
> yeeloong2f netbook and lynloong pc.

The CPU frequency scaling patches I applied.

> is the time enough to upstream them? and again, where should I put the

Well, we should come to an end.

> platform drivers in(I have incorporated with your feedbacks)? in
> arch/mips or drivers/platform/mips ?

I think in arch/mips/loongson/ is probably the best place.

  Ralf

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

end of thread, other threads:[~2009-11-17 13:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-16 16:58 [PATCH 0/2] Add Lemote NAS and Lynloong support Wu Zhangjin
2009-11-16 16:58 ` [PATCH 1/2] loongson: lemote-2f: add NAS support Wu Zhangjin
2009-11-17 11:39   ` Ralf Baechle
2009-11-16 16:58 ` [PATCH 2/2] loongson: lemote-2f: add lynloong support Wu Zhangjin
2009-11-17 11:40   ` Ralf Baechle
2009-11-16 17:01 ` [PATCH 0/2] Add Lemote NAS and Lynloong support Ralf Baechle
2009-11-16 17:09   ` Wu Zhangjin
2009-11-17 13:44     ` Ralf Baechle

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).