diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-07-21 20:36:13 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-07-21 20:36:13 +0000 |
commit | 5c0622bec9f8ff5eab32e92654cbba7aa8a56e7b (patch) | |
tree | 9e34e19d3242128c89a0115d638b14e8d82ae0f0 /sys/arch/loongson/dev | |
parent | 4f21040bd80dae12b7880094486abf09eff0a164 (diff) |
Support for the eBenton EBT-700 netbook, which is similar to the Lemote
Yeeloong, but with a 7" display with a 800x480 resolution, and no webcam.
There are still problems to get it booting from disk from PMON (colour me
unsurprised), which are being looked at. Loading the boot blocks from a FAT
USB stick, to then boot the kernel from the disk, is a reliable workaround
in the meantime.
Tested by Ban Keong Yee (bankeong dot yee on gmail) who is the ``lucky''
owner of such a machine, thanks for your time!
Diffstat (limited to 'sys/arch/loongson/dev')
-rw-r--r-- | sys/arch/loongson/dev/kb3310.c | 3 | ||||
-rw-r--r-- | sys/arch/loongson/dev/smfb.c | 22 |
2 files changed, 20 insertions, 5 deletions
diff --git a/sys/arch/loongson/dev/kb3310.c b/sys/arch/loongson/dev/kb3310.c index 3a5eafa4642..692a10790e2 100644 --- a/sys/arch/loongson/dev/kb3310.c +++ b/sys/arch/loongson/dev/kb3310.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kb3310.c,v 1.16 2010/10/14 21:23:04 pirofti Exp $ */ +/* $OpenBSD: kb3310.c,v 1.17 2011/07/21 20:36:12 miod Exp $ */ /* * Copyright (c) 2010 Otto Moerbeek <otto@drijf.net> * @@ -132,6 +132,7 @@ ykbec_match(struct device *parent, void *match, void *aux) struct isa_attach_args *ia = aux; bus_space_handle_t ioh; + /* XXX maybe allow LOONGSON_EBT700 ??? */ if (sys_platform->system_type != LOONGSON_YEELOONG) return (0); diff --git a/sys/arch/loongson/dev/smfb.c b/sys/arch/loongson/dev/smfb.c index 62b24eac0c5..2a29b337a89 100644 --- a/sys/arch/loongson/dev/smfb.c +++ b/sys/arch/loongson/dev/smfb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smfb.c,v 1.12 2011/05/25 21:15:46 miod Exp $ */ +/* $OpenBSD: smfb.c,v 1.13 2011/07/21 20:36:12 miod Exp $ */ /* * Copyright (c) 2009, 2010 Miodrag Vallat. @@ -20,13 +20,16 @@ * SiliconMotion SM502 and SM712 frame buffer driver. * * Assumes its video output is an LCD panel, in 5:6:5 mode, and fixed - * 1024x600 resolution. + * 1024x600 or 800x480 resolution, depending on the system model. */ #include <sys/param.h> #include <sys/systm.h> #include <sys/device.h> +#include <mips64/include/archtype.h> + +#include <machine/autoconf.h> #include <machine/bus.h> #include <machine/cpu.h> @@ -364,8 +367,19 @@ smfb_setup(struct smfb *fb, bus_space_tag_t memt, bus_space_handle_t memh, int rc; ri = &fb->ri; - ri->ri_width = 1024; - ri->ri_height = 600; + switch (sys_platform->system_type) { + case LOONGSON_EBT700: + ri->ri_width = 800; + ri->ri_height = 480; + break; + default: + case LOONGSON_GDIUM: + case LOONGSON_LYNLOONG: + case LOONGSON_YEELOONG: + ri->ri_width = 1024; + ri->ri_height = 600; + break; + } ri->ri_depth = 16; ri->ri_stride = (ri->ri_width * ri->ri_depth) / 8; ri->ri_flg = RI_CENTER | RI_CLEAR | RI_FULLCLEAR; |