summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2005-05-23 23:59:20 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2005-05-23 23:59:20 +0000
commitd2a04a2e4815b17622759fb69f72d609a9532847 (patch)
tree113194c00e7e9ddf640d96d7008e9917c3f7e32e
parent6652a3a6d070886796d5695c44127b9d39b03b92 (diff)
fix rasops initialization when not acting as console; ok miod@
-rw-r--r--sys/arch/arm/xscale/pxa2x0_lcd.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_lcd.c b/sys/arch/arm/xscale/pxa2x0_lcd.c
index dc70d78c0a8..d8854c58f81 100644
--- a/sys/arch/arm/xscale/pxa2x0_lcd.c
+++ b/sys/arch/arm/xscale/pxa2x0_lcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxa2x0_lcd.c,v 1.18 2005/04/30 23:13:47 pascoe Exp $ */
+/* $OpenBSD: pxa2x0_lcd.c,v 1.19 2005/05/23 23:59:19 uwe Exp $ */
/* $NetBSD: pxa2x0_lcd.c,v 1.8 2003/10/03 07:24:05 bsh Exp $ */
/*
@@ -585,11 +585,6 @@ pxa2x0_lcd_setup_rasops(struct rasops_info *rinfo,
if (descr->c.nrows == 0) {
/* get rasops to compute screen size the first time */
rasops_init(rinfo, 100, 100);
-
- descr->c.nrows = rinfo->ri_rows;
- descr->c.ncols = rinfo->ri_cols;
- descr->c.capabilities = rinfo->ri_caps;
- descr->c.textops = &rinfo->ri_ops;
} else
#ifndef __zaurus__
rasops_init(rinfo, descr->c.nrows, descr->c.ncols);
@@ -597,6 +592,11 @@ pxa2x0_lcd_setup_rasops(struct rasops_info *rinfo,
/* XXX swap rows/cols for second call because of rotation */
rasops_init(rinfo, descr->c.ncols, descr->c.nrows);
#endif
+
+ descr->c.nrows = rinfo->ri_rows;
+ descr->c.ncols = rinfo->ri_cols;
+ descr->c.capabilities = rinfo->ri_caps;
+ descr->c.textops = &rinfo->ri_ops;
}
/*
@@ -641,10 +641,6 @@ pxa2x0_lcd_cnattach(struct pxa2x0_wsscreen_descr *descr,
pxa2x0_lcd_start_dma(pxa2x0_lcd_console.iot, pxa2x0_lcd_console.ioh,
&pxa2x0_lcd_console.scr);
- descr->c.nrows = ri->ri_rows;
- descr->c.ncols = ri->ri_cols;
- descr->c.capabilities = ri->ri_caps;
- descr->c.textops = &ri->ri_ops;
wsdisplay_cnattach(&descr->c, ri, ri->ri_ccol, ri->ri_crow, defattr);
return (0);