Commit e13fb776 authored by Wu Zhangjin's avatar Wu Zhangjin Committed by Ralf Baechle

MIPS: Lemote 2F: Add NAS support

Kernel support for this machine is almost the same as Fuloong 2F; the only
difference is that it uses the serial port provided by Loongson 2F processor
as Yeeloong 2F does.
Signed-off-by: default avatarWu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/656/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a3a0f8c8
...@@ -67,7 +67,8 @@ ...@@ -67,7 +67,8 @@
#define MACH_LEMOTE_ML2F7 3 #define MACH_LEMOTE_ML2F7 3
#define MACH_LEMOTE_YL2F89 4 #define MACH_LEMOTE_YL2F89 4
#define MACH_DEXXON_GDIUM2F10 5 #define MACH_DEXXON_GDIUM2F10 5
#define MACH_LOONGSON_END 6 #define MACH_LEMOTE_NAS 6
#define MACH_LOONGSON_END 7
extern char *system_type; extern char *system_type;
const char *get_system_type(void); const char *get_system_type(void);
......
...@@ -25,6 +25,7 @@ static const char *system_types[] = { ...@@ -25,6 +25,7 @@ static const char *system_types[] = {
[MACH_LEMOTE_ML2F7] "lemote-mengloong-2f-7inches", [MACH_LEMOTE_ML2F7] "lemote-mengloong-2f-7inches",
[MACH_LEMOTE_YL2F89] "lemote-yeeloong-2f-8.9inches", [MACH_LEMOTE_YL2F89] "lemote-yeeloong-2f-8.9inches",
[MACH_DEXXON_GDIUM2F10] "dexxon-gidum-2f-10inches", [MACH_DEXXON_GDIUM2F10] "dexxon-gidum-2f-10inches",
[MACH_LEMOTE_NAS] "lemote-nas-2f",
[MACH_LOONGSON_END] NULL, [MACH_LOONGSON_END] NULL,
}; };
......
...@@ -45,6 +45,7 @@ static struct plat_serial8250_port uart8250_data[][2] = { ...@@ -45,6 +45,7 @@ static struct plat_serial8250_port uart8250_data[][2] = {
[MACH_LEMOTE_ML2F7] {PORT_M(3), {} }, [MACH_LEMOTE_ML2F7] {PORT_M(3), {} },
[MACH_LEMOTE_YL2F89] {PORT_M(3), {} }, [MACH_LEMOTE_YL2F89] {PORT_M(3), {} },
[MACH_DEXXON_GDIUM2F10] {PORT_M(3), {} }, [MACH_DEXXON_GDIUM2F10] {PORT_M(3), {} },
[MACH_LEMOTE_NAS] {PORT_M(3), {} },
[MACH_LOONGSON_END] {}, [MACH_LOONGSON_END] {},
}; };
......
...@@ -23,6 +23,7 @@ unsigned long __maybe_unused uart8250_base[] = { ...@@ -23,6 +23,7 @@ unsigned long __maybe_unused uart8250_base[] = {
[MACH_LEMOTE_ML2F7] (LOONGSON_LIO1_BASE + 0x3f8), [MACH_LEMOTE_ML2F7] (LOONGSON_LIO1_BASE + 0x3f8),
[MACH_LEMOTE_YL2F89] (LOONGSON_LIO1_BASE + 0x3f8), [MACH_LEMOTE_YL2F89] (LOONGSON_LIO1_BASE + 0x3f8),
[MACH_DEXXON_GDIUM2F10] (LOONGSON_LIO1_BASE + 0x3f8), [MACH_DEXXON_GDIUM2F10] (LOONGSON_LIO1_BASE + 0x3f8),
[MACH_LEMOTE_NAS] (LOONGSON_LIO1_BASE + 0x3f8),
[MACH_LOONGSON_END] 0, [MACH_LOONGSON_END] 0,
}; };
EXPORT_SYMBOL(uart8250_base); EXPORT_SYMBOL(uart8250_base);
......
...@@ -141,6 +141,7 @@ void mach_prepare_reboot(void) ...@@ -141,6 +141,7 @@ void mach_prepare_reboot(void)
{ {
switch (mips_machtype) { switch (mips_machtype) {
case MACH_LEMOTE_FL2F: case MACH_LEMOTE_FL2F:
case MACH_LEMOTE_NAS:
fl2f_reboot(); fl2f_reboot();
break; break;
case MACH_LEMOTE_ML2F7: case MACH_LEMOTE_ML2F7:
...@@ -158,6 +159,7 @@ void mach_prepare_shutdown(void) ...@@ -158,6 +159,7 @@ void mach_prepare_shutdown(void)
{ {
switch (mips_machtype) { switch (mips_machtype) {
case MACH_LEMOTE_FL2F: case MACH_LEMOTE_FL2F:
case MACH_LEMOTE_NAS:
fl2f_shutdown(); fl2f_shutdown();
break; break;
case MACH_LEMOTE_ML2F7: case MACH_LEMOTE_ML2F7:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment