From 5c0622bec9f8ff5eab32e92654cbba7aa8a56e7b Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 21 Jul 2011 20:36:13 +0000 Subject: 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! --- sys/arch/loongson/dev/kb3310.c | 3 ++- sys/arch/loongson/dev/smfb.c | 22 ++++++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) (limited to 'sys/arch/loongson/dev') 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 * @@ -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 #include #include +#include + +#include #include #include @@ -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; -- cgit v1.2.3