]> git.karo-electronics.de Git - linux-beck.git/commitdiff
MIPS: Lemote 2F: Add Lynloong support
authorWu Zhangjin <wuzhangjin@gmail.com>
Mon, 16 Nov 2009 16:58:15 +0000 (00:58 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Dec 2009 01:57:18 +0000 (01:57 +0000)
Add a new machtype and kernel options for the Lynloong.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/657/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/bootinfo.h
arch/mips/loongson/common/machtype.c
arch/mips/loongson/common/serial.c
arch/mips/loongson/common/uart_base.c
arch/mips/loongson/lemote-2f/reset.c

index be28e3bd0cbae595871a9bc26a746aa962d310ce..09eee09780f2335b0153fe656b4aafcac8d217ec 100644 (file)
@@ -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);
index d57e1f4503ad2f96e2dfdae7c149623e2a0ba816..0ed52b3f5314ccc1d9b4d6e3761c4f7467001a57 100644 (file)
@@ -26,6 +26,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,
 };
 
index 45601e4315d52dfb5fc2358022ccf0ca38381eb9..ea29db099aee9e9fc6f383ee70dd2b6a7f082a94 100644 (file)
@@ -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]             {},
 };
 
index e34d699f6f350a8ead5b73b5425a9e4180b3783f..1d636f4f750556d21208cb73b4130997d166b2c5 100644 (file)
@@ -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);
index 980299dbeac3e4b30011e4ecd0fe9e12353da95d..44bb984d58dd117603fd1b29d6c092d41c9eda4d 100644 (file)
@@ -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: