summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--distrib/notes/loongson/hardware9
-rw-r--r--distrib/notes/loongson/whatis4
-rw-r--r--share/man/man4/man4.loongson/sisfb.47
-rw-r--r--sys/arch/loongson/conf/GENERIC6
-rw-r--r--sys/arch/loongson/conf/RAMDISK6
-rw-r--r--sys/arch/loongson/loongson/machdep.c6
-rw-r--r--sys/arch/loongson/loongson/yeeloong_machdep.c40
-rw-r--r--sys/arch/mips64/include/archtype.h3
8 files changed, 63 insertions, 18 deletions
diff --git a/distrib/notes/loongson/hardware b/distrib/notes/loongson/hardware
index 79da88ceee6..5150cb87071 100644
--- a/distrib/notes/loongson/hardware
+++ b/distrib/notes/loongson/hardware
@@ -1,10 +1,15 @@
-dnl $OpenBSD: hardware,v 1.7 2010/03/01 17:43:30 otto Exp $
+dnl $OpenBSD: hardware,v 1.8 2010/03/02 20:54:49 miod Exp $
The following machines are supported by OpenBSD/MACHINE:
Lemote Fuloong 2F
onboard serial port, audio, USB and Ethernet are supported;
onboard display is only supported in the 640x400x8 video mode
- set up by the firmware.
+ set up by the firmware, without acceleration.
+
+ Lemote Lynloong
+ onboard audio, USB and Ethernet are supported;
+ onboard display is only supported in the 1360x768x16 video mode
+ set up by the firmware, without acceleration.
Lemote Yeeloong (8.9" and 10.1" models)
all onboard devices (keyboard, trackpad, display, SD card reader,
diff --git a/distrib/notes/loongson/whatis b/distrib/notes/loongson/whatis
index 4f43ca1c294..f0f3c2b8a17 100644
--- a/distrib/notes/loongson/whatis
+++ b/distrib/notes/loongson/whatis
@@ -1,5 +1,5 @@
-dnl $OpenBSD: whatis,v 1.2 2010/02/12 20:58:34 miod Exp $
+dnl $OpenBSD: whatis,v 1.3 2010/03/02 20:54:49 miod Exp $
OpenBSD/MACHINE runs on various Loonson processor-based systems, such
as the popular Lemote Yeeloong and Gdium Liberty netbooks, as well as
-the Lemote Fuloong 2F mini PC.
+the Lemote Fuloong 2F mini PC and the Lemote Lynloong all-in-one PC.
diff --git a/share/man/man4/man4.loongson/sisfb.4 b/share/man/man4/man4.loongson/sisfb.4
index 020bd28a225..2c43043753b 100644
--- a/share/man/man4/man4.loongson/sisfb.4
+++ b/share/man/man4/man4.loongson/sisfb.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sisfb.4,v 1.1 2010/02/28 22:32:50 miod Exp $
+.\" $OpenBSD: sisfb.4,v 1.2 2010/03/02 20:54:51 miod Exp $
.\"
.\" Copyright (c) 2010 Miodrag Vallat.
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: February 28 2010 $
+.Dd $Mdocdate: March 2 2010 $
.Dt SISFB 4 loongson
.Os
.Sh NAME
@@ -36,7 +36,8 @@ console framework, as a
device.
.Pp
The PMON firmware initializes the frame buffer in a VGA compatible video mode,
-with a 640x400 resolution and 8 bits per pixel.
+either with a 640x400 resolution and 8 bits per pixel on Fuloong,
+or a 1360x768 resolution and 16 bits per pixel on Lynloong.
It is currently not possible to change the frame buffer resolution and
color depth.
.Sh SEE ALSO
diff --git a/sys/arch/loongson/conf/GENERIC b/sys/arch/loongson/conf/GENERIC
index beb0b8ac699..3946cf5142f 100644
--- a/sys/arch/loongson/conf/GENERIC
+++ b/sys/arch/loongson/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.18 2010/02/28 22:39:13 miod Exp $
+# $OpenBSD: GENERIC,v 1.19 2010/03/02 20:54:51 miod Exp $
#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
@@ -36,7 +36,7 @@ apm0 at mainbus0
bonito* at mainbus0
pci* at bonito?
-# Lemote Fuloong 2F and Lemote Yeeloong devices
+# Lemote Lynloong, Lemote Fuloong 2F and Lemote Yeeloong devices
glxpcib* at pci?
isa0 at glxpcib?
mcclock0 at isa? port 0x70
@@ -50,7 +50,7 @@ com0 at isa? port 0x2f8 irq 3 # Fuloong 2F only
com1 at isa? port 0x3f8 irq 4 # Fuloong 2F only (IR port)
pciide* at pci?
wd* at pciide? flags 0x0000
-sisfb* at pci? # Fuloong 2F only
+sisfb* at pci? # Lynloong/Fuloong 2F only
wsdisplay* at sisfb?
smfb* at pci? # Yeeloong only
wsdisplay* at smfb?
diff --git a/sys/arch/loongson/conf/RAMDISK b/sys/arch/loongson/conf/RAMDISK
index d0d834b9be9..eea22315c1c 100644
--- a/sys/arch/loongson/conf/RAMDISK
+++ b/sys/arch/loongson/conf/RAMDISK
@@ -1,4 +1,4 @@
-# $OpenBSD: RAMDISK,v 1.10 2010/02/28 22:32:50 miod Exp $
+# $OpenBSD: RAMDISK,v 1.11 2010/03/02 20:54:51 miod Exp $
#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
@@ -47,7 +47,7 @@ clock0 at mainbus0
bonito* at mainbus0
pci* at bonito?
-# Lemote Fuloong 2F and Lemote Yeeloong devices
+# Lemote Lynloong, Lemote Fuloong 2F and Lemote Yeeloong devices
glxpcib* at pci?
isa0 at glxpcib?
mcclock0 at isa? port 0x70
@@ -59,7 +59,7 @@ wsmouse* at pmsi? mux 0 # Yeeloong only
com0 at isa? port 0x2f8 irq 3 # Fuloong 2F only
pciide* at pci?
wd* at pciide? flags 0x0000
-sisfb* at pci? # Fuloong 2F only
+sisfb* at pci? # Lynloong/Fuloong 2F only
wsdisplay* at sisfb?
smfb* at pci? # Yeeloong only
wsdisplay* at smfb?
diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c
index dc62898e656..f8d15e6244e 100644
--- a/sys/arch/loongson/loongson/machdep.c
+++ b/sys/arch/loongson/loongson/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.16 2010/02/17 17:17:35 jasper Exp $ */
+/* $OpenBSD: machdep.c,v 1.17 2010/03/02 20:54:51 miod Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -155,10 +155,12 @@ struct bonito_flavour {
extern const struct platform fuloong_platform;
extern const struct platform gdium_platform;
+extern const struct platform lynloong_platform;
extern const struct platform yeeloong_platform;
const struct bonito_flavour bonito_flavours[] = {
/* Lemote Fuloong 2F mini-PC */
+ /* how different is LM6003 ? */
{ "LM6004", &fuloong_platform },
/* EMTEC Gdium Liberty 1000 */
{ "Gdium", &gdium_platform },
@@ -167,6 +169,8 @@ const struct bonito_flavour bonito_flavours[] = {
/* supposedly Lemote Yeeloong 10.1" netbook, but those found so far
report themselves as LM8089 */
{ "LM8101", &yeeloong_platform },
+ /* Lemote Lynloong all-in-one computer */
+ { "LM9001", &lynloong_platform },
{ NULL }
};
diff --git a/sys/arch/loongson/loongson/yeeloong_machdep.c b/sys/arch/loongson/loongson/yeeloong_machdep.c
index d413711f458..5d25381f039 100644
--- a/sys/arch/loongson/loongson/yeeloong_machdep.c
+++ b/sys/arch/loongson/loongson/yeeloong_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yeeloong_machdep.c,v 1.10 2010/03/01 09:29:37 otto Exp $ */
+/* $OpenBSD: yeeloong_machdep.c,v 1.11 2010/03/02 20:54:51 miod Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -17,7 +17,8 @@
*/
/*
- * Lemote Fuloong 2F and Yeeloong specific code and configuration data.
+ * Lemote {Fu,Lyn,Yee}loong specific code and configuration data.
+ * (this file really ought to be named lemote_machdep.c by now)
*/
#include <sys/param.h>
@@ -85,8 +86,26 @@ const struct legacy_io_range fuloong_legacy_ranges[] = {
{ 0x376, 0x376 },
{ 0x3f6, 0x3f6 },
/* com */
- { IO_COM1, IO_COM1 + 8 },
+ { IO_COM1, IO_COM1 + 8 }, /* IR port */
+ { IO_COM2, IO_COM2 + 8 }, /* serial port */
+
+ { 0 }
+};
+
+const struct legacy_io_range lynloong_legacy_ranges[] = {
+ /* isa */
+ { IO_DMAPG + 4, IO_DMAPG + 4 },
+ /* mcclock */
+ { IO_RTC, IO_RTC + 1 },
+ /* pciide */
+ { 0x170, 0x170 + 7 },
+ { 0x1f0, 0x1f0 + 7 },
+ { 0x376, 0x376 },
+ { 0x3f6, 0x3f6 },
+#if 0 /* no external connector */
+ /* com */
{ IO_COM2, IO_COM2 + 8 },
+#endif
{ 0 }
};
@@ -125,6 +144,21 @@ const struct platform fuloong_platform = {
.reset = lemote_reset
};
+const struct platform lynloong_platform = {
+ .system_type = LOONGSON_LYNLOONG,
+ .vendor = "Lemote",
+ .product = "Lynloong",
+
+ .bonito_config = &lemote_bonito,
+ .legacy_io_ranges = lynloong_legacy_ranges,
+
+ .setup = fuloong_setup,
+ .device_register = lemote_device_register,
+
+ .powerdown = fuloong_powerdown,
+ .reset = lemote_reset
+};
+
const struct platform yeeloong_platform = {
.system_type = LOONGSON_YEELOONG,
.vendor = "Lemote",
diff --git a/sys/arch/mips64/include/archtype.h b/sys/arch/mips64/include/archtype.h
index e24f352ad67..55d5d45efd9 100644
--- a/sys/arch/mips64/include/archtype.h
+++ b/sys/arch/mips64/include/archtype.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: archtype.h,v 1.10 2010/02/11 20:13:11 otto Exp $ */
+/* $OpenBSD: archtype.h,v 1.11 2010/03/02 20:54:51 miod Exp $ */
/*
* Copyright (c) 1997-2004 Opsycon AB, Sweden (www.opsycon.se)
*
@@ -81,6 +81,7 @@
#define LOONGSON_YEELOONG 0x0061 /* Lemote Yeeloong */
#define LOONGSON_GDIUM 0x0062 /* EMTEC Gdium Liberty */
#define LOONGSON_FULOONG 0x0063 /* Lemote Fuloong */
+#define LOONGSON_LYNLOONG 0x0064 /* Lemote Lynloong */
#define MISC_CLASS 0x00f0 /* Misc machines... */
#define LAGUNA 0x00f1 /* Heurikon Laguna VME board */