Skip to content

Commit e13fb77

Browse files
lzufalconralfbaechle
authored andcommitted
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: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/656/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent a3a0f8c commit e13fb77

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

arch/mips/include/asm/bootinfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
#define MACH_LEMOTE_ML2F7 3
6868
#define MACH_LEMOTE_YL2F89 4
6969
#define MACH_DEXXON_GDIUM2F10 5
70-
#define MACH_LOONGSON_END 6
70+
#define MACH_LEMOTE_NAS 6
71+
#define MACH_LOONGSON_END 7
7172

7273
extern char *system_type;
7374
const char *get_system_type(void);

arch/mips/loongson/common/machtype.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ static const char *system_types[] = {
2525
[MACH_LEMOTE_ML2F7] "lemote-mengloong-2f-7inches",
2626
[MACH_LEMOTE_YL2F89] "lemote-yeeloong-2f-8.9inches",
2727
[MACH_DEXXON_GDIUM2F10] "dexxon-gidum-2f-10inches",
28+
[MACH_LEMOTE_NAS] "lemote-nas-2f",
2829
[MACH_LOONGSON_END] NULL,
2930
};
3031

arch/mips/loongson/common/serial.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ static struct plat_serial8250_port uart8250_data[][2] = {
4545
[MACH_LEMOTE_ML2F7] {PORT_M(3), {} },
4646
[MACH_LEMOTE_YL2F89] {PORT_M(3), {} },
4747
[MACH_DEXXON_GDIUM2F10] {PORT_M(3), {} },
48+
[MACH_LEMOTE_NAS] {PORT_M(3), {} },
4849
[MACH_LOONGSON_END] {},
4950
};
5051

arch/mips/loongson/common/uart_base.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ unsigned long __maybe_unused uart8250_base[] = {
2323
[MACH_LEMOTE_ML2F7] (LOONGSON_LIO1_BASE + 0x3f8),
2424
[MACH_LEMOTE_YL2F89] (LOONGSON_LIO1_BASE + 0x3f8),
2525
[MACH_DEXXON_GDIUM2F10] (LOONGSON_LIO1_BASE + 0x3f8),
26+
[MACH_LEMOTE_NAS] (LOONGSON_LIO1_BASE + 0x3f8),
2627
[MACH_LOONGSON_END] 0,
2728
};
2829
EXPORT_SYMBOL(uart8250_base);

arch/mips/loongson/lemote-2f/reset.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ void mach_prepare_reboot(void)
141141
{
142142
switch (mips_machtype) {
143143
case MACH_LEMOTE_FL2F:
144+
case MACH_LEMOTE_NAS:
144145
fl2f_reboot();
145146
break;
146147
case MACH_LEMOTE_ML2F7:
@@ -158,6 +159,7 @@ void mach_prepare_shutdown(void)
158159
{
159160
switch (mips_machtype) {
160161
case MACH_LEMOTE_FL2F:
162+
case MACH_LEMOTE_NAS:
161163
fl2f_shutdown();
162164
break;
163165
case MACH_LEMOTE_ML2F7:

0 commit comments

Comments
 (0)